<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2604" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=638061703-01042005><FONT face=Arial
color=#0000ff size=2>To achive what you want, you can create a nested
content definition schema for the "rule" part, and then have a sequence of this
(nested) elements in the default locale. This works since for nested schemas,
the "language" node is skipped because it's already present in the "top level"
schema.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=638061703-01042005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=638061703-01042005><FONT face=Arial
color=#0000ff size=2>You probably need to check the "nested XML content"
examples that come with the "templateone" demo. You will end up with 2 XML
schemas, one "top-level" just being a list of "rule" elements, the other
"nested" containing you rule definition. Again, best check out the nested demos
in "templateone" to make sense of all this. I'm sure you can achive what you
want directly without any core code modification.</FONT></SPAN></DIV><!-- Converted from text/plain format -->
<P><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><BR></FONT></P>
<DIV> </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>Daniel
Rhoden<BR><B>Sent:</B> Thursday, March 31, 2005 6:43 PM<BR><B>To:</B> The
OpenCms mailing list<BR><B>Subject:</B> Re: [opencms-dev] (6b1) Xml Content,
The point of "unbounded" elements<BR></FONT><BR></DIV>
<DIV></DIV>I don't believe I know enough about the significance of a default
locale and its impact on the schema driven interface to know if this is a
viable option. Below is the schema I defined for the 404 redirection
tool. Its root node is called Rules. The idea is to have lots of
'Rule' child nodes, that each organize their unique rule. If you believe
the option you propose will allow for this, I am happy to figure it out the
rest of the way. However, if after reviewing my schema you believe that
what I hope to accomplish is not possible with the option you propose, please
let me know. I am happy contribute any changes that might make this
concept valuable for others to use.<BR><BR>Thank you,<BR><BR>--Daniel
Rhoden<BR><BR>--------------<BR><xsd:schema xmlns:xsd=<A
class=moz-txt-link-rfc2396E
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="Rules"
type="OpenCmsRules"/><BR> <BR>
<xsd:complexType name="OpenCmsRules"><BR>
<xsd:sequence><BR>
<xsd:element name="Rule"
type="OpenCmsRule" minOccurs="0"
maxOccurs="unbounded"/><BR>
</xsd:sequence><BR>
</xsd:complexType><BR><BR> <xsd:complexType
name="OpenCmsRule"><BR>
<xsd:sequence><BR>
<xsd:element name="RequestedResource"
type="OpenCmsVfsFile" minOccurs="1" maxOccurs="1" /><BR>
<xsd:element name="TargetResource"
type="OpenCmsVfsFile" minOccurs="1" maxOccurs="1" /><BR>
<xsd:element name="Action"
type="OpenCmsString" minOccurs="1" maxOccurs="1" /><BR>
<xsd:element name="BeginAction"
type="OpenCmsDateTime" minOccurs="1" maxOccurs="1" /><BR>
<xsd:element name="EndAction"
type="OpenCmsDateTime" minOccurs="1" maxOccurs="1" /><BR>
</xsd:sequence><BR>
<xsd:attribute name="language" type="OpenCmsLocale"
use="required"/><BR>
</xsd:complexType><BR><BR>
<xsd:annotation><BR>
<xsd:appinfo><BR>
<defaults><BR>
<default element="Action"
value="301|302|FORWARD"/><BR>
<default element="BeginAction"
value="${currenttime}" /><BR>
</defaults><BR>
<layouts><BR>
<layout element="Action"
widget="SelectorWidget" /><BR>
</layouts> <BR>
</xsd:appinfo><BR>
</xsd:annotation>
<BR></xsd:schema><BR>--------------<BR><BR><BR>Alexander Kandzior wrote:
<BLOCKQUOTE cite=mid200503311611.j2VGBDOJ027287@server1.iiwsi.net
type="cite"><META content="MSHTML 6.00.2900.2604" name=GENERATOR>
<DIV dir=ltr align=left><SPAN class=797330616-31032005><FONT face=Arial
color=#0000ff size=2>Why don't you use some default locale (e.g. "en") and
store your otherwise locale independent content below that node? We do that
for the configuration of the "templateone" for example.</FONT></SPAN></DIV><!-- Converted from text/plain format -->
<P><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><BR></FONT></P>
<DIV> </DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,255) 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> <A class=moz-txt-link-abbreviated
href="mailto:opencms-dev-bounces@opencms.org">opencms-dev-bounces@opencms.org</A>
[<A class=moz-txt-link-freetext
href="mailto:opencms-dev-bounces@opencms.org">mailto:opencms-dev-bounces@opencms.org</A>]
<B>On Behalf Of </B>Daniel Rhoden<BR><B>Sent:</B> Thursday, March 31, 2005
5:59 PM<BR><B>To:</B> The OpenCms mailing list<BR><B>Subject:</B> Re:
[opencms-dev] (6b1) Xml Content, The point of "unbounded"
elements<BR></FONT><BR></DIV>If I understand you correctly, the maxOccurs
is set to 'unbounded' because you can have as many of those nodes as
languages. That makes sense and definitely has enormous power.
However, I think that XML/Structured content would be so much more
powerful if it were not assumed to have a single application (local
specific content). Let me explain.<BR><BR>The idea of defining a
schema driven interface would be very powerful for the management of
configuration files. Because configuration files would only be used
internally, it doesn't matter what local it belongs to. Here is an
example application. I am writing a custom 404 error page that,
depending on the settings/entries in the configuration file, will redirect
(301 or 302) or forward the user to another resource based upon the
requested resource. This would be used to preserve page rank during
a site's restructuring (and other purposes). I think there are so
many other ways that a schema driven interface could be used if it were
not limited to a single application of local-specific data.<BR><BR>With
this example in mind, do you see a way that this feature can be added to
the interface without hurting the requirements of local-specific data
management?<BR><BR>Thank you very much for your time and
thought,<BR><BR>--Daniel Rhoden<BR><BR>Alexander Kandzior wrote:
<BLOCKQUOTE cite=mid200503310634.j2V6Y5CP025871@server1.iiwsi.net
type="cite"><PRE wrap="">If you create a sibling of an XML{page|content} file in a different locale
folder, the editor will automatically give you the option to edit this
folders language version. You need to attach the "locale" property with the
different locale to the folder of the sibling.
Best Regards,
Alex.
Alexander Kandzior
Alkacon Software - The OpenCms Experts
<A class=moz-txt-link-freetext href="http://www.alkacon.com">http://www.alkacon.com</A>
</PRE>
<BLOCKQUOTE type="cite"><PRE wrap="">-----Original Message-----
From: <A class=moz-txt-link-abbreviated href="mailto:opencms-dev-bounces@opencms.org">opencms-dev-bounces@opencms.org</A>
[<A class=moz-txt-link-freetext href="mailto:opencms-dev-bounces@opencms.org">mailto:opencms-dev-bounces@opencms.org</A>] On Behalf Of Daniel Rhoden
Sent: Thursday, March 31, 2005 12:22 AM
To: The OpenCms mailing list
Subject: [opencms-dev] (6b1) Xml Content, The point of
"unbounded" elements
Why is it that all the examples of xml content schema have
the maxOccurs attribute of the first child element set to
"unbounded" when there is no way in the form editor to
actually create and edit another sibling?
Will the form editor eventually have the ability to easily
manage multiple child elements?
/xmlcontent/article.xsd
-----------
...
<xsd:complexType name="OpenCmsArticles">
<xsd:sequence>
<xsd:element name="Article" type="OpenCmsArticle"
minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
...
-----------
Thanks,
--Daniel Rhoden
_______________________________________________
This mail is send to you from the opencms-dev mailing list To
change your list options, or to unsubscribe from the list,
please visit <A class=moz-txt-link-freetext href="http://mail.opencms.org/mailman/listinfo/opencms-dev">http://mail.opencms.org/mailman/listinfo/opencms-dev</A>
</PRE></BLOCKQUOTE><PRE wrap=""><!---->
_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
<A class=moz-txt-link-freetext href="http://mail.opencms.org/mailman/listinfo/opencms-dev">http://mail.opencms.org/mailman/listinfo/opencms-dev</A>
</PRE></BLOCKQUOTE></BLOCKQUOTE><PRE wrap=""><HR width="90%" SIZE=4>
_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
<A class=moz-txt-link-freetext href="http://mail.opencms.org/mailman/listinfo/opencms-dev">http://mail.opencms.org/mailman/listinfo/opencms-dev</A></PRE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>