Closed Bug 53947 Opened 26 years ago Closed 25 years ago

Standalone and Intergrated transformiix generating different document orders

Categories

(Core :: XSLT, defect, P3)

x86
Windows 2000
defect

Tracking

()

VERIFIED FIXED
mozilla0.9.1

People

(Reporter: jjs, Assigned: axel)

Details

The output from generate-id() from the first generate-id test case returns a string of id{somevalue}.0.5 instead of the expected (and returned from standalone) id{somevalue}.0.1 . Debuging, shows that the call to DOMHelper::getChildNumber() generates different values for standalone and integrated. The getChildNumber function is used to determine the document order of a given node and the different returns concerns me that we might not be getting correct document orders for other founctions. Any ideas?
Setting bug status to New. jjs@acis.com.au, your bugzilla permissions have been updated so that your bugs start out as New rather than Unconfirmed. Please email me if you have any questions.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Status: NEW → ASSIGNED
Taking over. Note to self: probably a difference in the handling of whitespace in the DOM between standalone and Mozilla.
Assignee: kvisco → peterv
Status: ASSIGNED → NEW
Target Milestone: --- → mozilla0.9
Note to self, reassigning to me. I might have solved this when adding comment nodes to the standalone transformiix. I'll check later. Axel
Assignee: peterv → axel
It still does :-(. Though I'm only off by one ;-), so this may have gotten better by adding the comment nodes. I'll debug later. Axel
Status: NEW → ASSIGNED
In source/xml/dom/standalone/Document.cpp:116, I have to add text nodes, too. That should do it. Will check on monday. Axel
Axel, just make sure you check to see if the refChild is the root element. If so you can only insert whitespace-only text nodes.
Depends on: 71046
No longer depends on: 71046
pushing back :-(
Target Milestone: mozilla0.9 → mozilla0.9.1
it's just top level whitespace making a difference now which isn't part of xpath data model and we're handling that now, so we don't select it. This just has to be deterministic, so I close this bug.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
bitching buttons, verfication spam
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.