12-17-2007 08:38 AM
– title
– location
_________
|—-title
|—-language='EN'
|—-body
___________
|—-title
|—-language='FR'
|—-body
¯¯¯¯¯¯¯¯¯¯¯
– expiration_date
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:simpleType name="language">
<xs:restriction base="xs:normalizedString">
<xs:enumeration value="French"/>
<xs:enumeration value="English"/>
</xs:restriction>
</xs:simpleType>
<!– defines the form for creating a press release –>
<xs:element name="web_page">
<xs:complexType>
<xs:sequence>
<xs:element name="title" type="xs:normalizedString"/>
<xs:element name="location" type="xs:normalizedString"/>
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="title" type="xs:normalizedString"/>
<xs:element name="language" type="language/> <!– My personal type define on top –>
<xs:element name="body" type="xs:string"/>
</xs:sequence>
<xs:element name="expiration_date" type="xs:date"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
having this error code for now..org.alfresco.service.cmr.repository.InvalidNodeRefException: Node does not exist: workspace://SpacesStore/acf950ab-aa83-11dc-a736-d7f2cb8da3db
12-17-2007 11:52 AM
12-17-2007 02:20 PM
<?xml version="1.0" encoding="UTF-8" ?>
- <web_page xmlns:alf="http://www.alfresco.org" xmlns:chiba="http://chiba.sourceforge.net/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<title>Test Page 55</title>
<location>tests</location>
- <contentBody lang="en">
<title>English title</title>
<language>English</language>
<body>English body test page<br /></body>
</contentBody>
- <contentBody lang="fr">
<title>Titre Francais</title>
<language>French</language>
<body>Corps Francais page de test<br /></body>
</contentBody>
<expiration_date>2007-12-25</expiration_date>
</web_page>
org.alfresco.web.forms.FormProcessor$ProcessingException: org.alfresco.web.forms.xforms.FormBuilderException: error parsing schema: at line 18 column 52: s4s-elt-must-match.1: The content of 'contentBody' must match (annotation?, (simpleType | complexType)?, (unique | key | keyref)*)). A problem was found starting at: attribute.
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:alf="http://www.alfresco.org"
elementFormDefault="qualified">
<xs:simpleType name="language">
<xs:restriction base="xs:normalizedString">
<xs:enumeration value="French"/>
<xs:enumeration value="English"/>
</xs:restriction>
</xs:simpleType>
<!– defines the form for creating a press release –>
<xs:element name="web_page">
<xs:complexType>
<xs:sequence>
<xs:element name="title" type="xs:normalizedString"/>
<xs:element name="location" type="xs:normalizedString"/>
<xs:element name="contentBody" minOccurs="1" maxOccurs="unbounded">
<xs:attribute name="lang" type="language">
<xs:annotation>
<xs:appinfo>
<alf:label>French or English</alf:label>
<alf:appearance>full</alf:appearance>
</xs:appinfo>
</xs:annotation>
</xs:attribute>
<xs:complexType>
<xs:sequence>
<xs:element name="title" type="xs:normalizedString"/>
<xs:element name="body" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="expiration_date" type="xs:date"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
12-18-2007 08:01 AM
12-19-2007 09:09 AM
12-19-2007 12:16 PM
12-19-2007 12:51 PM
12-20-2007 04:08 AM
12-20-2007 08:18 AM
This is a standard feature for supported document types. You can select "View Details" action (on <your>.xsd file). In the document "Properties" section you can simply click on the "Allow Inline Editing" link, and then select the "Edit" action.
Regards,
Jan
org.alfresco.web.forms.FormProcessor$ProcessingException: org.alfresco.web.forms.xforms.FormBuilderException: org.xml.sax.SAXParseException: Reference is not allowed in prolog.12-21-2007 10:31 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.