However, the transformation outputs the string "{$targetNamespace}" literally to the output xml file without doing variable substitution. I noticed that if I change the "xmlns:doc" attribute to a simple attribute such as "doc" i.e. doc="{$targetNamespace}", the variable substitution works fine. Is there something wrong with my syntax?
Subject:Question about variable substitution during XSLT xml-to-xml transformation Author:Tony Lavinio Date:11 Jun 2009 09:45 AM
Well, you want to use <xsl:attribute> for substitution, but that also
probably won't do what you want, because xmlns:doc isn't just an
attribute, but a namespace declaration which is handled specially.
First, is this a Stylus Studio-related question? This is the
Stylus Studio Developer's Network, but we don't recognize your email.
You might consider posting on the general-purpose xsl-list run by
Mulberry Technologies.
In order to really help you, please include a minimal but working
example when you post there.