Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.2.12-core
-
None
-
Generic
Description
The issue is in the XSD - menuNode.xsd. In this XSD, the attribute "id" is registered as unique for the node "itemNode" in the following way..
16 <xsd:complexType name="menuNodeType">
17 <xsd:complexContent>
18 <xsd:extension base="trmenu:baseType">
19 <xsd:choice minOccurs="0" maxOccurs="unbounded">
20 <xsd:element ref="trmenu:itemNode"/>
21 <xsd:element ref="trmenu:groupNode"/>
22 <xsd:element ref="trmenu:sharedNode"/>
23 </xsd:choice>
24 <xsd:attribute name="id" type="xsd:id" use="required"/>
25 <xsd:attribute name="label" type="trmenu:stringOrElExpression"/>
Above syntax is wrong and it should be registered as following..
24 <xsd:attribute name="id" type="xsd:ID" use="required"/>
(Please note that "id" is defined in the default xml NS "http://www.w3.org/XML/1998/namespace", where as "ID" is defined in the NS "http://www.w3.org/2001/XMLSchema")
After fixing the above issue, I no more see the BrittleXpath exception with the uploaded workspace using steps given in the bug.
This issue is in two files:
org/apache/myfaces/trinidadinternal/menu/xml/schemas/menuNode.xsd
org/apache/myfaces/trinidadinternal/menu/xml/schemas/sharedNode.xsd