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]

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@metreo.com [mailto:ajain@metreo.com]
> Sent: 10 October 2000 23:58
> To: xsl-list@mulberrytech.com
> 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

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