Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Specify an element in a nodeset directly

From: eric.goforth@-----.---
To: NULL
Date: 10/5/2006 2:05:00 PM


roy axenov wrote:

> So what does it do?
>
> $rates/rate selects a nodeset of <rate> nodes. The
> predicate [position()=thingcode] filters this nodeset,
> dropping all the nodes that don't have a <thingcode> child
> with content that is equal to the position of the <rate>
> node in the $rates/rate nodeset. Since there are no <rate>
> nodes with <thingcode> children in your document, the
> resulting nodeset is, naturally, empty. I already explained
> the solution in my previous reply.
>
> --
> roy axenov

Roy,

I played around with your example, but it doesn't seem to work when I
have multiple xyzzy elements, for example:

<foo>
  <bar>
    <xyzzy>
      <int>3</int>
    </xyzzy>
    <xyzzy>
      <int>4</int>
    </xyzzy>
    <xyzzy>
      <int>5</int>
    </xyzzy>
  </bar>
  <nodeset>
    <node>
      <str>wrong (1)</str>
      <int>3</int>
    </node>
    <node>
      <str>wrong (2)</str>
      <int>2</int>
    </node>
    <node>
      <str>right (3)</str>
      <int>1</int>
    </node>
  </nodeset>
</foo>

I'm wondering if it's not possible to do what I'm trying to do.

-Eric



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent