Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Re: an issue when using the xml schema editor to show the reference element...
Re: an issue when using the xml schema editor to show the reference element... [message #189147] Mon, 05 March 2007 20:39 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 22
Registered: July 2009
Junior Member
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #189218 is a reply to message #189202] Tue, 06 March 2007 17:01 Go to previous messageGo to next message
Keith Chong is currently offline Keith ChongFriend
Messages: 64
Registered: July 2009
Member
Hi Jackie,

Can you please open a bug and if possible, attach your schemas?

I viewed your PaySvcRq_Type in the editor, and even though the element
CustPayeeInqRq is not resolved, I can still view it in the graph view.
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 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 22
Registered: July 2009
Junior Member
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 Go to previous messageGo to next message
Eclipse UserFriend
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>
>
>
Re: The images are provided [message #190366 is a reply to message #189567] Fri, 23 March 2007 15:14 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 22
Registered: July 2009
Junior Member
Ed,
Could you take a look at the picturs here
http://i148.photobucket.com/albums/s15/xmlplus/SchemViewInEc llipse.jpg
http://i148.photobucket.com/albums/s15/xmlplus/SchemaViewInX mlSpy.jpg

please notice that the com.abc:CustPayeeInfo displays in the
CustPayeeInfoRq_type in XML SPy, we would like to see if the XML schema
editor can support the same.

Thanks
Jackie
Re: The images are provided [message #190374 is a reply to message #190366] Fri, 23 March 2007 15:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Jackie,

Since I don't work on WTP, I can't really comment on this. Someone else
will need to comment.


Jackie Zhang wrote:
> Ed, Could you take a look at the picturs here
> http://i148.photobucket.com/albums/s15/xmlplus/SchemViewInEc llipse.jpg
> http://i148.photobucket.com/albums/s15/xmlplus/SchemaViewInX mlSpy.jpg
>
> please notice that the com.abc:CustPayeeInfo displays in the
> CustPayeeInfoRq_type in XML SPy, we would like to see if the XML
> schema editor can support the same.
>
> Thanks
> Jackie
>
>
Re: The images are provided [message #190402 is a reply to message #190366] Sat, 24 March 2007 03:14 Go to previous messageGo to next message
Craig Salter is currently offline Craig SalterFriend
Messages: 169
Registered: July 2009
Senior Member
Jackie,

It seems as though you're asking us to support showing substitution groups
within the graphical view... though I'd need to have the 'full' source
code to confirm (including imported/included schemas). If you can open a
bugzilla bug for this and attach your samples and images there and we'll
definitely investigate this enhancement.

Jackie Zhang wrote:

> Ed,
> Could you take a look at the picturs here
> http://i148.photobucket.com/albums/s15/xmlplus/SchemViewInEc llipse.jpg
> http://i148.photobucket.com/albums/s15/xmlplus/SchemaViewInX mlSpy.jpg

> please notice that the com.abc:CustPayeeInfo displays in the
> CustPayeeInfoRq_type in XML SPy, we would like to see if the XML schema
> editor can support the same.

> Thanks
> Jackie
Re: The images are provided [message #190435 is a reply to message #190402] Mon, 26 March 2007 14:20 Go to previous message
No real name is currently offline No real nameFriend
Messages: 22
Registered: July 2009
Junior Member
Thank for the response. the bug is opened.
https://bugs.eclipse.org/bugs/post_bug.cgi
Previous Topic:removing a jar
Next Topic:Migrating problems from WTP 0.7 to 1.5
Goto Forum:
  


Current Time: Tue Mar 19 05:32:27 GMT 2024

Powered by FUDForum. Page generated in 0.02932 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top