[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: issue with cross referencing
Hi,
A stylesheet like the one below <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:key name="steps" match="*[@id]" use="@id"/> <xsl:template match="xref"> <xsl:variable name="step" select="key('steps',@xrefid)"/> <xsl:value-of select="substring-after(name($step), 'step')"/> <xsl:for-each select="$step"> <xsl:number format="A"/> </xsl:for-each> </xsl:template> </xsl:stylesheet> will give you as output First line here Second line Third line Cross ref thru 1A 1B Best Regards, George --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com meenakshi n wrote: Hi all:
|
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
|