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

Re: [xsl] copying namespaces question


Subject: Re: [xsl] copying namespaces question
From: Wolfgang Laun <wolfgang.laun@xxxxxxxxx>
Date: Mon, 2 Jul 2012 12:39:19 +0200

I think that <xsl:copy> applied (repeatedly) to the root node does
what you need.
-W

On 02/07/2012, Robby Pelssers <Robby.Pelssers@xxxxxxx> wrote:
> Actually I just tried your suggestion and as expected it didn't copy the
> namespace to the root <objects> tag as expected.  It can't inherit from any
> parent node as it is actually constructed as root tag.  So I hope you see my
> problem?!
>
>
> Robby
>
> -----Original Message-----
> From: Robby Pelssers [mailto:Robby.Pelssers@xxxxxxx]
> Sent: Monday, July 02, 2012 12:30 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE: [xsl] copying namespaces question
>
> Hi Andrew,
>
> I see your point but I'm still not 100% sure if this will work in my case.
>
> What I'm actually doing is constructing the root <objects> manually and
> preferably the root tag would contain all namespaces from the input
> <objects> element.
> So can you explain me based upon the current XSLT how this would work in
> theory?
>
> Robby
>
> -----Original Message-----
> From: Andrew Welch [mailto:andrew.j.welch@xxxxxxxxx]
> Sent: Monday, July 02, 2012 12:24 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [xsl] copying namespaces question
>
> Hi,
>
>> Just checking if this can be improved.
>
> Have a look at inherit-namespaces:
>
> http://www.w3.org/TR/xslt20/#element-element
>
>
>
> --
> Andrew Welch
> http://andrewjwelch.com


Current Thread
Keywords