<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
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 http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.2900.2604" name="GENERATOR">
<div align="left" dir="ltr"><span class="797330616-31032005"><font
color="#0000ff" face="Arial" 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
style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;"
dir="ltr">
<div class="OutlookMessageHeader" align="left" dir="ltr" lang="de">
<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 size="4" width="90%">
_______________________________________________
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>
</body>
</html>