Subject: Re: [xsl] Effect of default namespace specifications on imports From: Andrew Welch <andrew.j.welch@xxxxxxxxx> Date: Thu, 25 Oct 2012 16:46:46 +0100 |
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. If that's not what you meant, you'll need to post some code. -- Andrew Welch http://andrewjwelch.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Effect of default namespace s, Ihe Onwuka | Thread | Re: [xsl] Effect of default namespa, Ihe Onwuka |
RE: [xsl] Diffing XML, Emma Burrows | Date | Re: [xsl] Effect of default namespa, Ihe Onwuka |
Month |