Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] accessing node[$position]

From: spiders frommars <arachni42@--------->
To:
Date: 6/4/2002 7:48:00 AM
--- Peter Davis <pdavis152@xxxxxxxxx> wrote:
> I'm not sure what the real problem is, but you could
> try this:
> 
> descendant::page[position() = $the_position]

Thanks for the reply. I already tried that, and it
still doesn't work.

I'm trying to do this in a recursive function, where
$the_position is a parameter that is incremented with
each call (except in special cases, where I pass a
different value). As mentioned before, if I simply do
the value-of I get the correct number. Typing in a
number directly works fine.

> Looking at the XPath spec, section 2.4, 3rd
> paragraph, it appears that the way 
> you are doing it should work as you expect, so long
> as $the_position is 
> actually a number of course.  Does Xselerator have
> any documented bugs 
> related to your issue?

I don't know.. but I've also been working on this in
XMLSpy, which also has the problem (except that I
can't step through it in XMLSpy). Although, oddly
enough in my experimentation, when I typed the
following in the main template, blah worked as a
position, but not blah2:

<xsl:variable name="blah" select="5"/>
<xsl:variable name="blah2">5</xsl:variable>

Neither worked in Xselerator, though.

I'm beginning to think it's the hex I put on my
computer last week. I really should avoid those hexes.

-Jennifer

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


transparent
Print
Mail
Digg
delicious
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