|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Adding variables to the definitions tag
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








