[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: How to use xslt to transform xml to xml with added nodes


Subject: RE: How to use xslt to transform xml to xml with added nodes
From: Michael Teigman <michael.teigman@xxxxxxxxxxx>
Date: Wed, 22 Sep 1999 19:22:52 -0400

That did it! Thanks very much to Mike Brown for all the help.
     mike



                                                                  
 (Embedded                                                        
 image moved   Mike Brown <mbrown@xxxxxxxxxxxxx>                  
 to file:      09/22/99 01:44 PM                                  
 pic01987.pcx)                                                    
                                                                  



Please respond to xsl-list@xxxxxxxxxxxxxxxx

To:   "'xsl-list@xxxxxxxxxxxxxxxx'" <xsl-list@xxxxxxxxxxxxxxxx>
cc:    (bcc: Michael Teigman/HPG/US/Reuters)
Subject:  RE: How to use xslt to transform xml to xml with added nodes






> From: Michael Teigman [mailto:michael.teigman@xxxxxxxxxxx]
> This is fine when the StringMap is part of the input XML. I
> cannot modify the input XML.

If you are using an XSLT engine that implements the document() function,
like XT, you can put the string map in a separate XML file.

<xsl:variable name="StringMapRoot" select="document(URIofStringMap.xml)"/>
.
.
.
<xsl:variable name="texti"
select="string($StringMapRoot/StringMap/texti[textg=$textg]/@out)"/>


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


------------------------------------------------------------------------
Any views expressed in this message are those of the individual  sender,
except  where  the  sender  specifically  states them to be the views of
Reuters Ltd.

Attachment: pic01987.pcx
Description: Binary data


Current Thread
Keywords