I need to output some standard text (" : *" i.e. space colon space
asterisk) in loads of places in my XSLT document which outputs XHTML
in XML format.
The best way (several articles recommend using   instead of
 ) I've found to do this is using as follows -
<xslt:text disable-output-escaping="yes"> &nbsp;:& ;nbsp;*</
xslt:text>
as this is quite long, is there anyway that I can define it as a sort
of global constant?
I've tried this -
<xslt:variabl e name="mandatory "><xslt:tex t disable-output-
escaping="yes"> &nbsp;:& ;nbsp;*</xslt:text></xslt:variable>
and then - <xslt:value-of select="$mandat ory"/>
but this produces " : * "
thanks
harry
asterisk) in loads of places in my XSLT document which outputs XHTML
in XML format.
The best way (several articles recommend using &nbsp; instead of
 ) I've found to do this is using as follows -
<xslt:text disable-output-escaping="yes"> &nbsp;:& ;nbsp;*</
xslt:text>
as this is quite long, is there anyway that I can define it as a sort
of global constant?
I've tried this -
<xslt:variabl e name="mandatory "><xslt:tex t disable-output-
escaping="yes"> &nbsp;:& ;nbsp;*</xslt:text></xslt:variable>
and then - <xslt:value-of select="$mandat ory"/>
but this produces " : * "
thanks
harry
Comment