[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Add namespace to element name itself

Subject: RE: Add namespace to element name itself
From: "V.Ramkumar" <v.ramkumar@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 18 Nov 2008 18:25:18 +0530
RE:  Add namespace to element name itself
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.


-----Original Message-----
From: Michael Kay [mailto:mike@xxxxxxxxxxxx] 
Sent: Tuesday, November 18, 2008 6:14 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  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

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.