[Home] [By Thread] [By Date] [Recent Entries]
I am having trouble generating the quotes inside the attributes from your
example. I am using the following XSLT with Saxon 8:
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xhtml" encoding="utf-8" omit-xml-declaration="yes" use-character-maps="ssi"/> <xsl:character-map name="ssi"> <xsl:output-character character="󰀁" string="<!--"/> <xsl:output-character character="󰀂" string="-->"/> <xsl:output-character character="󰀃" string="""/> </xsl:character-map> <xsl:template match="/"> <a src="󰀁 󰀃fff󰀃 󰀂 ">d</a> </xsl:template> </xsl:stylesheet> This generates: <a src='<!-- "fff" --> '>d</a> I'd like to preserve the double quotes surrounding the attribute. Is this possible? From: David Carlisle <davidc@xxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: Embedding an SSI echo in an XML attribute Date: Wed, 9 May 2007 10:45:29 +0100 _________________________________________________________________ Txt a lot? Get Messenger FREE on your mobile. https://livemessenger.mobile.uk.msn.com/
|

Cart



