[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Replacing a string by another which is found by referenc

Subject: Re: Replacing a string by another which is found by reference in thesame XML document
From: Warren Hedley <w.hedley@xxxxxxxxxxxxxx>
Date: Fri, 16 Jun 2000 14:13:25 -0400
Re: Replacing a string by another which is found by referenc
vincent_garsuault@xxxxxxxxx wrote:
> 
> I have an XSL style sheet  to display it on IE5 with apropriate style. I
> would like to get as output:
> 
> Class:
> Name="MyClass"
> TargetRef="MyObject"

Something like this should work.

<xsl:template match="Class">
  <xsl:text>Class:
  Name="</xsl:text>
  <xsl:value-of select="@Name" />
  <xsl:text>"
  TargetRef="</xsl:text>
  <xsl:value-of select="AnotherObject[@Uuid = current()/@Uuid]/@Name" />
  <xsl:text>"
</xsl:text>
</xsl:template>
 
> First I am using IE5 to read an XML file referencing an XSL stylesheet.

I'm not sure if this will work in IE5 though - the above is a pure XSLT
solution. If possible, upgrade to the latest IE5 MSXML release.

-- 
Warren Hedley


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.