/ "Dave Brooks, BCS Systems" <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> | 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>