This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

case insensitive attributes


This one should be pretty simple for most of you, but I just can't seem
to get it right.

I need to set up an XPath query that is not case sensitive to find the
node with the
UserId attribute set to some value.

XML:

<?xml version="1.0" encoding="UTF-8" ?> 
<root xmlns:sql="urn:schemas-microsoft-com:xml-sql"> 
	<CamUsers UserId="admin" /> 
</root>

Current XPath (not working)

root/CamUsers[translate(@UserId,'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
'abcdefghijklmnopqrstuvwxyz') = 'ADMIN']


Any help would be much appreciated.

Jay


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]