<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o =
"urn:schemas-microsoft-com:office:office"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2900.2604" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Tahoma><FONT size=2><SPAN class=474514107-14022005><FONT
face=Arial color=#0000ff>Hello Alex,</FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT face=Arial color=#0000ff size=2><SPAN
class=474514107-14022005></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT face=Arial color=#0000ff size=2><SPAN
class=474514107-14022005></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT face=Arial color=#0000ff size=2><SPAN
class=474514107-14022005>Hereby my followings
steps:</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT face=Arial color=#0000ff size=2><SPAN
class=474514107-14022005><STRONG>1. I create a new xml schema located in
the /sites/default/fr/news/</STRONG></SPAN></FONT></FONT></DIV><FONT
face=Tahoma><FONT face=Arial color=#0000ff size=2><SPAN
class=474514107-14022005>
<DIV><BR><BR><xsd:schema xmlns:xsd="<A
href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</A>"
elementFormDefault="qualified"><BR> <BR> <xsd:include
schemaLocation="opencms://opencms-xmlcontent.xsd"/> <BR> <BR> <xsd:element
name="headnews"
type="OpenCmsHeadnews"/><BR> <BR> <xsd:complexType
name="OpenCmsHeadnews"><BR> <xsd:sequence><BR> <xsd:element
name="headnew" type="OpenCmsHeadnew" minOccurs="0"
maxOccurs="unbounded"/><BR> </xsd:sequence><BR> </xsd:complexType></DIV>
<DIV> </DIV>
<DIV> <xsd:complexType
name="OpenCmsHeadnew"><BR> <xsd:sequence><BR> <xsd:element
name="Title" type="OpenCmsString"
/><BR> <BR> <BR> <BR> </xsd:sequence><BR> <xsd:attribute
name="language" type="OpenCmsLocale"
use="required"/><BR> </xsd:complexType></DIV>
<DIV> </DIV>
<DIV> <xsd:annotation><BR> <xsd:appinfo><BR> <BR> <mappings><BR> <mapping
element="Title" mapto="property:Title"
/><BR> <BR> </mappings><BR> </DIV>
<DIV> </DIV>
<DIV> <BR> </xsd:appinfo></DIV>
<DIV> </DIV>
<DIV> </xsd:annotation> <BR></xsd:schema></DIV>
<DIV></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT face=Arial color=#0000ff size=2><SPAN
class=474514107-14022005></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT face=Arial color=#0000ff><SPAN
class=474514107-14022005><FONT size=2><STRONG>2. When I try to create a new
headnews</STRONG> display on the dropdown list with the new number ID (in my
case id =77) On the second, screen (for the name of the resource)
I have the following error message: <FONT color=#ff0000>"<!--StartFragment --></FONT></FONT><FONT face="Times New Roman"
color=#ff0000 size=2> Maybe you don't have the needed permissions or this
resource already exists.<BR>Please check the entered data or contact your system
administrator. "</FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN class=474514107-14022005> D<FONT
face=Arial><FONT color=#0000ff>etails of the error screen: <!--StartFragment --><FONT size=3> </FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial color=#ff0000>org.opencms.xml.CmsXmlException:
Unmarshalling xml document failed! [Code 400 - Error in xml processing]<BR><!--StartFragment --> </FONT></DIV>
<DIV><FONT face=Arial color=#ff0000>Root cause was: org.dom4j.DocumentException:
null Nested exception: null</FONT></DIV>
<DIV></SPAN><SPAN class=474514107-14022005><FONT face=Arial
color=#ff0000> ....</FONT></SPAN></DIV>
<DIV><FONT face=Arial><FONT color=#ff0000><SPAN
class=474514107-14022005> </SPAN><BR></FONT></FONT></DIV><!--StartFragment -->
<DIV><FONT face=Arial><FONT color=#ff0000>>Root cause:
>org.dom4j.DocumentException: null Nested exception: null<SPAN
class=474514107-14022005> </SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#ff0000><SPAN
class=474514107-14022005></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff><SPAN class=474514107-14022005><STRONG>3.
When I tried to create a new file by choosing the "generic XML
Content".</STRONG> </SPAN></FONT></DIV>
<DIV><SPAN class=474514107-14022005><FONT face=Arial color=#0000ff>this
content:</FONT></SPAN></DIV>
<DIV><SPAN class=474514107-14022005><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=474514107-14022005><FONT face=Arial color=#0000ff><?xml
version="1.0" encoding="UTF-8"?></FONT></SPAN></DIV>
<DIV><SPAN class=474514107-14022005><FONT face=Arial color=#0000ff><Headnews
xmlns:xsi="</FONT><A href="http://www.w3.org/2001/XMLSchema-instance"><FONT
face=Arial>http://www.w3.org/2001/XMLSchema-instance</FONT></A><FONT face=Arial
color=#0000ff>"
xsi:noNamespaceSchemaLocation="opencms://sites/default/fr/news/headnews.xsd"><BR>
<Headnew language="fr"><BR>
<Title><![CDATA[Enter the title of the article
here...]]></Title><BR> <BR>
</Headnew><BR></Headnews></FONT></SPAN></DIV>
<DIV><SPAN class=474514107-14022005><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=474514107-14022005><FONT face=Arial color=#0000ff>I have this
error :<!--StartFragment --><FONT color=#000000> </FONT></DIV>
<DIV><FONT color=#ff0000><errors> <error column="142"
line="4">cvc-elt.1: Cannot find the declaration of element
'Headnews'.</error></errors></FONT></DIV>
<DIV></FONT></SPAN> </DIV>
<DIV><SPAN class=474514107-14022005><FONT face=Arial color=#0000ff> In the
opencms-vfs, I declare</FONT></SPAN></DIV>
<DIV><SPAN class=474514107-14022005>
<P><type class="org.opencms.file.types.CmsResourceTypeXmlContent"></P>
<P><param name="resource.type.id">77</param></P>
<P><param name="resource.type.name">headnews</param></P>
<P><param
name="schema">/sites/default/fr/news/headnews.xsd</param></P>
<P></type><SPAN class=474514107-14022005><FONT face=Arial
color=#0000ff> </FONT></SPAN></P>
<P><SPAN class=474514107-14022005><FONT face=Arial color=#0000ff>In the
opencms-workplace.xml, those entries:</FONT></SPAN></P><SPAN
class=474514107-14022005><FONT size=2>
<P><explorertypes></P>
<P><explorertype name="headnews" key="fileicon.headnews" icon="headnews.gif"
reference="xmlcontent"></P>
<P><newresource page="structurecontent"
uri="newresource_xmlcontent.jsp?newresourcetype=headnews" order="25"/></P>
<P></P>
<P></explorertype></FONT></SPAN></SPAN></P></DIV>
<DIV><SPAN class=474514107-14022005><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=474514107-14022005><FONT face=Arial color=#0000ff>What's wrong?
</FONT></SPAN></DIV>
<DIV><SPAN class=474514107-14022005><FONT face=Arial color=#0000ff>Extended a
existing schema works. I try with the article.xsd present in the demo by
adding some properties but create a new one from scratch is not the
same.</FONT></SPAN></DIV>
<DIV><SPAN class=474514107-14022005><FONT face=Arial color=#0000ff>Thank
you</FONT></SPAN></DIV>
<DIV><SPAN class=474514107-14022005><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=474514107-14022005><FONT face=Arial
color=#0000ff>Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=474514107-14022005><FONT face=Arial
color=#0000ff>MARC</FONT></SPAN></DIV></FONT></FONT>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV dir=ltr align=left><SPAN class=533235310-13022005><FONT size=2>Can you
post more details regarding this issue?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><FONT size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT size=2>Best Regards,<BR>Alex.<BR><BR>Alexander
Kandzior<BR>Alkacon Software - The OpenCms Experts<BR><A
href="http://www.alkacon.com/">http://www.alkacon.com</A><BR></FONT></DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>On Behalf Of </B>Fievet
Marc<BR><B>Sent:</B> Friday, February 11, 2005 6:01 PM<BR><B>To:</B> 'The
OpenCms mailing list'<BR><B>Subject:</B> [opencms-dev] Xml content
definition problem with resource.type.id<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=974234316-11022005><FONT face=Arial
size=2>Hello,</FONT></SPAN></DIV>
<DIV><SPAN class=974234316-11022005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=974234316-11022005><FONT face=Arial size=2>I try to create
my own schema according the doc transmitted by Alex</FONT></SPAN></DIV>
<DIV><SPAN class=974234316-11022005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=974234316-11022005><FONT face=Arial size=2>In the examples,
you suggest to choose id 13</FONT></SPAN></DIV>
<DIV><SPAN class=974234316-11022005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=974234316-11022005><FONT face=Arial size=2>ID 13 is
allocated to the Widget demo and when I declare this id in the
vfs.xml, it's the w<FONT size=2>idgetdemo.xsd who parsed my
content. Ok, that's correct according the rules.</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=974234316-11022005><FONT face=Arial size=2>When I declare
for my schema id 33 or 77, I have this return code
"<!--StartFragment --><FONT face="Times New Roman" size=3> </FONT>
<FONT face=Arial color=#ff0000>OpenCms content definition XML schema
structure: Invalid list name [Code 400 - Error in xml
processing]"...</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=974234316-11022005><FONT face=Arial color=#ff0000
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=974234316-11022005><FONT face=Arial color=#ff0000
size=2>example:</FONT></SPAN></DIV>
<DIV><SPAN class=974234316-11022005><FONT face=Arial size=2><type
class="org.opencms.file.types.CmsResourceTypeXmlContent"><BR>
<param
name="resource.type.id">77</param><BR>
<param
name="resource.type.name">headnews</param><BR>
<param
name="schema">/sites/default/fr/news/headnews.xsd</param><BR>
</type></FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV class=Section1>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=974234316-11022005>Is there another file where the id chosen must be
declared?</SPAN></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=974234316-11022005>Some restricted id we can't use? What id I can use
to declare my schema?</SPAN></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=974234316-11022005></SPAN></SPAN> </P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=974234316-11022005>Thanks</SPAN></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> <SPAN
class=974234316-11022005>Regards,</SPAN></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p><SPAN
class=974234316-11022005>MARC</SPAN></o:p></SPAN></P></DIV>
<DIV> </DIV><!--[object_id=#winterthur.be#]-->
<P align=left><FONT face=Arial
size=2>______________________________________________________________________________<BR></FONT><FONT
size=2><FONT face=Arial><STRONG>Disclaimer - Winterthur Europe Assurances -
Avenue des Arts/Kunstlaan 56 - 1000 Brussels (BEL)</STRONG><BR>This message
may contain confidential, proprietary or legally privileged information and
is intended only for the use of the addressee named above. No
confidentiality or privilege is waived or lost by any mistransmission. If
you are not the intended recipient of this message you are hereby notified
that you must not use, disseminate, copy it in any form or take any action
in reliance on it. If you have received this message in error please delete
it and any copies of it and notify Winterthur immediately. This e-mail
message and any attached files have been scanned for the presence of
computer viruses. However, you are advised that you open any attachments at
your own risk. The integrity and security of this message cannot be
guaranteed on the Internet.<BR></FONT></FONT><FONT face=Tahoma><FONT
face=arial></P></BLOCKQUOTE></BLOCKQUOTE></FONT></FONT></BODY></HTML>