On Wednesday, January 22, 2003, at 12:52 PM, Nicolas PERIDONT wrote:
Hi,The problem is that document order of nodes isn't required to be preserved in xpath, amazingly. You can run into the same problems in XSLT.
I have get some trouble with the actual implementation of DVSL.
It appears when you used mixed xml elements (elements and text) as son
of a same element.
Like in this exemple of xml file :
<foo>a<bar value="1"/>b<bar value="2"/>c</foo>
when you apply a dvsl template to a such xml file your element are
process in a wrong order.
it process the two bar elements first and only after it process the text
elements (a,b,c).
As for the patch :
1) We depend upon dom4j for our xpath support, so I would ensure that you have the latest version of that before we try to fix it in DVSL.
2) it only solves the problem for applyTemplates(), not applyTemplates(String xpath), which I think we should do. Thus, I think we need a more general solution.
If you could try the latest dom4j and report back, that would be great. We can proceed from there.
geir
--
Geir Magnusson Jr 203-355-2219(w)
Adeptra, Inc. 203-247-1713(m)
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
