[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: AW: how to "save" a context?

Subject: Re: AW: how to "save" a context?
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Mon, 20 Jan 2003 10:46:21 -0800 (PST)
ancestor xsml
No, if you want to use an unique ID, which will not need the
xx:evaluate() extension function, better use the "coordinate method"

That is, for every node (not an attribute or a namespace), the
following pair identifies it uniquely:

(count(ancestor::node()), count(preceding::node()))

For an attribute node or a namespace node this becomes the tripple:

(name(), count(../ancestor::node()), count(../preceding::node()))



Finding the node from its id has an efficient implementation using
keys.


Hope this helps,

=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL


"Braumüller, Hans" <H.Braumueller@xxxxxxxxxxxx> wrote in message
news:EB6EC71285FAC6469C0F41B476F5AAA1026B42@xxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello Dimitre,

thanks, now i get the correct value. Is there a way to use it again for
an x-path selection like

<xsl:value-of select="$theResult/test"/> or     <xsl:apply-templates
select="$theResult/test">

I guess not, because now we have in $theResult/test a string, it is
right?

Greetings,

Hans

-----Ursprüngliche Nachricht-----
Von: Dimitre Novatchev [mailto:dnovatchev@xxxxxxxxx]
Gesendet: Donnerstag, 16. Januar 2003 16:38
An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Betreff: Re: AW:  how to "save" a context?



--- <H.Braumueller@xxxxxxxxxxxx> wrote:
> Ho Dimitri,
> 
> i tried to do it with msxml3 and 4
> 
> <?xml version="1.0"  encoding="ISO-8859-1" ?>
> <?xml-stylesheet type="text/xsl" href="test.xsl"?>
> <root>
>   <test>xpath</test>
> </root>
> 
> 
> and 
> 
> <xsl:stylesheet version='1.0'
> xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
> 
> <xsl:output method="text" />
> 
> ...... (nothing changed)
> 
> <xsl:value-of select="$theResult"/>
> 
> and get as result
> 
> ÿþ
> 
> Never mind, which xsml-source i use, i get the same.
> 
> What i do wrong ?


Hans,

This snippet uses the following xsl:param

  <xsl:variable name="theParmNodes" select="$some-NodeSet"/>

You have to modify the "select" attribute above and to set it to the
node(s) for which you want their XPath expressions produced.




=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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


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


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.