Re: [xsl] Select a node in another xml-document

Subject: Re: [xsl] Select a node in another xml-document
From: Mukul.Mudgal@xxxxxxxxxxx
Date: Mon, 27 May 2002 14:29:08 +0530
Try to select file like this and then use this variable to traverse the
selected document.

      <xsl:variable name="Select.Document.DatabaseMapping.xml" select
="document('DatabaseMapping.xml')"/>

In this DatabaseMapping.xml could be your secondary XML file,

Mukul



                                                                                                                                                
                      "Pfitzner, Jan"                                                                                                           
                      <Jan.Pfitzner@xxxxxx>             To:       "Xsl-List (E-Mail)" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>                         
                      Sent by:                          cc:                                                                                     
                      owner-xsl-list@xxxxxxxxxxx        Subject:  [xsl] Select a node in another xml-document                                   
                      rrytech.com                                                                                                               
                                                                                                                                                
                                                                                                                                                
                      05/27/2002 01:01 PM                                                                                                       
                      Please respond to xsl-list                                                                                                
                                                                                                                                                
                                                                                                                                                




Hi,
I´ve a xsl-stylesheet for a xml-document. In this stylesheet I want to
adapt an template to another xml-file.
How can I make this.

the xml-file I want to adapt to is like this:

<Colors>
             <Color>red</Color>
             <Color>blue</Color>
             <Color>green</Color>
...
</Colors>

And I want to select the first Color-node
I've tried tu use the document()-function, but I didn't manage it.

Thanks

Jan Pfitzner

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









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


Current Thread