I had to step out of the box to solve it, but i managed.
in the stylesheet section, i added the attribute-set
<xsl:attribute-set name="as_variable">
<xsl:attribute name="name"><xsl:value-of select="@name" /></xsl:attribute>
</xsl:attribute-set>
and then in the template section i did this...
Most of my experience is in converting xml to html. I'm in new waters now in an attemt to transform xml to xml. It's fine until i try to convert to an element with attributes. Then i get stuck, and i've gone through several XML books trying to figure out a way past this. Here's what i have...
I'm trying to put together an XSD schema to represent the XML required to feed into a program that generates a test. I've done ok so far, however some of my complex types contain elements with name="#comment". This is not going over well, as apparently # is not an acceptable character for a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.