xsl-list
[Top] [All Lists]

RE: [xsl] Add namespace to element name itself

2008-11-18 07:54:19
Dear Michael,
I added in xsl:stylesheet itself,

Ex: <xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; xmlns:ce="uri">

So I am getting the same (required), but namespace - xml:lang="en" added in
root element of output xml.

Regards,
Ramkumar


-----Original Message-----
From: Michael Kay [mailto:mike(_at_)saxonica(_dot_)com] 
Sent: Tuesday, November 18, 2008 6:14 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Add namespace to element name itself

 Required output XML,
      <item-info>
              <ce:jid>YFMIC</jid>
              <ce:aid>1120</aid>
              <ce:pii>S0740-0020(08)00080-4</ce:pii>
              <ce:doi>10.1016/j.fm.2008.04.010</ce:doi>
              <ce:copyright type="unknown" year="2008"/>
      </item-info>

That's not well-formed XML (the ce namespace prefix is not declared), so it
can't be created using XSLT.

Michael Kay
http://www.saxonica.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>
--~--