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

RE: String comparison

Subject: RE: String comparison
From: "Dineen, Geoffrey" <Geoffrey.Dineen@xxxxxxxxxx>
Date: Sat, 7 Sep 2002 00:26:13 +1200
xsl when string comparison
Hi there

Thanks a lot for replying.  I don't want to use the MS version if I do not
have to - what do I have to do in order to change/upgrade this to XSLT 1.0
namespace ?  Please forgive me in advance for my seemingly crazy questions -
as said I'm just learning and this is not my own code but that of a previous
employee.

TIA
Geoff

> ----------
> From: 	Jarno.Elovirta@xxxxxxxxx[SMTP:Jarno.Elovirta@xxxxxxxxx]
> Reply To: 	xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Sent: 	Wednesday, 4 September 2002 5:58 p.m.
> To: 	xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: 	RE:  String comparison
> 
> Hi,
> 
> [snip]
> 
> > <?xml version="1.0"?>
> > <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
> 
> This is not XSLT 1.0 namespace - if you want support for Microsoft's
> looks-like-xslt-but-is-not language, you should contact their support.
> 
> [snip]
> 
> >     <xsl:for-each select="//TOPICS[TOPIC]">
> 
> [snip]
> 
> >     <xsl:for-each select="//TOPICS[TOPIC]">
> 
> An expression like that it slow, especially when you select it twice, so
> you should consider rewriting your stylesheet to not use //.
> 
> Was this what you wanted from the conditional section?
>  
>  	<A href="{URL}">
>         <xsl:attribute name="target">
>           <xsl:choose>
>             <when test="starts-with(URL, 'http://')">_top</xsl:when>
>             <xsl:otherwise>ESRCanvas</xsl:otherwise>
>           </xsl:choose>
>         </xsl:attribute>
>         <xsl:value-of select="TITLE" />
>  	</A>
> 
> Cheers, 
> 
> Jarno
> 
>  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

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.