Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsRe: an issue when using the xml schema editor to show the reference element...
https://www.eclipse.org/forums/index.php/mv/msg/59825/189147/#msg_189147
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
>
>
>
>
>
>
>]]>2007-03-05T20:39:02-00:00Re: an issue when using the xml schema editor to show the reference element...
https://www.eclipse.org/forums/index.php/mv/msg/59825/189197/#msg_189197
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:
Thanks
Jackie]]>No real name2007-03-06T14:25:10-00:00Re: an issue when using the xml schema editor to show the reference element...
https://www.eclipse.org/forums/index.php/mv/msg/59825/189202/#msg_189202
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
>
>]]>2007-03-06T14:36:17-00:00Re: an issue when using the xml schema editor to show the reference element...
https://www.eclipse.org/forums/index.php/mv/msg/59825/189218/#msg_189218
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.]]>Keith Chong2007-03-06T17:01:06-00:00Re: an issue when using the xml schema editor to show the reference element...
https://www.eclipse.org/forums/index.php/mv/msg/59825/189493/#msg_189493
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.
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>
>
>]]>2007-03-11T03:12:34-00:00Re: The images are provided
https://www.eclipse.org/forums/index.php/mv/msg/59825/190366/#msg_190366
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]]>No real name2007-03-23T15:14:28-00:00Re: The images are provided
https://www.eclipse.org/forums/index.php/mv/msg/59825/190374/#msg_190374
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
>
>]]>2007-03-23T15:29:45-00:00Re: The images are provided
https://www.eclipse.org/forums/index.php/mv/msg/59825/190402/#msg_190402
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.
> 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]]>Craig Salter2007-03-24T03:14:31-00:00Re: The images are provided
https://www.eclipse.org/forums/index.php/mv/msg/59825/190435/#msg_190435
https://bugs.eclipse.org/bugs/post_bug.cgi]]>No real name2007-03-26T14:20:15-00:00