xsl-list
[Top] [All Lists]

Re: [xsl] copying namespaces question

2012-07-02 05:39:38
I think that <xsl:copy> applied (repeatedly) to the root node does
what you need.
-W

On 02/07/2012, Robby Pelssers <Robby(_dot_)Pelssers(_at_)nxp(_dot_)com> 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(_dot_)Pelssers(_at_)nxp(_dot_)com]
Sent: Monday, July 02, 2012 12:30 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com]
Sent: Monday, July 02, 2012 12:24 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--