|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: AW: Processing an xml catalog in xslt
Le mar, 29/06/2004 à 14:25 +0200, christof.hoeke@xxxxxxx a écrit :
> hi,
> as far as understand it after a quick read <rewriteURI> is in the xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
>
> so you just need to declare a namespace preferably in the xsl:stylesheet elemment and match that (you needed the last one so you should use [last()] and not [1]?):
>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:cat="urn:oasis:names:tc:entity:xmlns:xml:catalog" version="1.0">
> <xsl:output method="text" indent="yes" encoding="UTF-8"/>
> <xsl:strip-space elements="*"/>
>
> <xsl:template match="cat:rewriteURI[last()]">
> <xsl:value-of select="concat('docbook.dtd.subroot=',@rewritePrefix)"/>
> </xsl:template>
Thanks a lot - this one works.
--
Nicolas Mailhot
|
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








