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

Problem with XSL and Namespace

Subject: Problem with XSL and Namespace
From: "Giovani Librelotto" <grl@xxxxxxxxxxxx>
Date: Tue, 15 Oct 2002 16:08:07 +0100
giovani librelotto
Hello all,

I have a problem with namespace.
I'm making a stylesheet for generate another stylesheet. 
I want to create a root element in the XML document final with a
namespace xmlns:xlink="http://www.w3.org/1999/xlink" like above:

<root xmlns:xlink="http://www.w3.org/1999/xlink">

But, if I define in the stylesheet "mother" this

<axsl:template match="/">
	<root xmlns:xlink="http://www.w3.org/1999/xlink">
	...
</axsl:template>

the result XSL in stylesheet "son" is:

<xstm:stylesheet xmlns:axsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

   <axsl:template match="/">
      <root xmlns="http://www.topicmaps.org/xtm/1.0/">

And in the final XML document generated is:

<root>
  ..
</root>

How can I to generate this?

<root xmlns:xlink="http://www.w3.org/1999/xlink">
  ..
</root>

Thanks in advance,

------------------------------------
Giovani Rubert Librelotto
Ph.D. Student
Universidade do Minho
Braga - Portugal
grl@xxxxxxxxxxxx




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.