I want to select all AAAA nodes with name attribute value of "myval" but I'm getting syntax error. Can you please help me on this?
Thanks.]]>albert g2012-01-06T03:31:45-00:00Re: xpath error
https://www.eclipse.org/forums/index.php/mv/msg/273784/775516/#msg_775516
On 06/01/2012 4:31 AM, albert g wrote:
> Hi guys,
>
> <xsd:keyref name="Ref1" refer="referA">
> <xsd:selector xpath=".//AAAA[@name="myval"]" />
Wouldn't you expect the second " after the first " to end the string
literal? XML allows either a ' or a " to be used, and depending on which
you use for the string as a whole, you should use the other inside the
string.
> <xsd:field xpath="@attribute1" />
> </xsd:keyref>
>
> I want to select all AAAA nodes with name attribute value of "myval"
> but I'm getting syntax error. Can you please help me on this?
>
> Thanks.]]>Ed Merks2012-01-06T06:20:11-00:00Re: xpath error
https://www.eclipse.org/forums/index.php/mv/msg/273784/775661/#msg_775661
Hi Ed,
I replaced the quotes with " but still not working.
<xsd:selector xpath=".//AAAA[@name="myval"]" />
]]>albert g2012-01-06T13:32:30-00:00Re: xpath error
https://www.eclipse.org/forums/index.php/mv/msg/273784/775688/#msg_775688
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
It still looks like you have four double quotes...<br>
<br>
Also, it doesn't like like you're conforming to the restricted
subset of XPath that's permitted by the specification:<br>
<blockquote><a
href="http://www.w3.org/TR/xmlschema-1/#coss-identity-constraint">http://www.w3.org/TR/xmlschema-1/#coss-identity-constraint</a><br>
</blockquote>
<br>
On 06/01/2012 2:32 PM, albert g wrote:
<blockquote cite="mid:je6t5e$ir5$1@news.eclipse.org" type="cite">
<br>
Hi Ed,
<br>
<br>
I replaced the quotes with " but still not working.
<br>
<xsd:selector xpath=".//AAAA[@name="myval"]" />
<br>
<br>
</blockquote>
</body>
</html>]]>Ed Merks2012-01-06T14:15:33-00:00