[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
On 20/12/2010 23:05, Syd Bauman wrote:
It's not a matter if what experts may do, so much as a question of what they see others doing on this list (and especially) on the xquery list.
All the uses you gave consisted of doing string manipulations within text content, for that text() can be very reasonable (although you still need to be careful about comments) but that isn't the common use you see, which is
using
<xsl:value-of select="element-name/text()"/>
rather than
<xsl:value-of select="element-name"/>
especially in a thread with "novice question" in the subject line, it's a reasonable asumption that whatever the answer is, it doesn't need text().
Now you don't count as a novice and probably the originator of the original thread isn't either, but still, that's what it says in the subject line....
David
Re: [xsl] why not match text()? (fork from "Novice Question - matching entire text children")
Subject: Re: [xsl] why not match text()? (fork from "Novice Question - matching entire text children") From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 20 Dec 2010 23:17:32 +0000 |
On 20/12/2010 23:05, Syd Bauman wrote:
b) those experts who spoke of the rare need for matching text() either don't deal with data like mine -- TEI
It's not a matter if what experts may do, so much as a question of what they see others doing on this list (and especially) on the xquery list.
All the uses you gave consisted of doing string manipulations within text content, for that text() can be very reasonable (although you still need to be careful about comments) but that isn't the common use you see, which is
using
<xsl:value-of select="element-name/text()"/>
rather than
<xsl:value-of select="element-name"/>
especially in a thread with "novice question" in the subject line, it's a reasonable asumption that whatever the answer is, it doesn't need text().
Now you don't count as a novice and probably the originator of the original thread isn't either, but still, that's what it says in the subject line....
David
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] why not match text()? (fork f, Syd Bauman | Thread | Re: [xsl] why not match text()? (fo, Andrew Welch |
[xsl] why not match text()? (fork f, Syd Bauman | Date | Re: [xsl] why not match text()? (fo, Imsieke, Gerrit, le- |
Month |