xsl-list
[Top] [All Lists]

Re: [xsl] Novice Question - matching entire text children

2010-12-20 08:36:10
David Lee wrote:

I did "try" mikes suggestion in a novice way
" is to use the string-value of the element node, rather than its text node
"
children.

by writing:

<template match="NODE/string()">


Which should obviously work right ?

No, you can only match on nodes, not on primitive values.
What you can do is
  <xsl:template match="NODE">
    <xsl:value-of select="."/>
  </xsl:template>



--

        Martin Honnen
        http://msmvps.com/blogs/martin_honnen/

--~------------------------------------------------------------------
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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>