|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Replacing a nested tag with another tag
Generally speaking XSLT isn't happy with following cross-references that use element or attribute names, it's better to link to things with a specific id attribute. But if you must do it, you can pick this up as <xsl:value-of select="//*[name()=normalize-space(.)"/> Mike Kay > -----Original Message----- > From: ajain@xxxxxxxxxx [mailto:ajain@xxxxxxxxxx] > Sent: 10 October 2000 23:58 > To: xsl-list@xxxxxxxxxxxxxxxx > Subject: Replacing a nested tag with another tag > > > Hi, > > What follows is a snippet of the incoming XML: > > <Intro> > You are looking at > <Replace> > RequestNumber > </Replace> > Please click back to select another request number. > </Intro> > > <RequestNumber> > AG-190 > </RequestNumber> > > > I would like the output HTMLto be: > > <p> > You are looking at AG-190. Please click back to select > another request. > </p> > > How can I implement the scenario above using XSLT? > > The purpose here is to have static text in my XML file that > has dynamic components that get retrieved from other > elements in the XML file. > > Thanks in advance, > > Anchal > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








