[ 
https://issues.apache.org/jira/browse/XMLSCHEMA-10?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13105416#comment-13105416
 ] 

Hudson commented on XMLSCHEMA-10:
---------------------------------

Integrated in xmlschema-trunk-jdk15 #14 (See 
[https://builds.apache.org/job/xmlschema-trunk-jdk15/14/])
    [XMLSCHEMA-10] Fix issues with attributes being written out before the 
facets
Patch from William Eliot Kimber applied
(also fix stuff I shouldn't have committed in my last commit...  need to switch
my XmlSchema checkout to git.....)

dkulp : 
Files : 
* 
/webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchemaSerializer.java


> Serialized xs:restriction puts xs:attribute before xs:simpleType when it 
> should not
> -----------------------------------------------------------------------------------
>
>                 Key: XMLSCHEMA-10
>                 URL: https://issues.apache.org/jira/browse/XMLSCHEMA-10
>             Project: XmlSchema
>          Issue Type: Bug
>    Affects Versions: XmlSchema 1.4.4, XmlSchema 1.4.6, XmlSchema 1.4.7
>            Reporter: William Eliot Kimber
>            Assignee: Daniel Kulp
>              Labels: serialization
>             Fix For: XmlSchema 1.4.7, XmlSchema 2.0.1
>
>         Attachments: XMLSCHEMA-10-wek-patch.txt, wek-XMLSCHEMA-10-2.0.txt
>
>
> GIven this original markup:
> <xs:restriction base="xs:anyType">
>         <xs:sequence>
>           <xs:any processContents="lax" minOccurs="0" maxOccurs="0"/>
>         </xs:sequence>
>         <xs:attribute name="lang" use="optional"/>
>       </xs:restriction>
> After parsing and serializing the schema with no intervening modification, 
> the serialized result is:
> <xs:restriction base="tns:SimpleLiteral">
>                 <xs:attribute name="lang" use="prohibited"/>
>                 <xs:simpleType>
>                     <xs:restriction base="xs:string"/>
>                 </xs:simpleType>
>             </xs:restriction>
> Note the xs:attribute before the xs:simpleType.
> The bug appears to a simple coding error in 
> org.apache.ws.commons.schema.XmlSchemaSerializer.serializeSimpleContentRestriction(Document,
>  XmlSchemaSimpleContentRestriction, XmlSchema) in that it's putting the 
> attributes out before the inline simple type.
> I can provide a simple unit test that demonstrates the failure if needed.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ws.apache.org
For additional commands, e-mail: dev-h...@ws.apache.org

Reply via email to