get brittlelocalreferenceexception because of error in menuNode.xsd
-------------------------------------------------------------------

                 Key: TRINIDAD-1665
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1665
             Project: MyFaces Trinidad
          Issue Type: Bug
          Components: Components
    Affects Versions:  1.2.12-core
         Environment: Generic
            Reporter: Vimal Kumar Gupta


I am getting the following exception in trinidad:

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 message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to