H
harryajh
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:variable name="mandatory"><xslt:text disable-output-
escaping="yes">&nbsp;:&nbsp;*</xslt:text></xslt:variable>
and then - <xslt:value-of select="$mandatory"/>
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:variable name="mandatory"><xslt:text disable-output-
escaping="yes">&nbsp;:&nbsp;*</xslt:text></xslt:variable>
and then - <xslt:value-of select="$mandatory"/>
but this produces " : *"
thanks
harry