[Mono-bugs] [Bug 76309][Wis] New - the id() function is not
supported in current xpath implementation
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat Oct 1 10:03:50 EDT 2005
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by s.ros at evaluant.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76309
--- shadow/76309 2005-10-01 10:03:50.000000000 -0400
+++ shadow/76309.tmp.9528 2005-10-01 10:03:50.000000000 -0400
@@ -0,0 +1,71 @@
+Bug#: 76309
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: Sys.XML
+AssignedTo: atsushi at ximian.com
+ReportedBy: s.ros at evaluant.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: the id() function is not supported in current xpath implementation
+
+Description of Problem:
+
+In XPath, the id() function should return a node with a specific id, set
+in the DTD. In mono this function is not implemented.
+
+Steps to reproduce the problem:
+
+1. Use this XML file:
+
+<!DOCTYPE USS[
+ <!ELEMENT USS (Entity*)>
+ <!ELEMENT Entity (Reference*, Attribute*)>
+ <!ELEMENT Reference EMPTY>
+ <!ELEMENT Attribute (#PCDATA)>
+ <!ATTLIST Entity
+ Type CDATA #REQUIRED
+ Id ID #REQUIRED
+ >
+ <!ATTLIST Reference
+ Role CDATA #REQUIRED
+ RefId IDREF #REQUIRED
+ >
+ <!ATTLIST Attribute
+ Type CDATA #REQUIRED
+ Name CDATA #REQUIRED
+ >
+]>
+<USS>
+ <Entity Type="Person" Id="ea5cc780-5b45-47a3-9b43-e035cc75b5de">
+ <Attribute Name="Firstname" Type="System.String">Sébastien</Attribute>
+ </Entity>
+</USS>
+
+2. Execute this request in XPath:
+
+XmlNode node = xDoc.SelectNodes("id('ea5cc780-5b45-47a3-9b43-
+e035cc75b5de'");
+
+
+4. Another test can also be found here:
+http://javaalmanac.com/egs/org.w3c.dom/xpath_GetElemById.html?l=new
+
+Actual Results:
+The node is null
+
+Expected Results:
+node should not be null and be the corresponding XmlElement.
+
+How often does this happen?
+Allways
+
+Additional Information:
+In the XML norm, the id should begin with a letter.
More information about the mono-bugs
mailing list