[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: problems with transforming xml with xsl! sample in
on a validated XML (with DTD):
<xsl:template match="paragraph"> <xsl:apply-templates/> </xsl:template> <xsl:template match="linkRef"> <a href="id(@id)/@value"><xsl:value-of select="id(@id)/@name"/></a> </xsl:template> with keys: <xsl:key name="links" match="link" use="@id"/> <a href="key('links',@id)/@value"><xsl:value-of select="key('links',@id)/@name"/></a> "pure XPATH": <a href="/doc/links/link[@id=current()/@id]/@value"><xsl:value-of select="/doc/links/link[@id=current()/@id]/@name"/></a> Regards, Joerg Jan Krattiger wrote: i have the following xml: -- System Development VIRBUS AG Fon +49(0)341-979-7411 Fax +49(0)341-979-7409 joerg.heinicke@xxxxxxxxx www.virbus.de 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
|