Hi

I'm having problems with a stylesheet that transforms all attributes from:

<attr attr-name="Title"><value timestamp="1109335079#256"
type="string">Consultant</value></attr>

To:

<Title>Consultant</Title>


In Altova XMLSpy I have a working stylesheet that looks like this:


<xsl:for-each select="attr">
<xsl:text
disable-output-escaping="yes"><![CDATA[<]]></xsl:text><xsl:value-of
select="@attr-name"/>
<xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
<xsl:value-of select="."/>
<xsl:text disable-output-escaping="yes"><![CDATA[</]]></xsl:text>
<xsl:value-of select="@attr-name"/>
<xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
</xsl:for-each>


But when I paste the working code in iManager and apply the stylesheet -
every thing looks OK - until I open the stylesheet again - when applying
the stylesheet iManager changed it to:

<xsl:for-each select="attr">
<xsl:text disable-output-escaping="yes">&lt;</xsl:text>
<xsl:value-of select="@attr-name"/>
<xsl:text disable-output-escaping="yes">></xsl:text>
<xsl:value-of select="."/>
<xsl:text disable-output-escaping="yes">&lt;/</xsl:text>
<xsl:value-of select="@attr-name"/>
<xsl:text disable-output-escaping="yes">></xsl:text>
</xsl:for-each>


The same happens when using ConsoleOne (with DirXML 1.1a snap-ins).

Does anyone know how to put "<" is the above stylesheet.

/Uffe