Altova Mailing List Archives


Re: [xsl] why not match text()? (fork from "Novice Question -

From: David Carlisle <davidc@---.--.-->
To: xsl-list@-----.------------.---
Date: 12/20/2010 11:18:00 PM
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@l...>
--~--

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.