Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

complexType mixed content problem

Avatar

Former Community Member

Hi

I've in my xsd  mixed content type elements.  eg: like

    <xs:element name="letter">
  <xs:complexType mixed="true">
    <xs:sequence>
      <xs:element name="name" type="xs:string"/>
      <xs:element name="orderid" type="xs:positiveInteger"/>
      <xs:element name="shipdate" type="xs:date"/>
    </xs:sequence>
    <xs:attribute name="testattribute" type="xs:string"/>
  </xs:complexType>
</xs:element>

when i create dataconnection in livecycle designer ES using thsi xsd I can see only attributes ,but not the elements. As i need to map these elements on my PDF form, can somebody help how to see these elements and map?

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10

Try removing the mixed ="true" from the XSD..

<xs:element name="letter">
  <xs:complexType mixed="true">

Thanks

Srini

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Try removing the mixed ="true" from the XSD..

<xs:element name="letter">
  <xs:complexType mixed="true">

Thanks

Srini

Avatar

Former Community Member

Hi

thanks for the tip, it worked well. Also i have another problem. I'm actullay using two xsd. the first one is dictionory the second one form specific.

Int he form specific xsd  I use restriction from the dictionary

for eg: dictionary.xsd is like this

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.example.org/Base"
targetNamespace="http://www.example.org/Base"
elementFormDefault="unqualified">

<xs:element name="A" type="AType" />
<xs:complexType name="AType">
<xs:sequence>
<xs:element name="title" type="xs:string" />
<xs:element name="name" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:schema>

form.xsd is

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.example.org/Restriction"
targetNamespace="http://www.example.org/Restriction"
xmlns:base="http://www.example.org/Base"
elementFormDefault="unqualified">

<xs:import namespace="http://www.example.org/Base"
schemaLocation="dictionary.xsd" />

<xs:element name="ARestricted" type="ARestrictedType" />
<xs:complexType name="ARestrictedType">
<xs:complexContent>
<xs:restriction base="base:AType">
<xs:sequence>
<xs:element name="name" type="xs:string" />
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
</xs:schema>

when i import this into livecyle  I'm expecting to see only restricted elements but i see all the elements from dictionary.

Here in this case I want to see in dataview only "name", but i see both "title" and "name"

In my actual forms "dictionary xsd" is so big which makes my livecycle designe very slow.

As a result i get this error message, if i remove some of the elements then livecycle can import.

livecycleproblem.JPG

Is there any tip to stop importing all elements.