xsl-list
[Top] [All Lists]

Re: [xsl] Predicates question

2011-12-17 07:46:28
Roelof Wobben wrote:

    <xsl:apply-templates select="/bookstore/book[position()<3]" />

With XML the '<' character starts a tag, if you want to use it literally you need to escape it as '&lt;' e.g.
      <xsl:apply-templates select="/bookstore/book[position() &lt; 3]"/>



--

        Martin Honnen --- MVP Data Platform Development
        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>
--~--