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

RE: Adding variables to the definitions tag

Subject: RE: Adding variables to the definitions tag
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Thu, 25 Jul 2002 16:37:55 +0100
xslt adding variables
> Maybe this is a FAO, but I'll give it a try anyway...
> 
> I'm using the <xsl:attribute> to add new namspaces to my 
> definitions tag.

The spec explicitly says you can't do this. Namespace declarations are
not attributes in the XSLT data model.

 It works fine when I specify the namspace 
> like this: <xsl:attribute name="xmlns:bla">"http://www.bla.org/bla"
> </xsl:attribute>

If it works fine, then your XSLT processor has a bug.

I would be interested to know why you are trying to add namespaces
dyamically. This is partly so that I can advise you how to solve your
problem, but it is also because the XML Query working group is currently
debating the requirements for creating namespaces in the result
document.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 
		
> 
> But I want to make it more flexible and use different 
> namespace values from different xml files. So I get the 
> namespace values and assign them to variables, which is no 
> problem. But I cannot use <xsl:attribute> for adding to the 
> definitions tag, because I'm not allowed to use variable 
> names inside the <xsl:attribute> tag. 
> So my question is, does anybody know what I should use for 
> adding them my definitions tag? 
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 


 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.