Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Problems when referencing an included attribute group with anyAttribute
Problems when referencing an included attribute group with anyAttribute [message #594605] Fri, 25 March 2005 09:06
Steve Speicher is currently offline Steve Speicher
Messages: 83
Registered: July 2009
Member

This is a multi-part message in MIME format.
--------------020701000506070900010500
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Greetings,

I'm having some difficulty with getting XSDWildcard information from
included schemas. I have included an example that illustrates the problem.

Specifically, I have a <attributeGroup> definition in an included schema
with contains <anyAttribute>. It appears that when I get the
XSDAttributeGroupDefinition.getAttributeWildcard() it always returns
null from the including schema.

To run the sample, install the plugin, it adds a context action for
*.xsd called "Parse XSD with Include and AttrGroup Wildcard". Running
on the file without the include will yield appropriate result. Running
on the schema that includes will show that it is null.

I haven't played with this much but I did have different results when I
had various namespaces (no default or no target) in the included schema.

Thanks in advance for any help,
Steve Speicher



--------------020701000506070900010500
Content-Type: text/xml;
name="Contact_any_attrgrp.xsd"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Contact_any_attrgrp.xsd"

<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">

<xsd:attributeGroup name="anyAttributeGroup">
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:attributeGroup>

</xsd:schema>
--------------020701000506070900010500
Content-Type: text/xml;
name="Contact_any_attrgroup_includer.xsd"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Contact_any_attrgroup_includer.xsd"

<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:contact="http://www.ibm.com/contact"
targetNamespace="http://www.ibm.com/contact"
elementFormDefault="qualified">

<xsd:include schemaLocation="Contact_any_attrgrp.xsd"/>

<xsd:complexType name="includeAttrs">
<xsd:sequence>
<xsd:element name="dummy" type="xsd:string"/>
</xsd:sequence>
<xsd:attributeGroup ref="contact:anyAttributeGroup"/>
</xsd:complexType>

</xsd:schema>
--------------020701000506070900010500
Content-Type: application/zip;
name="xsd.include-attrgrp-wildcard.sample.zip"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="xsd.include-attrgrp-wildcard.sample.zip"

UEsDBBQACAAIALRIeTIAAAAAAAAAAAAAAAArAAAAY29tLmlibS5ldGVjaC54 c2Quc2FtcGxl
LmluY2x1ZGUvLmNsYXNzcGF0aJ2PPQvCMBRFZwX/Q8huqptDaxGpoEOVUmep yaONxpeYD9F/
b1WKLjq43Xs5HLhxej0pcgHrpMaEjtmIEkCuhcQ6odtyMZzQdDrox1xVzpnK N23pvRugtzdy
lCgS6iyn5DG+YvSd5Bo7UtuaAVfSOGBGAOPaArNwDtKC2KhQS3R/qA7CM1UF 5E17hK2KbDdf
5+VsmWfFL5sO3gTfCfcSn3Acfb6/A1BLBwjKfBFNpQAAADMBAABQSwMEFAAI AAgAtEh5MgAA
AAAAAAAAAAAAACkAAABjb20uaWJtLmV0ZWNoLnhzZC5zYW1wbGUuaW5jbHVk ZS8ucHJvamVj
dL2SzU4DIRSF15r4Ds3sZXTngk6TatxpTKoPQC/XKQ1cCD9NH19ARjOZmLgw 7u45nMNHAL45
G706oQ/K0rq7ZTfdCgmsVDSuu7fXx+u7bjNcXXLn7REhPmAAr1zM6execBIG B7CGqb1hGBEO
7BwkC8I4jUwR6CSR9zVW8jlqkOLA+2kqbts8VNHP1D4pLXcOoagm73NVkKxO O4L1I0PQygVk
RxkZWJ8HcRK1gP77CLkh/JgKOzTdzw3eLyi/4jqJ7EmQescQt/+L3cEBjfgT aHOmK8+8mDy2
9KdY4F90GhU918VCr6GfCrPnoUVnmgvx6y/Mv90HUEsHCHrlrA71AAAAtQIA AFBLAwQUAAgA
CAC0SHkyAAAAAAAAAAAAAAAAMQAAAGNvbS5pYm0uZXRlY2gueHNkLnNhbXBs ZS5pbmNsdWRl
L2J1aWxkLnByb3Bl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UuaW5jbHVkZS9zcmMvY29tL2libS9ldGVj aC94c2Qvc2Ft
cGxlL2luY2x1ZGUvSW5jbHVkZVBsdWdpbi5qYXZhUEsBAhQAFAAIAAgAtEh5 MqpYSJGzBAAA
eQ8AAGwAAAAAAAAAAAAAAAAA3QcAAGNvbS5pYm0uZXRlY2gueHNkLnNhbXBs ZS5pbmNsdWRl
L3NyYy9jb20vaWJtL2V0ZWNoL3hzZC9zYW1wbGUvaW5jbHVkZS9wb3B1cC9h Y3Rpb25zL1Bh
cnNlWFNEd2l0aEluY2x1ZGUuamF2YVBLBQYAAAAABgAGAIgCAAAqDQAAAAA=
--------------020701000506070900010500--
Previous Topic:Problem validating a reference to xsd:schema
Next Topic:Problems when referencing an included attribute group with anyAttribute
Goto Forum:
  


Current Time: Sat Jul 26 05:10:05 EDT 2014

Powered by FUDForum. Page generated in 0.22595 seconds