The XSLT 1.0 spec is quite explicit on the point: "The html output method should not escape < values occurring in attribute values". Why do you want it escaped?
 

Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com

-----Original Message-----
From: saxon-help-admin@lists.sourceforge.net [mailto:saxon-help-admin@lists.sourceforge.net] On Behalf Of Gabriel McGoldrick
Sent: 28 June 2002 14:37
To: saxon-help@lists.sourceforge.net
Subject: [saxon] Problem with entities in attributes

    I have attribute content that contains entities....
 
     <xsl:element name="meta">
      <xsl:attribute name="name">
       <xsl:text>Figures</xsl:text>
      </xsl:attribute>
      <xsl:attribute name="content">
       <xsl:text>blah &lt; &gt;blah </xsl:text>
      </xsl:attribute>
    </xsl:element>
 
 
The output is...
 
<meta name="Figures" content="blah < &gt;blah ">
 
Is there some way I can avoid the '<' character being output in the attribute value?
 
Saxon Version 6.5.2, Windows 2000
 
Rgds,
Gabriel McGoldrick.