xsl-list
[Top] [All Lists]

[xsl] Getting the root namespace from the input document

2007-02-05 04:53:38
Hi all,

Have one problem that can't be solved, I hope can get
help from you guys.

Also, I need to get the namespace from the input
document and put it into the root element. 
For example the input root document :

<manifest xmlns:ex="http://www.exercise.com";
xmlns:adlcp="http://www.adlnet.org/xsd"/>

the desired output (added namespaces in the root
element)
<Metadata 
xmlns:ex="http://www.exercise.com";
xmlns:per="http://www.adlnet.org/xsd";>
....
</Metadata>

How do I add this namespaces, since I can't do it
manually?Which xpath that access the root and tell it
to add the namespaces?

I am grateful if you could help me.
Thanks in advance
san


 
____________________________________________________________________________________
Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

--~------------------------------------------------------------------
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>
--~--