You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Jorge Williams <jo...@rackspace.com> on 2012/03/15 00:21:00 UTC
Problem building xml-schema-1.1-dev
The following seems to fix:
diff --git a/samples/xs/XSSerializer.java b/samples/xs/XSSerializer.java
index 400d28b..bdf1b6b 100644
--- a/samples/xs/XSSerializer.java
+++ b/samples/xs/XSSerializer.java
@@ -39,7 +39,7 @@ import org.apache.xerces.impl.xs.identity.Field;
import org.apache.xerces.impl.xs.identity.IdentityConstraint;
import org.apache.xerces.impl.xs.identity.KeyRef;
import org.apache.xerces.impl.xs.identity.Selector;
-import org.apache.xerces.impl.xs.util.XSTypeHelper;
+import org.apache.xerces.impl.xs.util.XS11TypeHelper;
import org.apache.xerces.xs.StringList;
import org.apache.xerces.xs.XSAttributeUse;
import org.apache.xerces.xs.XSComplexTypeDefinition;
@@ -885,7 +885,7 @@ public class XSSerializer {
String requiredVal = (attrUse.getRequired() == true) ? SchemaSymbols.ATTVAL_REQUIRED : SchemaSymbols.ATTVAL_OPTIONAL;
XSAttributeDecl attrDecl = (XSAttributeDecl) attrUse.getAttrDeclaration();
XSComplexTypeDefinition enclosingCTDefn = attrDecl.getEnclosingCTDefinition();
- boolean complexTypesIdentical = (enclosingCTDefn == null) ? false : XSTypeHelper.isSchemaTypesIdentical(complexTypeDecl, enclosingCTDefn);
+ boolean complexTypesIdentical = (enclosingCTDefn == null) ? false : XS11TypeHelper.isSchemaTypesIdentical(complexTypeDecl, enclosingCTDefn);
// do not add attributes, from the base type. they will be serialized as part of the base type serialization.
if (complexTypesIdentical) {
addAttributeToSchemaComponent(document, parentDomNode, attrDecl, constraintName, constraintVal, requiredVal);
Thanks,
-jOrGe W.
---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org
Re: Problem building xml-schema-1.1-dev
Posted by Mukul Gandhi <mu...@apache.org>.
my apologies for missing this code change. it was unintentional.
Thanks, Michael.
On Thu, Mar 15, 2012 at 5:15 AM, Michael Glavassevich
<mr...@ca.ibm.com> wrote:
> Hi Jorge,
>
> I see there was some refactoring done yesterday which caused this
> compilation error. It's fixed now.
>
> Thanks for pointing it out.
>
> Michael Glavassevich
> XML Technologies and WAS Development
> IBM Toronto Lab
> E-mail: mrglavas@ca.ibm.com
> E-mail: mrglavas@apache.org
>
> Jorge Williams <jo...@rackspace.com> wrote on 03/14/2012 07:21:00
> PM:
>
>
>> The following seems to fix:
>>
>> diff --git a/samples/xs/XSSerializer.java b/samples/xs/XSSerializer.java
>> index 400d28b..bdf1b6b 100644
>> --- a/samples/xs/XSSerializer.java
>> +++ b/samples/xs/XSSerializer.java
>> @@ -39,7 +39,7 @@ import org.apache.xerces.impl.xs.identity.Field;
>> import org.apache.xerces.impl.xs.identity.IdentityConstraint;
>> import org.apache.xerces.impl.xs.identity.KeyRef;
>> import org.apache.xerces.impl.xs.identity.Selector;
>> -import org.apache.xerces.impl.xs.util.XSTypeHelper;
>> +import org.apache.xerces.impl.xs.util.XS11TypeHelper;
>> import org.apache.xerces.xs.StringList;
>> import org.apache.xerces.xs.XSAttributeUse;
>> import org.apache.xerces.xs.XSComplexTypeDefinition;
>> @@ -885,7 +885,7 @@ public class XSSerializer {
>> String requiredVal = (attrUse.getRequired() == true) ?
>> SchemaSymbols.ATTVAL_REQUIRED : SchemaSymbols.ATTVAL_OPTIONAL;
>> XSAttributeDecl attrDecl = (XSAttributeDecl)
>> attrUse.getAttrDeclaration();
>> XSComplexTypeDefinition enclosingCTDefn =
>> attrDecl.getEnclosingCTDefinition();
>> - boolean complexTypesIdentical = (enclosingCTDefn ==
>> null) ? false : XSTypeHelper.isSchemaTypesIdentical(complexTypeDecl,
>> enclosingCTDefn);
>> + boolean complexTypesIdentical = (enclosingCTDefn ==
>> null) ? false : XS11TypeHelper.isSchemaTypesIdentical
>> (complexTypeDecl, enclosingCTDefn);
>> // do not add attributes, from the base type. they will
>> be serialized as part of the base type serialization.
>> if (complexTypesIdentical) {
>> addAttributeToSchemaComponent(document,
>> parentDomNode, attrDecl, constraintName, constraintVal, requiredVal);
>>
>>
>> Thanks,
>>
>> -jOrGe W.
--
Regards,
Mukul Gandhi
---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org
Re: Problem building xml-schema-1.1-dev
Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Hi Jorge,
I see there was some refactoring done yesterday which caused this
compilation error. It's fixed now.
Thanks for pointing it out.
Michael Glavassevich
XML Technologies and WAS Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org
Jorge Williams <jo...@rackspace.com> wrote on 03/14/2012 07:21:00
PM:
> The following seems to fix:
>
> diff --git a/samples/xs/XSSerializer.java b/samples/xs/XSSerializer.java
> index 400d28b..bdf1b6b 100644
> --- a/samples/xs/XSSerializer.java
> +++ b/samples/xs/XSSerializer.java
> @@ -39,7 +39,7 @@ import org.apache.xerces.impl.xs.identity.Field;
> import org.apache.xerces.impl.xs.identity.IdentityConstraint;
> import org.apache.xerces.impl.xs.identity.KeyRef;
> import org.apache.xerces.impl.xs.identity.Selector;
> -import org.apache.xerces.impl.xs.util.XSTypeHelper;
> +import org.apache.xerces.impl.xs.util.XS11TypeHelper;
> import org.apache.xerces.xs.StringList;
> import org.apache.xerces.xs.XSAttributeUse;
> import org.apache.xerces.xs.XSComplexTypeDefinition;
> @@ -885,7 +885,7 @@ public class XSSerializer {
> String requiredVal = (attrUse.getRequired() == true) ?
> SchemaSymbols.ATTVAL_REQUIRED : SchemaSymbols.ATTVAL_OPTIONAL;
> XSAttributeDecl attrDecl = (XSAttributeDecl)
> attrUse.getAttrDeclaration();
> XSComplexTypeDefinition enclosingCTDefn =
> attrDecl.getEnclosingCTDefinition();
> - boolean complexTypesIdentical = (enclosingCTDefn ==
> null) ? false : XSTypeHelper.isSchemaTypesIdentical(complexTypeDecl,
> enclosingCTDefn);
> + boolean complexTypesIdentical = (enclosingCTDefn ==
> null) ? false : XS11TypeHelper.isSchemaTypesIdentical
> (complexTypeDecl, enclosingCTDefn);
> // do not add attributes, from the base type. they will
> be serialized as part of the base type serialization.
> if (complexTypesIdentical) {
> addAttributeToSchemaComponent(document,
> parentDomNode, attrDecl, constraintName, constraintVal, requiredVal);
>
>
> Thanks,
>
> -jOrGe W.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org