on 04-05-2006 4:51 PM
Hello: I am using MDM 5.5 SP3, and I am trying to use Syndicator to output multilingual XML product descriptions. The XSD I am attempting to use is pasted below.
When I attempt to specify the Destination Properties and select the XSD file I have loaded into the repository via the Console, I am unable to select the "Root" (it is grayed out). I am unable to use the XSD in any way within Syndicator because the "OK" button is grayed out...I assume because Root has not been specified.
Any suggestions?
Thank you - Matt
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2000/10/XMLSchema">
<xs:element name="ProdDescription" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="ProdCatalogNum" type="xs:string"/>
<xs:element name="Description" type="xs:string" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Language" type="xs:string"/>
<xs:element name="Value" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
I also tried this variant with no success. Changes are <b>in bold</b> and notes are <u>underlined</u>.
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2000/10/XMLSchema">
<b><xs:element name="root">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element ref="ProdDescription" />
</xs:choice>
</xs:complexType>
</xs:element></b>
<xs:element name="ProdDescription"> <u>previously: maxOccurs="unbounded"</u>
<xs:complexType>
<xs:sequence>
<xs:element name="ProdCatalogNum" type="xs:string"/>
<xs:element name="Description" type="xs:string" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Language" type="xs:string"/>
<xs:element name="Value" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
I solved my problem: here is the updated XSD:
I believe it was mostly due to the <b>bolded</b> line:
<?xml version="1.0"?>
<b><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"></b>
<xsd:element name="ProdDescription" type="ProdDescType"/>
<xsd:complexType name="ProdDescType">
<xsd:sequence>
<xsd:element name="ProdCatalogNum" type="xsd:string"/>
<xsd:element name="Description" type="DescriptionType" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="DescriptionType">
<xsd:sequence>
<xsd:element name="Language" type="xsd:string"/>
<xsd:element name="Value" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.