[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: AW: Processing an xml catalog in xslt

Subject: Re: AW: Processing an xml catalog in xslt
From: Nicolas Mailhot <Nicolas.Mailhot@xxxxxxxxxxx>
Date: Tue, 29 Jun 2004 16:24:56 +0200
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.