xsl-list
[Top] [All Lists]

Re: Getting the root element.

2003-07-24 02:51:10

Shouldn't this work?

<xsl:value-of select="local-name(/*)"/>

Greetings René
   {@   @}
        ^
      \_/

"You don't need eyes to see, you need vision!"

TJIP PCL
Steenovenweg 3
5708 HN  Helmond
The Netherlands
tel: +31(0) 492 502 222
fax: +31(0) 492 502 299
e-mail: R(_dot_)deVries(_at_)tjip(_dot_)com
internet: www.tjip.com

***************************DISCLAIMER********************************
Deze e-mail is uitsluitend bestemd voor de geadresseerde(n).
Verstrekking aan en gebruik door anderen is niet toegestaan.
TJIP PCL sluit iedere aansprakelijkheid uit die voortvloeit uit
elektronische verzending.

This e-mail is intended exclusively for the addressee(s), and may
not be passed on to, or made available for use by any person
other than the addressee(s). TJIP PCL rules out any and every liability
resulting from any electronic transmission.


                                                                                
                                                         
                    "Simon Kelly"                                               
                                                         
                    <kelly(_at_)ipe(_dot_)fzk(_dot_)de>                 To:     
<xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>                              
           
                    Sent by:                           cc:                      
                                                         
                    owner-xsl-list(_at_)lists(_dot_)mulber        Subject:     
[xsl] Getting the root element.                                      
                    rytech.com                                                  
                                                         
                                                                                
                                                         
                                                                                
                                                         
                    24-07-2003 11:51                                            
                                                         
                    Please respond to xsl-list                                  
                                                         
                                                                                
                                                         
                                                                                
                                                         




[This is a repost, as I think my mail server has chewed up the first one.
If
it is being caused by a major delay my end, I oppologies]

Hi all,

This is probably quite simple, but my usual method seems to have failed (I
would include it but my IDE has crashed and is not coming back to life :-(

Q:
When deep within the structure (In my case recursing down a branch) what it
the most elegent way of getting the document root node?

Cheers

Simon



"I have often wondered how it is that every man loves himself more than all
the rest of men, but yet sets less value on his own opinion of himself than
on the opinion of others." -- Georg Christoph Lichtenberg

Institut fuer
Prozessdatenverarbeitung
und Elektronik,
Forschungszentrum Karlsruhe GmbH,
Postfach 3640,
D-76021 Karlsruhe,
Germany.

Tel: (+49)/7247 82-4042
E-mail : kelly(_at_)ipe(_dot_)fzk(_dot_)de


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






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



<Prev in Thread] Current Thread [Next in Thread>