Subject: Re: [xsl] Novice Question - matching entire text children From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 20 Dec 2010 15:35:51 -0500 |
It's understandable that the novice might not know that 'string()' is a function, while 'text()' is a node test. A novice probably isn't going to know what the difference between a function and a node test is. ---------
The funny thing (knowing quite a lot about XQuery but still hardly anything about XSLT) is that I know very well the difference between string() and text() in XQuery, XDM and XPath. I know text() is a node and string() is a function.
I was just hoping (and worth wasting 30 seconds trying) that Maybe in some magic fairyland XSLT would *evaluate* the match="ELEM/string()" and determine that indeed that evaluated to a non-empty string and decide to run the template... Especially when running into the tidbit in the specs that match expressions are a 'subset of XPath expressions' ... so hey, toss a little pixie dust and you never know what comes out ... It would be nice if it worked ...
More knowledge is even MORE Dangerous !
Cheers, Wendell
-- ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Novice Question - matchin, David Lee | Thread | RE: [xsl] Novice Question - matchin, David Lee |
Re: [xsl] ANN: LIBX* December 2010 , Steve Ball | Date | Re: [xsl] Grouping "span" with same, David Carlisle |
Month |