This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Replacing a nested tag with another tag
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Replacing a nested tag with another tag
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Wed, 11 Oct 2000 09:36:27 +0100
- Reply-To: xsl-list at mulberrytech dot com
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