|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
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
|

Cart








