[
https://issues.apache.org/jira/browse/TRINIDAD-1665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Robinson updated TRINIDAD-1665:
--------------------------------------
Resolution: Fixed
Fix Version/s: 1.2.13-core
Status: Resolved (was: Patch Available)
Patch applied
> 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
> Fix For: 1.2.13-core
>
> Attachments: JIRA-1665-1.2.12.2.patch
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> 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
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.