xsl-list
[Top] [All Lists]

RE: [xsl] Modify XML using XSL

2006-04-13 02:22:12

<xsl:template match="/books/nobel[count(/title) &lt; 2]">

You don't want "/title" here, you want "title". Using "/" searches from the
root of the tree.


<xsl:template match="/books/comics[count(/title) &gt; 1]">

Same applies here.

<xsl:copy>

<xsl:copy-of select="@*"/>

<xsl:apply-templates select="/title[position() != last()]"/>

and here.

Michael Kay
http://www.saxonica.com/



--~------------------------------------------------------------------
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>