removing a node from a node-set

Discussion in 'XML' started by jonny@drugphish.ch, Dec 2, 2006.

  1. Guest

    Hi,

    I have a template "delete-node" with two arguments containing document
    fragments when called.
    I want to return a new document fragment which contains all nodes from
    argument 2 except the one which is
    contained in argument 1.

    The code currently looks like this:

    <xsl:template name="delete-node">
    <xsl:param name="todelete" />
    <xsl:param name="notprocessed" />

    <xsl:copy-of select="$notprocessed[not(@id =
    $todelete/node/@id)]"/>
    </xsl:template>

    And an example for $todelete is:
    <node id='x'> ... </node>

    and $notprocessed contains a few of those nodes including the one with
    id 'x'.

    Is there a solution to this problem without using exsl:node-set()?
     
    , Dec 2, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    1,567
  2. Alan Silver
    Replies:
    0
    Views:
    537
    Alan Silver
    Dec 21, 2005
  3. =?Utf-8?B?QmlsbCBNaWxk?=

    removing a node from a sitemap

    =?Utf-8?B?QmlsbCBNaWxk?=, Feb 10, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    369
    =?Utf-8?B?QmlsbCBNaWxk?=
    Feb 10, 2006
  4. Tjerk Wolterink
    Replies:
    2
    Views:
    1,458
    Dimitre Novatchev
    Aug 24, 2006
  5. Chris  Chiasson
    Replies:
    6
    Views:
    634
    Richard Tobin
    Nov 14, 2006
Loading...

Share This Page