[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xpath question
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|