Re: an issue when using the xml schema editor to show the reference element... [message #189147] |
Mon, 05 March 2007 20:39  |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Jackie,
You must be using the XML Schema editor provided by the webtools project
because the crude editor provided by the XSD project doesn't have a
graphical view. Does your schema contain an import of this namespace?
Jackie Zhang wrote:
> The namespace is defined as:
> xmlns:com.fnf="http://www.fnf.com/xes"
>
> The complex type is defined as the following:
> <xsd:complexType name="PaySvcRq_Type">
> <xsd:sequence>
> <xsd:element ref="RqUID"/>
> <xsd:element ref="MsgRqHdr" minOccurs="0"/>
> <xsd:element ref="AsyncRqUID" minOccurs="0"/>
> <xsd:element ref="SPName" minOccurs="0"/>
> <xsd:sequence maxOccurs="unbounded">
> <xsd:element ref="PmtAddRq" minOccurs="0"/>
> <xsd:element ref="CustPayeeAddRq" minOccurs="0"/>
> <xsd:element ref="com.fnf:CustPayeeInqRq" minOccurs="0"/>
> </xsd:sequence>
> </xsd:sequence>
> <xsd:attribute name="Id" type="xsd:ID"/>
> </xsd:complexType>
>
> when using the XMLSpy to open the schema file, It shows both
> <xsd:element ref="CustPayeeAddRq" minOccurs="0"/> and <xsd:element
> ref="com.fnf:CustPayeeInqRq" minOccurs="0"/> in the graphic view. but
> when using the xml schema editor to open the same file, it shows only
> <xsd:element ref="CustPayeeAddRq" minOccurs="0"/> in the grapic view.
>
> Thanks
> Jackie
>
>
>
>
>
>
>
|
|
|
Re: an issue when using the xml schema editor to show the reference element... [message #189197 is a reply to message #189147] |
Tue, 06 March 2007 14:25   |
Eclipse User |
|
|
|
Ed, yes, we are using webtools project. We have imported the namespace.
Dose the XSD schema editor support the substitutionGroup?
In one schema, for example, we have CustPayeeInfo_Type defined:
<xsd:complexType name="CustPayeeInfo_Type">
<xsd:sequence>
<xsd:element ref="Name" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
In another achema, we extended the CustPayeeInfo_Type and used
substitutionGroup like this:
<xsd:complexType name="CustPayeeInfo_Type">
<xsd:complexContent>
<xsd:extension base="CustPayeeInfo_Type">
<xsd:sequence>
<xsd:element ref="com.fnf:AcctName" minOccurs="0"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="CustPayeeInfo" type="com.fnf:CustPayeeInfo_Type"
substitutionGroup="CustPayeeInfo"/>
Thanks
Jackie
|
|
|
Re: an issue when using the xml schema editor to show the reference element... [message #189202 is a reply to message #189197] |
Tue, 06 March 2007 14:36   |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Jackie,
Yes, the underlying XSD model supports the full language.
Jackie Zhang wrote:
> Ed, yes, we are using webtools project. We have imported the
> namespace. Dose the XSD schema editor support the substitutionGroup?
>
> In one schema, for example, we have CustPayeeInfo_Type defined:
> <xsd:complexType name="CustPayeeInfo_Type">
> <xsd:sequence>
> <xsd:element ref="Name" minOccurs="0"/>
> </xsd:sequence>
> </xsd:complexType>
>
> In another achema, we extended the CustPayeeInfo_Type and used
> �substitutionGroup� like this:
>
> <xsd:complexType name="CustPayeeInfo_Type">
> <xsd:complexContent>
> <xsd:extension base="CustPayeeInfo_Type">
> <xsd:sequence>
> <xsd:element ref="com.fnf:AcctName" minOccurs="0"/>
> </xsd:sequence>
> </xsd:extension>
> </xsd:complexContent>
> </xsd:complexType>
> <xsd:element name="CustPayeeInfo" type="com.fnf:CustPayeeInfo_Type"
> substitutionGroup="CustPayeeInfo"/>
>
> Thanks
> Jackie
>
>
|
|
|
|
Re: an issue when using the xml schema editor to show the reference element... [message #189493 is a reply to message #189218] |
Fri, 09 March 2007 18:51   |
Eclipse User |
|
|
|
Hi, I finally got time back to this. I created a small example that can
show the problem. I am hoping that you guys can take a look at it first
before I open a bug.
The example contains 4 schemas, if you open IFX150_root.xsd in XML spy,
you will see both CustPayeeInfo and com.abc:CustPayeeInfo under
CustPayeeAddRq, but not in the XML schema editor (Eclipse 3.1 and Eclipse
3.2). The com.abc:CustPayeeInfo is defined in ABC.base.xsd and
substitutionGroup="CustPayeeInfo" is used.
IFX150_root.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.ifxforum.org/IFX_150"
xmlns:com.abc="http://www.abc.com/xyz"
targetNamespace="http://www.ifxforum.org/IFX_150"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xsd:include schemaLocation="IFX150_base.xsd"/>
<xsd:include schemaLocation="IFX150_messages.xsd"/>
<xsd:import namespace="http://www.abc.com/xyz"
schemaLocation="ABC_base.xsd"/>
<xsd:complexType name="BankSvcRq_Type">
<xsd:sequence>
<xsd:element ref="Name" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="Id" type="xsd:ID"/>
</xsd:complexType>
<xsd:complexType name="PaySvcRq_Type">
<xsd:sequence>
<xsd:element ref="Name" minOccurs="0"/>
<xsd:sequence maxOccurs="unbounded">
<xsd:element ref="Name" minOccurs="0"/>
<xsd:element ref="CustPayeeAddRq" minOccurs="0"/>
</xsd:sequence>
</xsd:sequence>
<xsd:attribute name="Id" type="xsd:ID"/>
</xsd:complexType>
<xsd:element name="PaySvcRq" type="PaySvcRq_Type"/>
</xsd:schema>
IFX150_base.xsd -
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="http://www.ifxforum.org/IFX_150"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.ifxforum.org/IFX_150"
elementFormDefault="qualified">
<xsd:complexType name="CustPayeeInfo_Type">
<xsd:sequence>
<xsd:element ref="Name" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="C">
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:simpleType name="Name_Type">
<xsd:restriction base="C">
<xsd:maxLength value="40"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:element name="CustPayeeInfo" type="CustPayeeInfo_Type"/>
<xsd:element name="Name" type="Name_Type"/>
</xsd:schema>
ABC.base.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:com.abc="http://www.abc.com/xyz"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.ifxforum.org/IFX_150"
targetNamespace="http://www.abc.com/xyz"
elementFormDefault="qualified">
<xsd:import namespace="http://www.ifxforum.org/IFX_150"
schemaLocation="IFX150_base.xsd"/>
<xsd:complexType name="CustPayeeInfo_Type">
<xsd:annotation>
<xsd:documentation>Cust Payee Info Aggregate</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="CustPayeeInfo_Type">
<xsd:sequence>
<xsd:element ref="Name" minOccurs="0"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="CustPayeeInfo" type="com.abc:CustPayeeInfo_Type"
substitutionGroup="CustPayeeInfo"/>
</xsd:schema>
IFX150_CustPayeeAdd.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.ifxforum.org/IFX_150"
targetNamespace="http://www.ifxforum.org/IFX_150"
elementFormDefault="qualified">
<xsd:include schemaLocation="IFX150_base.xsd"/>
<xsd:element name="CustPayeeAddRq" type="CustPayeeAddRq_Type"/>
<xsd:complexType name="CustPayeeAddRq_Type">
<xsd:sequence>
<xsd:element ref="Name"/>
<xsd:element ref="CustPayeeInfo"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
|
|
|
Re: an issue when using the xml schema editor to show the reference element... [message #189567 is a reply to message #189493] |
Sun, 11 March 2007 03:12   |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Jackie,
I don't really understand what you are expecting to see. It sounds like
you are expecting to see the substitution group element showing up in
the content model, but I don't think the editor is designed to display
the content model that way.
Jackie Zhang wrote:
> Hi, I finally got time back to this. I created a small example that
> can show the problem. I am hoping that you guys can take a look at it
> first before I open a bug. The example contains 4 schemas, if you open
> IFX150_root.xsd in XML spy, you will see both CustPayeeInfo and
> com.abc:CustPayeeInfo under CustPayeeAddRq, but not in the XML schema
> editor (Eclipse 3.1 and Eclipse 3.2). The com.abc:CustPayeeInfo is
> defined in ABC.base.xsd and substitutionGroup="CustPayeeInfo" is used.
>
> IFX150_root.xsd � <?xml version="1.0" encoding="UTF-8"?>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns="http://www.ifxforum.org/IFX_150"
> xmlns:com.abc="http://www.abc.com/xyz"
> targetNamespace="http://www.ifxforum.org/IFX_150"
> elementFormDefault="qualified" attributeFormDefault="unqualified">
> <xsd:include schemaLocation="IFX150_base.xsd"/>
> <xsd:include schemaLocation="IFX150_messages.xsd"/>
> <xsd:import namespace="http://www.abc.com/xyz"
> schemaLocation="ABC_base.xsd"/>
> <xsd:complexType name="BankSvcRq_Type">
> <xsd:sequence>
> <xsd:element ref="Name" minOccurs="0"/>
> </xsd:sequence>
> <xsd:attribute name="Id" type="xsd:ID"/>
> </xsd:complexType>
> <xsd:complexType name="PaySvcRq_Type">
> <xsd:sequence>
> <xsd:element ref="Name" minOccurs="0"/>
> <xsd:sequence maxOccurs="unbounded">
> <xsd:element ref="Name" minOccurs="0"/>
> <xsd:element ref="CustPayeeAddRq" minOccurs="0"/>
> </xsd:sequence>
> </xsd:sequence>
> <xsd:attribute name="Id" type="xsd:ID"/>
> </xsd:complexType>
> <xsd:element name="PaySvcRq" type="PaySvcRq_Type"/>
> </xsd:schema>
> IFX150_base.xsd - <?xml version="1.0" encoding="UTF-8"?>
> <xsd:schema xmlns="http://www.ifxforum.org/IFX_150"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://www.ifxforum.org/IFX_150"
> elementFormDefault="qualified">
> <xsd:complexType name="CustPayeeInfo_Type">
> <xsd:sequence>
> <xsd:element ref="Name" minOccurs="0"/>
> </xsd:sequence>
> </xsd:complexType>
> <xsd:simpleType name="C">
> <xsd:restriction base="xsd:string"/>
> </xsd:simpleType>
> <xsd:simpleType name="Name_Type">
> <xsd:restriction base="C">
> <xsd:maxLength value="40"/>
> </xsd:restriction>
> </xsd:simpleType>
> <xsd:element name="CustPayeeInfo" type="CustPayeeInfo_Type"/>
> <xsd:element name="Name" type="Name_Type"/>
> </xsd:schema>
> ABC.base.xsd
> <?xml version="1.0" encoding="UTF-8"?>
> <xsd:schema xmlns:com.abc="http://www.abc.com/xyz"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns="http://www.ifxforum.org/IFX_150"
> targetNamespace="http://www.abc.com/xyz" elementFormDefault="qualified">
> <xsd:import namespace="http://www.ifxforum.org/IFX_150"
> schemaLocation="IFX150_base.xsd"/>
> <xsd:complexType name="CustPayeeInfo_Type">
> <xsd:annotation>
> <xsd:documentation>Cust Payee Info Aggregate</xsd:documentation>
> </xsd:annotation>
> <xsd:complexContent>
> <xsd:extension base="CustPayeeInfo_Type">
> <xsd:sequence>
> <xsd:element ref="Name" minOccurs="0"/>
> </xsd:sequence>
> </xsd:extension>
> </xsd:complexContent>
> </xsd:complexType>
> <xsd:element name="CustPayeeInfo" type="com.abc:CustPayeeInfo_Type"
> substitutionGroup="CustPayeeInfo"/>
> </xsd:schema>
> IFX150_CustPayeeAdd.xsd
> <?xml version="1.0" encoding="UTF-8"?>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns="http://www.ifxforum.org/IFX_150"
> targetNamespace="http://www.ifxforum.org/IFX_150"
> elementFormDefault="qualified">
> <xsd:include schemaLocation="IFX150_base.xsd"/>
> <xsd:element name="CustPayeeAddRq" type="CustPayeeAddRq_Type"/>
> <xsd:complexType name="CustPayeeAddRq_Type">
> <xsd:sequence>
> <xsd:element ref="Name"/>
> <xsd:element ref="CustPayeeInfo"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:schema>
>
>
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03662 seconds