Re: XSL - multiple namespaces

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 UTC