This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Select a node in another xml-document



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@hdi.de>             To:       "Xsl-List (E-Mail)" <xsl-list@lists.mulberrytech.com>                         
                      Sent by:                          cc:                                                                                     
                      owner-xsl-list@lists.mulbe        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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]