[xsl] SSI echo as an attribute value

Subject: [xsl] SSI echo as an attribute value
From: "tom tom" <tomxsllist@xxxxxxxxxxx>
Date: Thu, 14 Sep 2006 13:27:10 +0100
Hi all, can you advise on the best way to embed an SSI echo as the value of an attribute in XSLT 2:

<a href="<!-- #echo var="service.module" -->">text</a>

I have tried using a character map to represent the opening and closing comments:

<xsl:character-map name="comment-delimiters">
 <xsl:output-character character="&start-comment;" string="&lt;!--"/>
 <xsl:output-character character="&end-comment;" string="--&gt;"/>

with following doctype:

<!DOCTYPE xsl:stylesheet [
<!ENTITY  start-comment "&#xE501;">
<!ENTITY  end-comment "&#xE502;">

and the following call:

<xsl:attribute name="href"><xsl:text>&start-comment;</xsl:text>fff<xsl:text>&end-comment;</xsl:text></xsl:attribute>

This doesn't work. Given that 'disable-output-escaping' is deprecated in XSLT 2 how would you advise doing this task?

Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters

Current Thread