W3C home > Mailing lists > Public > www-xsl-fo@w3.org > May 2009

Re: XSL - multiple namespaces

From: Tim Landscheidt <tim@tim-landscheidt.de>
Date: Wed, 06 May 2009 14:11:21 +0000
To: www-xsl-fo@w3.org
Message-ID: <m3prem9v92.fsf@lockfix.tim-landscheidt.de>
Sam Fuqua <samfuqua@gmail.com> wrote:

> I have an xml document with multiple namespaces and I'm wondering how to
> handle them with xsl.  The document looks like the following:

> <?xml version="1.0" encoding="UTF-8"?>
> <parent xmlns="url1" xmlns:ns2="url2" xmlns:ns3="url3">
>    <child/>
>    <sibling xmlns="url2" xmlns:ns4="url5">
>       <ns4:grandchild/>
>    </sibling>
> </parent>

> Of course I know how to handle namespaces from the root level, but how would
> I handle these child elements that redeclare namespaces?

This question is not related to XSL-FO, but to XSLT; you
might want to read for example the XSLT FAQ at
<URI:http://www.dpawson.co.uk/xsl/sect2/N5536.html#d7781e589>.

Tim
Received on Wednesday, 6 May 2009 15:26:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 6 May 2009 15:26:47 GMT