[xsl] Re: XML/XSL transformation using XALAN/JAVA

Subject: [xsl] Re: XML/XSL transformation using XALAN/JAVA
From: "jackson" <jackson@xxxxxxxxxxx>
Date: Sat, 28 Apr 2001 14:40:00 +1000

You're on the right track in that you want to find out about following
siblings, but you're trying to use a function (non-existent at that) where
you want to use an axis.

   <xsl:value-of select="following-sibling::PRODUCTQUALIFIER"/>

This is explained in XPath spec:


There are some examples of the use of axes:


including a couple with following and preceding siblings.

XPath functions are explained in:


The use of these can be a bit strange at first, and the XPath spec is
perhaps not the best place to learn about them. I think there are some
good tutorials around.

You might try, for example:


Examples 15 and 16 seem particularly relevant.

Norman Walsh has a good intro to XPath too:


In working with XPath you need to understand how axes relate to
document structure. Then you need to understand how location
steps are built up, with functions being only a part (generally a lesser
part) of what you want to do.

David Jackson

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

Current Thread