RE: Replacing a nested tag with another tag

Subject: RE: Replacing a nested tag with another tag
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Wed, 11 Oct 2000 09:36:27 +0100
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


Current Thread