P
Paquette.Jim
Hello,
I'm trying to get XUL output with an element that has an attribute
containing an entity reference. Can this be done? I saw another post
exactly like this...but the solutions they gave didn't work for me.
[-------------XML------------]
<contextMenu>
<building />
<contact/>
<company/>
</contextMenu>
[-----------XSL---------------]
....
<xslutput method="xml" version="1.0" encoding="ISO-8859-1"
indent="yes"/>
.....
<xsl:template match="contextMenu">
<menuitem>
<xsl:attribute name="label" disable-output-escaping="yes">
&context.add.<xsl:value-of select="name()" class="text" />;
</xsl:attribute>
</menuitem>
<xsl:template>
<building />
<contact/>
<company/>
</contextMenu>
[-----------expected XUL---------------]
....
<menuitem label="&context.add.building;">
<menuitem label="&context.add.contact;">
<menuitem label="&context.add.company;">
[-----------actual XUL---------------]
....
<menuitem label="&context.add.building;">
<menuitem label="&context.add.contact;">
<menuitem label="&context.add.company;">
I'm trying to get XUL output with an element that has an attribute
containing an entity reference. Can this be done? I saw another post
exactly like this...but the solutions they gave didn't work for me.
[-------------XML------------]
<contextMenu>
<building />
<contact/>
<company/>
</contextMenu>
[-----------XSL---------------]
....
<xslutput method="xml" version="1.0" encoding="ISO-8859-1"
indent="yes"/>
.....
<xsl:template match="contextMenu">
<menuitem>
<xsl:attribute name="label" disable-output-escaping="yes">
&context.add.<xsl:value-of select="name()" class="text" />;
</xsl:attribute>
</menuitem>
<xsl:template>
<building />
<contact/>
<company/>
</contextMenu>
[-----------expected XUL---------------]
....
<menuitem label="&context.add.building;">
<menuitem label="&context.add.contact;">
<menuitem label="&context.add.company;">
[-----------actual XUL---------------]
....
<menuitem label="&context.add.building;">
<menuitem label="&context.add.contact;">
<menuitem label="&context.add.company;">