You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Benson Margulies (JIRA)" <ji...@apache.org> on 2008/11/16 18:21:44 UTC
[jira] Resolved: (WSCOMMONS-353) anyAttribute declarations are
being lost when serialized...
[ https://issues.apache.org/jira/browse/WSCOMMONS-353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benson Margulies resolved WSCOMMONS-353.
----------------------------------------
Resolution: Fixed
Fix Version/s: XmlSchema 1.4.3
Fixed.
> anyAttribute declarations are being lost when serialized...
> -----------------------------------------------------------
>
> Key: WSCOMMONS-353
> URL: https://issues.apache.org/jira/browse/WSCOMMONS-353
> Project: WS-Commons
> Issue Type: Bug
> Components: XmlSchema
> Reporter: Daniel Kulp
> Priority: Critical
> Fix For: XmlSchema 1.4.3
>
>
> I have a schema type defined as:
> <complexType name="OccuringStructWithAnyAttribute">
> <sequence minOccurs="1" maxOccurs="5">
> <element name="varString" type="xsd:string"/>
> <element name="varInt" type="xsd:int"/>
> </sequence>
> <attribute name="AtString" type="xsd:string"/>
> <attribute name="AtInt" type="xsd:int"/>
> <anyAttribute processContents="skip"/>
> </complexType>
> However, when that is loaded and then serialized, it ends up like:
> <xsd:complexType name="OccuringStructWithAnyAttribute">
> <xsd:sequence maxOccurs="5">
> <xsd:element name="varString" type="string"/>
> <xsd:element name="varInt" type="int"/>
> </xsd:sequence>
> <xsd:attribute name="AtString" type="string"/>
> <xsd:attribute name="AtInt" type="int"/>
> </xsd:complexType>
> The <anyAttribute processContents="skip"/> thing is missing which is critical for validation to work.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.