[xsl] Problems with usage of certain characters in comparison expressio ns in XPath

Subject: [xsl] Problems with usage of certain characters in comparison expressio ns in XPath
From: Bagchi Ratul <bratul@xxxxxxxx>
Date: Tue, 26 Mar 2002 08:26:44 +0100
Hi,
I have a very typical problem with XPath query.The following is a part of
the XML I was applying a stylesheet on :
<function name="x">
<CalledIn>
	<Page name="a\b\c\d">
	<occurence>
	<LineNo>177</LineNo>
	<Text>call x()</Text>
	</occurence>
	<occurence>
	<LineNo>194</LineNo>
	<Text>call y :call x()</Text>
	</occurence>
	<occurence>
	<LineNo>210</LineNo>
	<Text>call x()</Text>
	</occurence>
	<occurence>
	<LineNo>229</LineNo>
	<Text>call x()</Text>
	</occurence>
	</Page>
</CalledIn>
</Function>

I have a XPath Query which goes like :
"//Function[name='x']/CalledIn/Page[@name='a/b/c/d']"
which should return the specified nodes, but it doesnt do that.Also when I
say
"//Function[name='x']/CalledIn/Page[@name!='']"
it returns these nodes. I think the problem is with using the character "\"
in the XPath query. Is this apprehension of mine correct? If that is the
case then how do I handle this situation?
Any help will be appreciated.
Regards,
Ratul.


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


Current Thread