RE: [xsl] xpath question

Subject: RE: [xsl] xpath question
From: florian <csshsh@xxxxxxxxxxxxxxx>
Date: 28 Mar 2003 15:06:20 +0100
hi!

> A very strange structure if you don't mind me saying!

i know.. its not really clear yet if im able to change it though : /

> If you assume that the description nodes are in the same order as the equivalent column nodes
> (which in your example is not the case!!) :

thats the point. the description nodes are just in the same order as
in the group nodes. since they relate together. the first child node in
a group  node would be an apple for example, so the first child node
in the descriptions node, would have to be the description node for
the apple.



> It is not obvious in your example how the description elements relate to the column
> elements other than the fact they have the same fruit...!?!
> 
> A far better structure might be:
> <root>
>  ..
>   <order>
>      <column name="orange" description="this is an orange"/>
>      <column name="apple"  description="this is an apple"/>
>    </order>
>  ..
> </root>

that would be for sure the most simple solution. the problem is though
that the description nodes and the order nodes are in real-life coming
from two different xml documents. so i would have to kinda pack them
together with xslt first, which would make things also kinda akward. : /


ciao!
florian



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread