Re: Maybe it's a bug
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Mon, 21 Aug 2006 08:30:49 -0400
Lorry Astra wrote:
Thanks Bob, but i have something to say about my question.
First of all, i don't revise the xml structure by coding, the
structure is changed by XSL,
What difference does that make? Using an XSL transformation is
equivalent to using code.
it's the XSL sort result ( after calling
DOMDocument.transformNodeToObject function, the Dom structure has been
changed from "<z:row ... />" to "<z:row...></z:row>").
The tag structure changes. Granted, this is perfectly acceptable xml,
but I am not surprised that ADO is unable to handle it. I would have
been happily gratified if it had, but given the other inadequacies
involved in the adPersistXML functionality (utc-8) I'm not really
surprised. People have been complaining about this since it was
introduced in ADO 2.5 (I think) ... we are now at ADO 2.8, and it still
has not been addressed.
Your only recourse is either to:
1. Stop using your xsl transformation and use the builtin methods of the
recordset to sort the records, or
2. As Mark suggests, use string or msxml methods to revert the tag
structure to the original after applying your xsl transformation.
Secondly, i think if ADO.Recordset can not handle the second
structure("<z:row></z:row>") correctly, it should throw an exception
Maybe, but you are unlikely to see a change in this behavior. I strongly
suspect that the code thinks it is handling it correctly, hence no
exception is thrown.
when i try to "Open" the DOM. And i can not understand i open the DOM
correctly(ADO don't tip me any error.), but i can not get the correct
result.
In my opinion, it's not the fault of XSL, but ADO. And i have some
suggestions:
Maybe, but you are unlikely to see a change in this behavior.
1. When XSL find the structure the DOM which will be sorted is theMaybe, but you are unlikely to see a change in this behavior.
structure can be converted to Recordset, XSL should obey some rules
when it sort the DOM, for example: it don't revise the "<z:row/>"
structure. although the both of the structures are right.
2.When ADO find the structure of a DOM can not be opened correctly.it
should give a warning to programmers in order to avoid some logical
errors in our programs.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
.
- References:
- Re: Maybe it's a bug
- From: Mark J. McGinty
- Re: Maybe it's a bug
- From: Bob Barrows [MVP]
- Re: Maybe it's a bug
- From: Lorry Astra
- Re: Maybe it's a bug
- Prev by Date: Re: parsing xml
- Next by Date: Re: Temporary table with SQL Server 7.0
- Previous by thread: Re: Maybe it's a bug
- Next by thread: Re: Temporary table with SQL Server 7.0
- Index(es):
Relevant Pages
|
|