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

Re: xsl-list Digest 13 May 2005 05:10:00 -0000 Issue 4

Subject: Re: xsl-list Digest 13 May 2005 05:10:00 -0000 Issue 415 Was Re: On-the-fly case-conversion w. translate()
From: Shivani Goel <goelshivani@xxxxxxxxx>
Date: Fri, 13 May 2005 15:06:50 -0700 (PDT)
shivani goel
Thanks yet again Michael. Yes, the quotes around the $var were a figment of my
imagination. I'm a self-taught XSLT programmer (thanks in large part due to
this excellent resource), and to paraphrase the old adage I have a fool for a
master.
 
With or without the '' around $var, the result is the same ie <project oregon>
isn't translated to <Project Oregon> by the translate function. However, the
translation works as intended when using the strings A - Z & a-z instead of the
variable representation.

The latter serves my purpose, but I was wondering...

Shivani.

> <xsl:if test="@name[not (translate (., '$lowerCase', 
> '$upperCase') 
> 
> *Not So* with the first <xsl: if> where I use variables 
> instead of the string 'A...Z'
> 

$var is a reference to the variable var, '$var' in quotes is a string of
four characters.

I'm sure you knew that really...

Michael Kay
http://www.saxonica.com.


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

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.