Le mar, 29/06/2004 à 14:25 +0200, christof(_dot_)hoeke(_at_)e-7(_dot_)com 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