[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: function text()
Subject: Re: function text()
From: Oleg Tkachenko <olegt@xxxxxxxxxxxxx>
Date: Mon, 15 Oct 2001 17:43:08 +0200
|
Hello Manfred!
You probably forgot about whitespace only text nodes in your xml
document. msxml by default strips all of them, but xslt spec says they
must be preserved - this is why the results are so different. Try
<xsl:strip-space elements="*"/> at the top level of your stylesheet.
--
Oleg Tkachenko
Multiconn International, Israel
Ursprung Manfred wrote:
Hi all,
function text() doesn't work right in Xalan (Java) and in Saxon.
With MSXML3 it works fine, but I need a Java based processor.
My XML-document looks like :
<formalpara>
<title>
<token> §1 </token>
Chapter 1
</title>
</formalpara>
XSL looks:
<xsl:template match="title" mode="next">
<fo:table-row>
<fo:table-cell padding-after="4mm" padding-before="4mm">
<fo:block font-weight="bold">
<xsl:value-of select="token"/>
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block font-weight="bold" padding-after="4mm"
padding-before="4mm">
<xsl:value-of select="text()"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</xsl:template>
With MSXML3 I get : §1 Chapter 1
but with Xalan or Saxon I get only: §1
Using <xsl:value-of select="."/> instead of <xsl:value-of select="text()"/>
I get:
§1 §1 Chapter1
Does anyone can help ?
- Manfred
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
RSS 2.0 |
|
Atom 0.3 |
|
|