[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

string-calculated entity reference


Subject: string-calculated entity reference
From: "Mok" <CMOK@xxxxxxxx>
Date: Tue, 14 Dec 1999 11:21:49 -0000

Is is possible to string-calculated entity reference?
what i mean is instead of saying &a; or &b;,
i want something like &x; where x is calculated to be a or b.
is this possible?

i have now this:

<!DOCTYPE stylesheet [
<!ENTITY a "hello">
<!ENTITY b "bye">
]
<xsl:stylesheet>
  
<xsl:template match="a"/>
 &a;
</xsl:template>

<xsl:template match="b"/>
 &b;
</xsl:template>

</xsl:stylesheet>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread