Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

case sensitive 1

Status
Not open for further replies.

Fursten

Programmer
Dec 27, 2000
403
PT
Hi,

I´m using XMLDocument from dotnet classes. It seems xml is case sensitive to this class. Is it possible to change this behavior?

If not, what is the best method to transform all the elements in uppercase?

Thank you
 
XML is indeed case sensitive.

To transform to all upper-case, you would do something like this:
Code:
<xsl:variable name="lcletters">abcdefghijklmnopqrstuvwxyz</xsl:variable>
<xsl:variable name="ucletters">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable>

<xsl:value-of select="translate($toconvert,$lcletters,$ucletters)"/>
where the toconvert variable is your text you want converted. Reverse the last two parameters to convert to all lower-case.

Chip H.


____________________________________________________________________
Click here to learn Ways to help with Tsunami Relief
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top