|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XSLT: XPath: Siblings
My understanding of this has to be wrong: <xsl:apply-templates/> <xsl:template match="/*/*">
| <xsl:value-of select="name()"/>
---
<xsl:value-of select="preceding-sibling::*[name()]"/> |
</xsl:template>Shouldn't the second clause above output the value of the name of the preceding sibling? It seems to be outputting the text content of the first element on the page. I can't understand why? All I ever do is ask questions here... many thanks for all the help I get; I can repay you on the Perl lists at activestate.com.... Cheers Lee 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








