This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] how to output HTML entities?
- From: Sam Steingold <sds at gnu dot org>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Wed, 17 Nov 2004 17:01:58 -0500
- Subject: [docbook-apps] how to output HTML entities?
- Cancel-lock: sha1:gSx9DmY6RD8cj94MYhCV+fLS5Uc=
- Organization: disorganization
- Reply-to: sds at gnu dot org
I want <computeroutput> inside <programlisting> to be preceded with a
double right arrow (XHTML ⇒) and a space for the first such element
and 3 spaces for all following elements.
here is my attempt:
<xsl:template match="programlisting/computeroutput">
<xsl:choose>
<xsl:when test="previous-sibling::computeroutput()">
<xsl:text>⇒ </xsl:text></xsl:when>
<xsl:otherwise><xsl:text> </xsl:text>
</xsl:otherwise></xsl:choose>
<xsl:apply-imports/>
</xsl:template>
here is what I get:
common.xsl:63: parser error : Entity 'rArr' not defined
<xsl:text>⇒ </xsl:text></xsl:when>
^
common.xsl:63: parser error : Entity 'nbsp' not defined
<xsl:text>⇒ </xsl:text></xsl:when>
^
common.xsl:64: parser error : Entity 'nbsp' not defined
<xsl:otherwise><xsl:text> </xsl:text>
^
common.xsl:64: parser error : Entity 'nbsp' not defined
<xsl:otherwise><xsl:text> </xsl:text>
^
common.xsl:64: parser error : Entity 'nbsp' not defined
<xsl:otherwise><xsl:text> </xsl:text>
^
when I replace "⇒" with "&rArr;", the XHTML output contains
"&rArr;" which is not what I want.
--
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.honestreporting.com>
Diplomacy is the art of saying "nice doggy" until you can find a rock.