You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Christian Will (JIRA)" <xe...@xml.apache.org> on 2007/06/28 18:20:25 UTC

[jira] Created: (XERCESC-1716) xerces-c ignores the 'final' attribute and reports a 'derivation by restriction is forbidden' since the global attribute finalDefault is set to "#all"

xerces-c ignores the 'final' attribute and reports a 'derivation by restriction is forbidden' since the global attribute finalDefault is set to "#all"
------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: XERCESC-1716
                 URL: https://issues.apache.org/jira/browse/XERCESC-1716
             Project: Xerces-C++
          Issue Type: Bug
          Components: Validating Parser (Schema) (Xerces 1.5 or up only)
    Affects Versions: 2.7.0
            Reporter: Christian Will


Xerces-C ignores the 'final' attribute for the type 'foo' and reports a 'derivation by restriction is forbidden' since the global attribute finalDefault is set to "#all".

sample:

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" finalDefault="#all">
	<xs:complexType name="foo" final="">
		<xs:sequence>
			<xs:element name="myEle1" type="xs:string" minOccurs="0"/>
			<xs:element name="myEle2" type="xs:integer" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="fooType">
		<xs:complexContent>
			<xs:restriction base="foo">
				<xs:sequence>
					<xs:element name="myEle1" type="xs:string"/>
				</xs:sequence>
			</xs:restriction>
		</xs:complexContent>
	</xs:complexType>
</xs:schema>

Regards,
Christian Will

mail: christian.will@gmail.com

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Resolved: (XERCESC-1716) xerces-c ignores the 'final' attribute and reports a 'derivation by restriction is forbidden' since the global attribute finalDefault is set to "#all"

Posted by "Alberto Massari (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESC-1716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alberto Massari resolved XERCESC-1716.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1.0
         Assignee: Alberto Massari

Fix is in SVN

> xerces-c ignores the 'final' attribute and reports a 'derivation by restriction is forbidden' since the global attribute finalDefault is set to "#all"
> ------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: XERCESC-1716
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1716
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Validating Parser (XML Schema)
>    Affects Versions: 2.7.0
>            Reporter: Christian Will
>            Assignee: Alberto Massari
>             Fix For: 3.1.0
>
>
> Xerces-C ignores the 'final' attribute for the type 'foo' and reports a 'derivation by restriction is forbidden' since the global attribute finalDefault is set to "#all".
> sample:
> <?xml version="1.0"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" finalDefault="#all">
> 	<xs:complexType name="foo" final="">
> 		<xs:sequence>
> 			<xs:element name="myEle1" type="xs:string" minOccurs="0"/>
> 			<xs:element name="myEle2" type="xs:integer" minOccurs="0"/>
> 		</xs:sequence>
> 	</xs:complexType>
> 	<xs:complexType name="fooType">
> 		<xs:complexContent>
> 			<xs:restriction base="foo">
> 				<xs:sequence>
> 					<xs:element name="myEle1" type="xs:string"/>
> 				</xs:sequence>
> 			</xs:restriction>
> 		</xs:complexContent>
> 	</xs:complexType>
> </xs:schema>
> Regards,
> Christian Will
> mail: christian.will@gmail.com

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org