On 17/09/2010 8:00 AM, pankaj(_dot_)c(_at_)thomsondigital(_dot_)com wrote:
Hello all,
I am trying to remove namespace declaration from root element in my xml
input. Below is what it looks like:
Root Element:
=========
<chapter xmlns:sb="http://www.elsevier.com/xml/common/struct-bib/dtd"
xmlns:ce="http://www.elsevier.com/xml/common/dtd" xmlns:mml="
http://www.w3.org/1998/Math/MathML" xmlns:xlink="
http://www.w3.org/1999/xlink" xmlns:aid="
http://ns.adobe.com/AdobeInDesign/4.0/" xmlns:aid5="
http://ns.adobe.com/AdobeInDesign/5.0/" aid:pstyle="" aid5:tablestyle=""
version="5.2" xml:lang="en" docsubtype="chp" id="c0030">
<ce:footnote id="fn0010">
======
Desired Output
=========
<chapter version="5.2" xml:lang="en" docsubtype="chp" id="c0030">
<ce:footnote id="fn0010">
Your desired output is not namespace-well-formed (prefix ce is
undeclared), so it's not possible to generate it using XSLT.
Michael Kay
Saxonica
--~------------------------------------------------------------------
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>
--~--