Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Outputting entity references in XUL attributes with XSL Outputting entity references in XUL attributes with XSLTo: NULL Date: 2/5/2007 1:13:00 PM 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---------------] ... <xsl:output 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;"> | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
