Subject: Re: AW: [xsl] Processing an xml catalog in xslt From: Nicolas Mailhot <Nicolas.Mailhot@xxxxxxxxxxx> Date: Tue, 29 Jun 2004 16:24:56 +0200 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
AW: [xsl] Processing an xml catalog, christof.hoeke | Thread | AW: [xsl] Processing an xml catalog, christof.hoeke |
AW: [xsl] Processing an xml catalog, christof.hoeke | Date | RE: [xsl] Need help with special so, Bert |
Month |