[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML/XSL transformation using XALAN/JAVA

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

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.

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

This is explained in XPath spec:

  http://www.w3.org/TR/xpath#axes

There are some examples of the use of axes:

  http://www.w3.org/TR/xpath#location-paths

including a couple with following and preceding siblings.

XPath functions are explained in:

  http://www.w3.org/TR/xpath#corelib

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:

  http://www.zvon.org/xxl/XPathTutorial/General/examples.html

Examples 15 and 16 seem particularly relevant.

Norman Walsh has a good intro to XPath too:

 http://www.arbortext.com/Think_Tank/XML_Resources/Issue_one/issue_one.html

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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.