This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Solution to funky TOCs in HTML Help...
/ "Dave Brooks, BCS Systems" <dave@bcs.co.nz> was heard to say:
| At 21:36 13/08/01 +0200, Jirka Kosek wrote:
|
| >They are usefull, but in XSLT there is no easy way to strip leading and
| >trailing new-line from
| >
| ><xxx>
| >foo
| >bar
| ></xxx>
|
| <xsl:template match="xxx">
| <xsl:value-of select="normalize-space(text())"/>
| </xsl:template>
|
| should do this,
Yes, but note that it's a disaster if you say:
<xxx>
foo
<emphasis>bar</emphasis>
</xxx>
Using value-of or text() to get at the content of elements that may
contain additional markup is going to bite you eventually.
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | I have seen the truth and it makes
http://www.oasis-open.org/docbook/ | no sense.
Chair, DocBook Technical Committee |
----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>