[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Effect of default namespace specifications on imports

Subject: Re: [xsl] Effect of default namespace specifications on imports
From: Ihe Onwuka <ihe.onwuka@xxxxxxxxx>
Date: Thu, 25 Oct 2012 16:54:18 +0100

On Thu, Oct 25, 2012 at 4:46 PM, Andrew Welch <andrew.j.welch@xxxxxxxxx> wrote:
> On 25 October 2012 16:29, Ihe Onwuka <ihe.onwuka@xxxxxxxxx> wrote:
>> I am writing an XML conversion, part of which entails bringing things
>> into the new namespace (from no namespace).
>> I have specified namespace X as my default namespace and my XPath
>> default namespace but all is not as expected.
>> I suspect it is because some elements are handled by an imported
>> identity template. Although this can be worked around this represents
>> an opportunity to get some clarification as to what the precise rules
>> are as relates to default namespace specfications and imported
>> stylesheets.
> There is a gotcha with the identity template and import precedence...
> the solution is to have an identity.xslt containing just the identity
> template and then have that as your first import in the importing
> stylesheet.

Why is that a gotcha? Sounds like the normal thing to do.

What I am really asking is given that set up will elements processed
by the imported identity respect the default namespace stipulations in
the importing stylesheet.

Current Thread