You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by David E Jones <jo...@undersunconsulting.com> on 2007/01/01 22:06:37 UTC

Re: svn commit: r491626 - in /ofbiz/site: documents.html dtds/

Because SVN runs over http there is an easier way to build these  
URLs, for example:

http://svn.apache.org/repos/asf/ofbiz/trunk/framework/base/dtd/ofbiz- 
containers.xsd

Still, I'm not sure we can totally avoid keeping these files on the  
web site. We need to point all of the XML files to some location  
available on the internet. We could perhaps change all of the schema  
locations in the XML files to point to the URL as above, but that  
would put more of a load on the svn server. I guess that should be  
manageable, so maybe this is way to go for the future to make things  
easier to manage...

-David


On Jan 1, 2007, at 1:42 PM, jacopoc@apache.org wrote:

> Author: jacopoc
> Date: Mon Jan  1 12:42:50 2007
> New Revision: 491626
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=491626
> Log:
> Now  the links to the xsd files point to the svn server and we do  
> not need to keep a copy of the xsd files in the web site.
> Based on tips from Jacques Le Roux and Scott Gray.
>
> Removed:
>     ofbiz/site/dtds/
> Modified:
>     ofbiz/site/documents.html
>
> Modified: ofbiz/site/documents.html
> URL: http://svn.apache.org/viewvc/ofbiz/site/documents.html? 
> view=diff&rev=491626&r1=491625&r2=491626
> ====================================================================== 
> ========
> --- ofbiz/site/documents.html (original)
> +++ ofbiz/site/documents.html Mon Jan  1 12:42:50 2007
> @@ -229,47 +229,48 @@
>  -->
>    <li class="contenttext"><a name="XMLDefs">General XML  
> Definitions</a>
>    <ul>
> -    <li class="contenttext"><a href="dtds/ofbiz- 
> containers.xsd">OFBiz Containers XSD (ofbiz-containers.xml)</a></li>
> -    <li class="contenttext"><a href="dtds/component- 
> loader.xsd">OFBiz Component Load XSD (component-load.xml)</a></li>
> -    <li class="contenttext"><a href="dtds/ofbiz-component.xsd  
> ">OFBiz Component XSD (ofbiz-component.xml)</a></li>
> -    <li class="contenttext"><a href="dtds/jndi-config.xsd">JNDI  
> Server Config XSD (jndiservers.xml)</a></li>
> -    <li class="contenttext"><a href="dtds/security- 
> config.xsd">Security Config XSD (security.xml)</a></li>
> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/ 
> ofbiz/trunk/framework/base/dtd/ofbiz-containers.xsd? 
> revision=HEAD">OFBiz Containers XSD (ofbiz-containers.xml)</a></li>
> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/ 
> ofbiz/trunk/framework/base/dtd/component-loader.xsd? 
> revision=HEAD">OFBiz Component Load XSD (component-load.xml)</a></li>
> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/ 
> ofbiz/trunk/framework/base/dtd/ofbiz-component.xsd? 
> revision=HEAD">OFBiz Component XSD (ofbiz-component.xml)</a></li>
> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/ 
> ofbiz/trunk/framework/base/dtd/jndi-config.xsd?revision=HEAD">JNDI  
> Server Config XSD (jndiservers.xml)</a></li>
> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/ 
> ofbiz/trunk/framework/security/dtd/security-config.xsd? 
> revision=HEAD">Security Config XSD (security.xml)</a></li>
>    </ul>
>    </li>
>    <li class="contenttext">Entity Engine XML Definitions
>    <ul>
> -    <li class="contenttext"><a href="dtds/entity- 
> config.xsd">Entity Config XSD (entityengine.xml)</a></li>
> -    <li class="contenttext"><a href="dtds/entitygroup.xsd">Entity  
> Group XSD (entitygroup.xml)</a></li>
> -    <li class="contenttext"><a href="dtds/entitymodel.xsd">Entity  
> Model XSD (entitymodel_*.xml)</a></li>
> -    <li class="contenttext"><a href="dtds/entity-eca.xsd">Entity  
> ECAs XSD (eecas_*.xml)</a></li>
> -    <li class="contenttext"><a href="dtds/ 
> fieldtypemodel.xsd">Field Type Model XSD (fieldtype*.xml)</a></li>
> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/ 
> ofbiz/trunk/framework/entity/dtd/entity-config.xsd? 
> revision=HEAD">Entity Config XSD (entityengine.xml)</a></li>
> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/ 
> ofbiz/trunk/framework/entity/dtd/entitygroup.xsd? 
> revision=HEAD">Entity Group XSD (entitygroup.xml)</a></li>
> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/ 
> ofbiz/trunk/framework/entity/dtd/entitymodel.xsd? 
> revision=HEAD">Entity Model XSD (entitymodel_*.xml)</a></li>
> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/ 
> ofbiz/trunk/framework/entity/dtd/entity-eca.xsd? 
> revision=HEAD">Entity ECAs XSD (eecas_*.xml)</a></li>
> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/ 
> ofbiz/trunk/framework/entity/dtd/fieldtypemodel.xsd? 
> revision=HEAD">Field Type Model XSD (fieldtype*.xml)</a></li>
>    </ul>
>    </li>
>    <li class="contenttext">Service Engine XML Definitions
>    <ul>
> -    <li class="contenttext"><a href="dtds/service- 
> config.xsd">Service Config XSD (serviceengine.xml)</a></li>
> -    <li class="contenttext"><a href="dtds/services.xsd">Service  
> Definition XSD (services_*.xml)</a></li>
> -    <li class="contenttext"><a href="dtds/service-eca.xsd">Service  
> ECAs XSD (secas_*.xml)</a></li>
> -    <li class="contenttext"><a href="dtds/service- 
> group.xsd">Service Groups XSD (groups_*.xml)</a></li>
> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/ 
> ofbiz/trunk/framework/service/dtd/service-config.xsd? 
> revision=HEAD">Service Config XSD (serviceengine.xml)</a></li>
> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/ 
> ofbiz/trunk/framework/service/dtd/services.xsd? 
> revision=HEAD">Service Definition XSD (services_*.xml)</a></li>
> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/ 
> ofbiz/trunk/framework/service/dtd/service-eca.xsd? 
> revision=HEAD">Service ECAs XSD (secas_*.xml)</a></li>
> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/ 
> ofbiz/trunk/framework/service/dtd/service-group.xsd? 
> revision=HEAD">Service Groups XSD (groups_*.xml)</a></li>
> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/ 
> ofbiz/trunk/framework/service/dtd/service-mca.xsd? 
> revision=HEAD">Service MCAs XSD</a></li>
>    </ul>
>    </li>
>    <li class="contenttext">Mini-Language XML Definitions
>    <ul>
> -    <li class="contenttext"><a href="dtds/simple- 
> methods.xsd">Simple Methods XSD</a></li>
> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/ 
> ofbiz/trunk/framework/minilang/dtd/simple-methods.xsd? 
> revision=HEAD">Simple Methods XSD</a></li>
>    </ul>
>    </li>
>    <li class="contenttext">Webapp Framework XML Definitions
>    <ul>
> -    <li class="contenttext"><a href="dtds/site-conf.xsd">Site  
> Config XSD (controller.xml)</a></li>
> -    <li class="contenttext"><a href="dtds/regions.xsd">Regions  
> Definition XSD (regions.xml)</a></li>
> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/ 
> ofbiz/trunk/framework/webapp/dtd/site-conf.xsd?revision=HEAD">Site  
> Config XSD (controller.xml)</a></li>
> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/ 
> ofbiz/trunk/framework/webapp/dtd/regions.xsd?revision=HEAD">Regions  
> Definition XSD (regions.xml)</a></li>
>    </ul>
>    </li>
>    <li class="contenttext">Widget XML Definitions
>    <ul>
> -    <li class="contenttext"><a href="dtds/widget-form.xsd">Form  
> Widget XSD</a></li>
> -    <li class="contenttext"><a href="dtds/widget-menu.xsd">Menu  
> Widget XSD</a></li>
> -    <li class="contenttext"><a href="dtds/widget- 
> screen.xsd">Screen Widget XSD</a></li>
> -    <li class="contenttext"><a href="dtds/widget-tree.xsd">Tree  
> Widget XSD</a></li>
> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/ 
> ofbiz/trunk/framework/widget/dtd/widget-form.xsd? 
> revision=HEAD">Form Widget XSD</a></li>
> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/ 
> ofbiz/trunk/framework/widget/dtd/widget-menu.xsd? 
> revision=HEAD">Menu Widget XSD</a></li>
> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/ 
> ofbiz/trunk/framework/widget/dtd/widget-screen.xsd? 
> revision=HEAD">Screen Widget XSD</a></li>
> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/ 
> ofbiz/trunk/framework/widget/dtd/widget-tree.xsd? 
> revision=HEAD">Tree Widget XSD</a></li>
>    </ul>
>    </li>
>  </ul>
>
>


Re: svn commit: r491626 - in /ofbiz/site: documents.html dtds/

Posted by Jacques Le Roux <ja...@les7arts.com>.
Yes finally why not ? Just have to change default for XSD indeed !

Jacques

----- Original Message ----- 
From: "David E Jones" <jo...@undersunconsulting.com>
To: <of...@incubator.apache.org>
Sent: Monday, January 01, 2007 11:09 PM
Subject: Re: svn commit: r491626 - in /ofbiz/site: documents.html dtds/


> 
> Yes, I saw that discussion.
> 
> Is it really so bad that files are downloaded by default in the  
> browser? Chances are you can change this (you have various options in  
> Firefox at least), and I admin it is a bit annoying, but most  
> browsers do that by default now for all non-HTML files...
> 
> In fact, given that is the default in browsers now for non-HTML files  
> isn't that what users expect and what we should go with?
> 
> -David
> 
> 
> On Jan 1, 2007, at 2:50 PM, Jacques Le Roux wrote:
> 
> > David,
> >
> > We tried to find another solution because browsers like Firefox or  
> > Opera by default automatically load the file hence do not let you
> > directly browse at it but launch an appli on your client (for  
> > instance Visual Studio .NET on my machine by default, ooops !) This
> > was explained in detail in http://issues.apache.org/jira/browse/ 
> > OFBIZ-571#action_12461494
> >
> > I'm not sure to understand your last sentence, did you say that we  
> > should go this way (having only 1 file in svn and use it
> > everywhere from there) or not ?  Else we will have to maintain 2  
> > files in parallel for each XSD of course.
> >
> > BTW I understand that having all developpers running XML editors  
> > referring to XSDs for completion and such might be to heavy for an
> > SVN server !
> >
> > Jacques
> >
> > ----- Original Message -----
> > From: "David E Jones" <jo...@undersunconsulting.com>
> > To: <of...@incubator.apache.org>
> > Sent: Monday, January 01, 2007 10:06 PM
> > Subject: Re: svn commit: r491626 - in /ofbiz/site: documents.html  
> > dtds/
> >
> >
> >>
> >> Because SVN runs over http there is an easier way to build these
> >> URLs, for example:
> >>
> >> http://svn.apache.org/repos/asf/ofbiz/trunk/framework/base/dtd/ofbiz-
> >> containers.xsd
> >>
> >> Still, I'm not sure we can totally avoid keeping these files on the
> >> web site. We need to point all of the XML files to some location
> >> available on the internet. We could perhaps change all of the schema
> >> locations in the XML files to point to the URL as above, but that
> >> would put more of a load on the svn server. I guess that should be
> >> manageable, so maybe this is way to go for the future to make things
> >> easier to manage...
> >>
> >> -David
> >>
> >>
> >> On Jan 1, 2007, at 1:42 PM, jacopoc@apache.org wrote:
> >>
> >>> Author: jacopoc
> >>> Date: Mon Jan  1 12:42:50 2007
> >>> New Revision: 491626
> >>>
> >>> URL: http://svn.apache.org/viewvc?view=rev&rev=491626
> >>> Log:
> >>> Now  the links to the xsd files point to the svn server and we do
> >>> not need to keep a copy of the xsd files in the web site.
> >>> Based on tips from Jacques Le Roux and Scott Gray.
> >>>
> >>> Removed:
> >>>     ofbiz/site/dtds/
> >>> Modified:
> >>>     ofbiz/site/documents.html
> >>>
> >>> Modified: ofbiz/site/documents.html
> >>> URL: http://svn.apache.org/viewvc/ofbiz/site/documents.html?
> >>> view=diff&rev=491626&r1=491625&r2=491626
> >>> ==================================================================== 
> >>> ==
> >>> ========
> >>> --- ofbiz/site/documents.html (original)
> >>> +++ ofbiz/site/documents.html Mon Jan  1 12:42:50 2007
> >>> @@ -229,47 +229,48 @@
> >>>  -->
> >>>    <li class="contenttext"><a name="XMLDefs">General XML
> >>> Definitions</a>
> >>>    <ul>
> >>> -    <li class="contenttext"><a href="dtds/ofbiz-
> >>> containers.xsd">OFBiz Containers XSD (ofbiz-containers.xml)</a></li>
> >>> -    <li class="contenttext"><a href="dtds/component-
> >>> loader.xsd">OFBiz Component Load XSD (component-load.xml)</a></li>
> >>> -    <li class="contenttext"><a href="dtds/ofbiz-component.xsd
> >>> ">OFBiz Component XSD (ofbiz-component.xml)</a></li>
> >>> -    <li class="contenttext"><a href="dtds/jndi-config.xsd">JNDI
> >>> Server Config XSD (jndiservers.xml)</a></li>
> >>> -    <li class="contenttext"><a href="dtds/security-
> >>> config.xsd">Security Config XSD (security.xml)</a></li>
> >>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> >>> ofbiz/trunk/framework/base/dtd/ofbiz-containers.xsd?
> >>> revision=HEAD">OFBiz Containers XSD (ofbiz-containers.xml)</a></li>
> >>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> >>> ofbiz/trunk/framework/base/dtd/component-loader.xsd?
> >>> revision=HEAD">OFBiz Component Load XSD (component-load.xml)</a></ 
> >>> li>
> >>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> >>> ofbiz/trunk/framework/base/dtd/ofbiz-component.xsd?
> >>> revision=HEAD">OFBiz Component XSD (ofbiz-component.xml)</a></li>
> >>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> >>> ofbiz/trunk/framework/base/dtd/jndi-config.xsd?revision=HEAD">JNDI
> >>> Server Config XSD (jndiservers.xml)</a></li>
> >>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> >>> ofbiz/trunk/framework/security/dtd/security-config.xsd?
> >>> revision=HEAD">Security Config XSD (security.xml)</a></li>
> >>>    </ul>
> >>>    </li>
> >>>    <li class="contenttext">Entity Engine XML Definitions
> >>>    <ul>
> >>> -    <li class="contenttext"><a href="dtds/entity-
> >>> config.xsd">Entity Config XSD (entityengine.xml)</a></li>
> >>> -    <li class="contenttext"><a href="dtds/entitygroup.xsd">Entity
> >>> Group XSD (entitygroup.xml)</a></li>
> >>> -    <li class="contenttext"><a href="dtds/entitymodel.xsd">Entity
> >>> Model XSD (entitymodel_*.xml)</a></li>
> >>> -    <li class="contenttext"><a href="dtds/entity-eca.xsd">Entity
> >>> ECAs XSD (eecas_*.xml)</a></li>
> >>> -    <li class="contenttext"><a href="dtds/
> >>> fieldtypemodel.xsd">Field Type Model XSD (fieldtype*.xml)</a></li>
> >>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> >>> ofbiz/trunk/framework/entity/dtd/entity-config.xsd?
> >>> revision=HEAD">Entity Config XSD (entityengine.xml)</a></li>
> >>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> >>> ofbiz/trunk/framework/entity/dtd/entitygroup.xsd?
> >>> revision=HEAD">Entity Group XSD (entitygroup.xml)</a></li>
> >>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> >>> ofbiz/trunk/framework/entity/dtd/entitymodel.xsd?
> >>> revision=HEAD">Entity Model XSD (entitymodel_*.xml)</a></li>
> >>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> >>> ofbiz/trunk/framework/entity/dtd/entity-eca.xsd?
> >>> revision=HEAD">Entity ECAs XSD (eecas_*.xml)</a></li>
> >>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> >>> ofbiz/trunk/framework/entity/dtd/fieldtypemodel.xsd?
> >>> revision=HEAD">Field Type Model XSD (fieldtype*.xml)</a></li>
> >>>    </ul>
> >>>    </li>
> >>>    <li class="contenttext">Service Engine XML Definitions
> >>>    <ul>
> >>> -    <li class="contenttext"><a href="dtds/service-
> >>> config.xsd">Service Config XSD (serviceengine.xml)</a></li>
> >>> -    <li class="contenttext"><a href="dtds/services.xsd">Service
> >>> Definition XSD (services_*.xml)</a></li>
> >>> -    <li class="contenttext"><a href="dtds/service-eca.xsd">Service
> >>> ECAs XSD (secas_*.xml)</a></li>
> >>> -    <li class="contenttext"><a href="dtds/service-
> >>> group.xsd">Service Groups XSD (groups_*.xml)</a></li>
> >>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> >>> ofbiz/trunk/framework/service/dtd/service-config.xsd?
> >>> revision=HEAD">Service Config XSD (serviceengine.xml)</a></li>
> >>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> >>> ofbiz/trunk/framework/service/dtd/services.xsd?
> >>> revision=HEAD">Service Definition XSD (services_*.xml)</a></li>
> >>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> >>> ofbiz/trunk/framework/service/dtd/service-eca.xsd?
> >>> revision=HEAD">Service ECAs XSD (secas_*.xml)</a></li>
> >>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> >>> ofbiz/trunk/framework/service/dtd/service-group.xsd?
> >>> revision=HEAD">Service Groups XSD (groups_*.xml)</a></li>
> >>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> >>> ofbiz/trunk/framework/service/dtd/service-mca.xsd?
> >>> revision=HEAD">Service MCAs XSD</a></li>
> >>>    </ul>
> >>>    </li>
> >>>    <li class="contenttext">Mini-Language XML Definitions
> >>>    <ul>
> >>> -    <li class="contenttext"><a href="dtds/simple-
> >>> methods.xsd">Simple Methods XSD</a></li>
> >>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> >>> ofbiz/trunk/framework/minilang/dtd/simple-methods.xsd?
> >>> revision=HEAD">Simple Methods XSD</a></li>
> >>>    </ul>
> >>>    </li>
> >>>    <li class="contenttext">Webapp Framework XML Definitions
> >>>    <ul>
> >>> -    <li class="contenttext"><a href="dtds/site-conf.xsd">Site
> >>> Config XSD (controller.xml)</a></li>
> >>> -    <li class="contenttext"><a href="dtds/regions.xsd">Regions
> >>> Definition XSD (regions.xml)</a></li>
> >>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> >>> ofbiz/trunk/framework/webapp/dtd/site-conf.xsd?revision=HEAD">Site
> >>> Config XSD (controller.xml)</a></li>
> >>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> >>> ofbiz/trunk/framework/webapp/dtd/regions.xsd?revision=HEAD">Regions
> >>> Definition XSD (regions.xml)</a></li>
> >>>    </ul>
> >>>    </li>
> >>>    <li class="contenttext">Widget XML Definitions
> >>>    <ul>
> >>> -    <li class="contenttext"><a href="dtds/widget-form.xsd">Form
> >>> Widget XSD</a></li>
> >>> -    <li class="contenttext"><a href="dtds/widget-menu.xsd">Menu
> >>> Widget XSD</a></li>
> >>> -    <li class="contenttext"><a href="dtds/widget-
> >>> screen.xsd">Screen Widget XSD</a></li>
> >>> -    <li class="contenttext"><a href="dtds/widget-tree.xsd">Tree
> >>> Widget XSD</a></li>
> >>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> >>> ofbiz/trunk/framework/widget/dtd/widget-form.xsd?
> >>> revision=HEAD">Form Widget XSD</a></li>
> >>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> >>> ofbiz/trunk/framework/widget/dtd/widget-menu.xsd?
> >>> revision=HEAD">Menu Widget XSD</a></li>
> >>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> >>> ofbiz/trunk/framework/widget/dtd/widget-screen.xsd?
> >>> revision=HEAD">Screen Widget XSD</a></li>
> >>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> >>> ofbiz/trunk/framework/widget/dtd/widget-tree.xsd?
> >>> revision=HEAD">Tree Widget XSD</a></li>
> >>>    </ul>
> >>>    </li>
> >>>  </ul>
> >>>
> >>>
> >

Re: svn commit: r491626 - in /ofbiz/site: documents.html dtds/

Posted by Jacopo Cappellato <ti...@sastau.it>.
Chris, David,

that would be really great!

Jacopo


David E Jones wrote:
> 
> That would be nice...
> 
> Even better, and to help with the XML editor annotation problem, it 
> might be cool to have it point to one of the various XSLT files out 
> there that transforms the XSD file to a HTML file with nice summaries 
> and examples and all sorts of stuff.
> 
> If someone would like to play with this and submit some things to try, I 
> certainly wouldn't complain... ;)
> 
> -David
> 
> 
> On Jan 1, 2007, at 4:29 PM, Chris Howe wrote:
> 
>> Shouldn't you be able to simply put an xslt transform
>> in the xsd file?
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <?xml-stylesheet type="text/xml" href="#style1"?>
>>
>> since it comes before the <xs:schema> tag this should
>> give the proper instruction for the browser without
>> messing with the validation.
>>


Re: svn commit: r491626 - in /ofbiz/site: documents.html dtds/

Posted by David E Jones <jo...@undersunconsulting.com>.
That would be nice...

Even better, and to help with the XML editor annotation problem, it  
might be cool to have it point to one of the various XSLT files out  
there that transforms the XSD file to a HTML file with nice summaries  
and examples and all sorts of stuff.

If someone would like to play with this and submit some things to  
try, I certainly wouldn't complain... ;)

-David


On Jan 1, 2007, at 4:29 PM, Chris Howe wrote:

> Shouldn't you be able to simply put an xslt transform
> in the xsd file?
>
> <?xml version="1.0" encoding="UTF-8"?>
> <?xml-stylesheet type="text/xml" href="#style1"?>
>
> since it comes before the <xs:schema> tag this should
> give the proper instruction for the browser without
> messing with the validation.
>
>
> --- David E Jones <jo...@undersunconsulting.com>
> wrote:
>
>>
>> Yes, I saw that discussion.
>>
>> Is it really so bad that files are downloaded by
>> default in the
>> browser? Chances are you can change this (you have
>> various options in
>> Firefox at least), and I admin it is a bit annoying,
>> but most
>> browsers do that by default now for all non-HTML
>> files...
>>
>> In fact, given that is the default in browsers now
>> for non-HTML files
>> isn't that what users expect and what we should go
>> with?
>>
>> -David
>>
>>
>> On Jan 1, 2007, at 2:50 PM, Jacques Le Roux wrote:
>>
>>> David,
>>>
>>> We tried to find another solution because browsers
>> like Firefox or
>>> Opera by default automatically load the file hence
>> do not let you
>>> directly browse at it but launch an appli on your
>> client (for
>>> instance Visual Studio .NET on my machine by
>> default, ooops !) This
>>> was explained in detail in
>> http://issues.apache.org/jira/browse/
>>> OFBIZ-571#action_12461494
>>>
>>> I'm not sure to understand your last sentence, did
>> you say that we
>>> should go this way (having only 1 file in svn and
>> use it
>>> everywhere from there) or not ?  Else we will have
>> to maintain 2
>>> files in parallel for each XSD of course.
>>>
>>> BTW I understand that having all developpers
>> running XML editors
>>> referring to XSDs for completion and such might be
>> to heavy for an
>>> SVN server !
>>>
>>> Jacques
>>>
>>> ----- Original Message -----
>>> From: "David E Jones"
>> <jo...@undersunconsulting.com>
>>> To: <of...@incubator.apache.org>
>>> Sent: Monday, January 01, 2007 10:06 PM
>>> Subject: Re: svn commit: r491626 - in /ofbiz/site:
>> documents.html
>>> dtds/
>>>
>>>
>>>>
>>>> Because SVN runs over http there is an easier way
>> to build these
>>>> URLs, for example:
>>>>
>>>>
>>
> http://svn.apache.org/repos/asf/ofbiz/trunk/framework/base/dtd/ofbiz-
>>>> containers.xsd
>>>>
>>>> Still, I'm not sure we can totally avoid keeping
>> these files on the
>>>> web site. We need to point all of the XML files
>> to some location
>>>> available on the internet. We could perhaps
>> change all of the schema
>>>> locations in the XML files to point to the URL as
>> above, but that
>>>> would put more of a load on the svn server. I
>> guess that should be
>>>> manageable, so maybe this is way to go for the
>> future to make things
>>>> easier to manage...
>>>>
>>>> -David
>>>>
>>>>
>>>> On Jan 1, 2007, at 1:42 PM, jacopoc@apache.org
>> wrote:
>>>>
>>>>> Author: jacopoc
>>>>> Date: Mon Jan  1 12:42:50 2007
>>>>> New Revision: 491626
>>>>>
>>>>> URL:
>> http://svn.apache.org/viewvc?view=rev&rev=491626
>>>>> Log:
>>>>> Now  the links to the xsd files point to the svn
>> server and we do
>>>>> not need to keep a copy of the xsd files in the
>> web site.
>>>>> Based on tips from Jacques Le Roux and Scott
>> Gray.
>>>>>
>>>>> Removed:
>>>>>     ofbiz/site/dtds/
>>>>> Modified:
>>>>>     ofbiz/site/documents.html
>>>>>
>>>>> Modified: ofbiz/site/documents.html
>>>>> URL:
>>
> http://svn.apache.org/viewvc/ofbiz/site/documents.html?
>>>>> view=diff&rev=491626&r1=491625&r2=491626
>>>>>
>>
> ====================================================================
>>
>>>>> ==
>>>>> ========
>>>>> --- ofbiz/site/documents.html (original)
>>>>> +++ ofbiz/site/documents.html Mon Jan  1
>> 12:42:50 2007
>>>>> @@ -229,47 +229,48 @@
>>>>>  -->
>>>>>    <li class="contenttext"><a
>> name="XMLDefs">General XML
>>>>> Definitions</a>
>>>>>    <ul>
>>>>> -    <li class="contenttext"><a
>> href="dtds/ofbiz-
>>>>> containers.xsd">OFBiz Containers XSD
>> (ofbiz-containers.xml)</a></li>
>>>>> -    <li class="contenttext"><a
>> href="dtds/component-
>>>>> loader.xsd">OFBiz Component Load XSD
>> (component-load.xml)</a></li>
>>>>> -    <li class="contenttext"><a
>> href="dtds/ofbiz-component.xsd
>>>>> ">OFBiz Component XSD
>> (ofbiz-component.xml)</a></li>
>>>>> -    <li class="contenttext"><a
>> href="dtds/jndi-config.xsd">JNDI
>>>>> Server Config XSD (jndiservers.xml)</a></li>
>>>>> -    <li class="contenttext"><a
>> href="dtds/security-
>>>>> config.xsd">Security Config XSD
>> (security.xml)</a></li>
>>>>> +    <li class="contenttext"><a
>> href="http://svn.apache.org/viewvc/
>>>>>
>> ofbiz/trunk/framework/base/dtd/ofbiz-containers.xsd?
>>>>> revision=HEAD">OFBiz Containers XSD
>> (ofbiz-containers.xml)</a></li>
>>>>> +    <li class="contenttext"><a
>> href="http://svn.apache.org/viewvc/
>>>>>
>> ofbiz/trunk/framework/base/dtd/component-loader.xsd?
>>>>> revision=HEAD">OFBiz Component Load XSD
>> (component-load.xml)</a></
>>>>> li>
>>>>> +    <li class="contenttext"><a
>> href="http://svn.apache.org/viewvc/
>>>>>
>> ofbiz/trunk/framework/base/dtd/ofbiz-component.xsd?
>>>>> revision=HEAD">OFBiz Component XSD
>> (ofbiz-component.xml)</a></li>
>>>>> +    <li class="contenttext"><a
>> href="http://svn.apache.org/viewvc/
>>>>>
>>
> ofbiz/trunk/framework/base/dtd/jndi-config.xsd?revision=HEAD">JNDI
>>>>> Server Config XSD (jndiservers.xml)</a></li>
>>>>> +    <li class="contenttext"><a
>> href="http://svn.apache.org/viewvc/
>>>>>
>>
> ofbiz/trunk/framework/security/dtd/security-config.xsd?
>>>>> revision=HEAD">Security Config XSD
>> (security.xml)</a></li>
>>>>>    </ul>
>>>>>    </li>
>>>>>    <li class="contenttext">Entity Engine XML
>> Definitions
>>>>>    <ul>
>>>>> -    <li class="contenttext"><a
>> href="dtds/entity-
>>>>> config.xsd">Entity Config XSD
>> (entityengine.xml)</a></li>
>>>>> -    <li class="contenttext"><a
>> href="dtds/entitygroup.xsd">Entity
>>>>> Group XSD (entitygroup.xml)</a></li>
>>>>> -    <li class="contenttext"><a
>> href="dtds/entitymodel.xsd">Entity
>>>>> Model XSD (entitymodel_*.xml)</a></li>
>>>>> -    <li class="contenttext"><a
>> href="dtds/entity-eca.xsd">Entity
>>>>> ECAs XSD (eecas_*.xml)</a></li>
>>>>> -    <li class="contenttext"><a href="dtds/
>>>>> fieldtypemodel.xsd">Field Type Model XSD
>> (fieldtype*.xml)</a></li>
>>>>> +    <li class="contenttext"><a
>> href="http://svn.apache.org/viewvc/
>>>>>
>> ofbiz/trunk/framework/entity/dtd/entity-config.xsd?
>>
> === message truncated ===
>


Re: svn commit: r491626 - in /ofbiz/site: documents.html dtds/

Posted by Chris Howe <cj...@yahoo.com>.
Shouldn't you be able to simply put an xslt transform
in the xsd file?

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xml" href="#style1"?>

since it comes before the <xs:schema> tag this should
give the proper instruction for the browser without
messing with the validation.


--- David E Jones <jo...@undersunconsulting.com>
wrote:

> 
> Yes, I saw that discussion.
> 
> Is it really so bad that files are downloaded by
> default in the  
> browser? Chances are you can change this (you have
> various options in  
> Firefox at least), and I admin it is a bit annoying,
> but most  
> browsers do that by default now for all non-HTML
> files...
> 
> In fact, given that is the default in browsers now
> for non-HTML files  
> isn't that what users expect and what we should go
> with?
> 
> -David
> 
> 
> On Jan 1, 2007, at 2:50 PM, Jacques Le Roux wrote:
> 
> > David,
> >
> > We tried to find another solution because browsers
> like Firefox or  
> > Opera by default automatically load the file hence
> do not let you
> > directly browse at it but launch an appli on your
> client (for  
> > instance Visual Studio .NET on my machine by
> default, ooops !) This
> > was explained in detail in
> http://issues.apache.org/jira/browse/ 
> > OFBIZ-571#action_12461494
> >
> > I'm not sure to understand your last sentence, did
> you say that we  
> > should go this way (having only 1 file in svn and
> use it
> > everywhere from there) or not ?  Else we will have
> to maintain 2  
> > files in parallel for each XSD of course.
> >
> > BTW I understand that having all developpers
> running XML editors  
> > referring to XSDs for completion and such might be
> to heavy for an
> > SVN server !
> >
> > Jacques
> >
> > ----- Original Message -----
> > From: "David E Jones"
> <jo...@undersunconsulting.com>
> > To: <of...@incubator.apache.org>
> > Sent: Monday, January 01, 2007 10:06 PM
> > Subject: Re: svn commit: r491626 - in /ofbiz/site:
> documents.html  
> > dtds/
> >
> >
> >>
> >> Because SVN runs over http there is an easier way
> to build these
> >> URLs, for example:
> >>
> >>
>
http://svn.apache.org/repos/asf/ofbiz/trunk/framework/base/dtd/ofbiz-
> >> containers.xsd
> >>
> >> Still, I'm not sure we can totally avoid keeping
> these files on the
> >> web site. We need to point all of the XML files
> to some location
> >> available on the internet. We could perhaps
> change all of the schema
> >> locations in the XML files to point to the URL as
> above, but that
> >> would put more of a load on the svn server. I
> guess that should be
> >> manageable, so maybe this is way to go for the
> future to make things
> >> easier to manage...
> >>
> >> -David
> >>
> >>
> >> On Jan 1, 2007, at 1:42 PM, jacopoc@apache.org
> wrote:
> >>
> >>> Author: jacopoc
> >>> Date: Mon Jan  1 12:42:50 2007
> >>> New Revision: 491626
> >>>
> >>> URL:
> http://svn.apache.org/viewvc?view=rev&rev=491626
> >>> Log:
> >>> Now  the links to the xsd files point to the svn
> server and we do
> >>> not need to keep a copy of the xsd files in the
> web site.
> >>> Based on tips from Jacques Le Roux and Scott
> Gray.
> >>>
> >>> Removed:
> >>>     ofbiz/site/dtds/
> >>> Modified:
> >>>     ofbiz/site/documents.html
> >>>
> >>> Modified: ofbiz/site/documents.html
> >>> URL:
>
http://svn.apache.org/viewvc/ofbiz/site/documents.html?
> >>> view=diff&rev=491626&r1=491625&r2=491626
> >>>
>
====================================================================
> 
> >>> ==
> >>> ========
> >>> --- ofbiz/site/documents.html (original)
> >>> +++ ofbiz/site/documents.html Mon Jan  1
> 12:42:50 2007
> >>> @@ -229,47 +229,48 @@
> >>>  -->
> >>>    <li class="contenttext"><a
> name="XMLDefs">General XML
> >>> Definitions</a>
> >>>    <ul>
> >>> -    <li class="contenttext"><a
> href="dtds/ofbiz-
> >>> containers.xsd">OFBiz Containers XSD
> (ofbiz-containers.xml)</a></li>
> >>> -    <li class="contenttext"><a
> href="dtds/component-
> >>> loader.xsd">OFBiz Component Load XSD
> (component-load.xml)</a></li>
> >>> -    <li class="contenttext"><a
> href="dtds/ofbiz-component.xsd
> >>> ">OFBiz Component XSD
> (ofbiz-component.xml)</a></li>
> >>> -    <li class="contenttext"><a
> href="dtds/jndi-config.xsd">JNDI
> >>> Server Config XSD (jndiservers.xml)</a></li>
> >>> -    <li class="contenttext"><a
> href="dtds/security-
> >>> config.xsd">Security Config XSD
> (security.xml)</a></li>
> >>> +    <li class="contenttext"><a
> href="http://svn.apache.org/viewvc/
> >>>
> ofbiz/trunk/framework/base/dtd/ofbiz-containers.xsd?
> >>> revision=HEAD">OFBiz Containers XSD
> (ofbiz-containers.xml)</a></li>
> >>> +    <li class="contenttext"><a
> href="http://svn.apache.org/viewvc/
> >>>
> ofbiz/trunk/framework/base/dtd/component-loader.xsd?
> >>> revision=HEAD">OFBiz Component Load XSD
> (component-load.xml)</a></ 
> >>> li>
> >>> +    <li class="contenttext"><a
> href="http://svn.apache.org/viewvc/
> >>>
> ofbiz/trunk/framework/base/dtd/ofbiz-component.xsd?
> >>> revision=HEAD">OFBiz Component XSD
> (ofbiz-component.xml)</a></li>
> >>> +    <li class="contenttext"><a
> href="http://svn.apache.org/viewvc/
> >>>
>
ofbiz/trunk/framework/base/dtd/jndi-config.xsd?revision=HEAD">JNDI
> >>> Server Config XSD (jndiservers.xml)</a></li>
> >>> +    <li class="contenttext"><a
> href="http://svn.apache.org/viewvc/
> >>>
>
ofbiz/trunk/framework/security/dtd/security-config.xsd?
> >>> revision=HEAD">Security Config XSD
> (security.xml)</a></li>
> >>>    </ul>
> >>>    </li>
> >>>    <li class="contenttext">Entity Engine XML
> Definitions
> >>>    <ul>
> >>> -    <li class="contenttext"><a
> href="dtds/entity-
> >>> config.xsd">Entity Config XSD
> (entityengine.xml)</a></li>
> >>> -    <li class="contenttext"><a
> href="dtds/entitygroup.xsd">Entity
> >>> Group XSD (entitygroup.xml)</a></li>
> >>> -    <li class="contenttext"><a
> href="dtds/entitymodel.xsd">Entity
> >>> Model XSD (entitymodel_*.xml)</a></li>
> >>> -    <li class="contenttext"><a
> href="dtds/entity-eca.xsd">Entity
> >>> ECAs XSD (eecas_*.xml)</a></li>
> >>> -    <li class="contenttext"><a href="dtds/
> >>> fieldtypemodel.xsd">Field Type Model XSD
> (fieldtype*.xml)</a></li>
> >>> +    <li class="contenttext"><a
> href="http://svn.apache.org/viewvc/
> >>>
> ofbiz/trunk/framework/entity/dtd/entity-config.xsd?
> 
=== message truncated ===


Re: svn commit: r491626 - in /ofbiz/site: documents.html dtds/

Posted by David E Jones <jo...@undersunconsulting.com>.
Yes, I saw that discussion.

Is it really so bad that files are downloaded by default in the  
browser? Chances are you can change this (you have various options in  
Firefox at least), and I admin it is a bit annoying, but most  
browsers do that by default now for all non-HTML files...

In fact, given that is the default in browsers now for non-HTML files  
isn't that what users expect and what we should go with?

-David


On Jan 1, 2007, at 2:50 PM, Jacques Le Roux wrote:

> David,
>
> We tried to find another solution because browsers like Firefox or  
> Opera by default automatically load the file hence do not let you
> directly browse at it but launch an appli on your client (for  
> instance Visual Studio .NET on my machine by default, ooops !) This
> was explained in detail in http://issues.apache.org/jira/browse/ 
> OFBIZ-571#action_12461494
>
> I'm not sure to understand your last sentence, did you say that we  
> should go this way (having only 1 file in svn and use it
> everywhere from there) or not ?  Else we will have to maintain 2  
> files in parallel for each XSD of course.
>
> BTW I understand that having all developpers running XML editors  
> referring to XSDs for completion and such might be to heavy for an
> SVN server !
>
> Jacques
>
> ----- Original Message -----
> From: "David E Jones" <jo...@undersunconsulting.com>
> To: <of...@incubator.apache.org>
> Sent: Monday, January 01, 2007 10:06 PM
> Subject: Re: svn commit: r491626 - in /ofbiz/site: documents.html  
> dtds/
>
>
>>
>> Because SVN runs over http there is an easier way to build these
>> URLs, for example:
>>
>> http://svn.apache.org/repos/asf/ofbiz/trunk/framework/base/dtd/ofbiz-
>> containers.xsd
>>
>> Still, I'm not sure we can totally avoid keeping these files on the
>> web site. We need to point all of the XML files to some location
>> available on the internet. We could perhaps change all of the schema
>> locations in the XML files to point to the URL as above, but that
>> would put more of a load on the svn server. I guess that should be
>> manageable, so maybe this is way to go for the future to make things
>> easier to manage...
>>
>> -David
>>
>>
>> On Jan 1, 2007, at 1:42 PM, jacopoc@apache.org wrote:
>>
>>> Author: jacopoc
>>> Date: Mon Jan  1 12:42:50 2007
>>> New Revision: 491626
>>>
>>> URL: http://svn.apache.org/viewvc?view=rev&rev=491626
>>> Log:
>>> Now  the links to the xsd files point to the svn server and we do
>>> not need to keep a copy of the xsd files in the web site.
>>> Based on tips from Jacques Le Roux and Scott Gray.
>>>
>>> Removed:
>>>     ofbiz/site/dtds/
>>> Modified:
>>>     ofbiz/site/documents.html
>>>
>>> Modified: ofbiz/site/documents.html
>>> URL: http://svn.apache.org/viewvc/ofbiz/site/documents.html?
>>> view=diff&rev=491626&r1=491625&r2=491626
>>> ==================================================================== 
>>> ==
>>> ========
>>> --- ofbiz/site/documents.html (original)
>>> +++ ofbiz/site/documents.html Mon Jan  1 12:42:50 2007
>>> @@ -229,47 +229,48 @@
>>>  -->
>>>    <li class="contenttext"><a name="XMLDefs">General XML
>>> Definitions</a>
>>>    <ul>
>>> -    <li class="contenttext"><a href="dtds/ofbiz-
>>> containers.xsd">OFBiz Containers XSD (ofbiz-containers.xml)</a></li>
>>> -    <li class="contenttext"><a href="dtds/component-
>>> loader.xsd">OFBiz Component Load XSD (component-load.xml)</a></li>
>>> -    <li class="contenttext"><a href="dtds/ofbiz-component.xsd
>>> ">OFBiz Component XSD (ofbiz-component.xml)</a></li>
>>> -    <li class="contenttext"><a href="dtds/jndi-config.xsd">JNDI
>>> Server Config XSD (jndiservers.xml)</a></li>
>>> -    <li class="contenttext"><a href="dtds/security-
>>> config.xsd">Security Config XSD (security.xml)</a></li>
>>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
>>> ofbiz/trunk/framework/base/dtd/ofbiz-containers.xsd?
>>> revision=HEAD">OFBiz Containers XSD (ofbiz-containers.xml)</a></li>
>>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
>>> ofbiz/trunk/framework/base/dtd/component-loader.xsd?
>>> revision=HEAD">OFBiz Component Load XSD (component-load.xml)</a></ 
>>> li>
>>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
>>> ofbiz/trunk/framework/base/dtd/ofbiz-component.xsd?
>>> revision=HEAD">OFBiz Component XSD (ofbiz-component.xml)</a></li>
>>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
>>> ofbiz/trunk/framework/base/dtd/jndi-config.xsd?revision=HEAD">JNDI
>>> Server Config XSD (jndiservers.xml)</a></li>
>>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
>>> ofbiz/trunk/framework/security/dtd/security-config.xsd?
>>> revision=HEAD">Security Config XSD (security.xml)</a></li>
>>>    </ul>
>>>    </li>
>>>    <li class="contenttext">Entity Engine XML Definitions
>>>    <ul>
>>> -    <li class="contenttext"><a href="dtds/entity-
>>> config.xsd">Entity Config XSD (entityengine.xml)</a></li>
>>> -    <li class="contenttext"><a href="dtds/entitygroup.xsd">Entity
>>> Group XSD (entitygroup.xml)</a></li>
>>> -    <li class="contenttext"><a href="dtds/entitymodel.xsd">Entity
>>> Model XSD (entitymodel_*.xml)</a></li>
>>> -    <li class="contenttext"><a href="dtds/entity-eca.xsd">Entity
>>> ECAs XSD (eecas_*.xml)</a></li>
>>> -    <li class="contenttext"><a href="dtds/
>>> fieldtypemodel.xsd">Field Type Model XSD (fieldtype*.xml)</a></li>
>>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
>>> ofbiz/trunk/framework/entity/dtd/entity-config.xsd?
>>> revision=HEAD">Entity Config XSD (entityengine.xml)</a></li>
>>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
>>> ofbiz/trunk/framework/entity/dtd/entitygroup.xsd?
>>> revision=HEAD">Entity Group XSD (entitygroup.xml)</a></li>
>>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
>>> ofbiz/trunk/framework/entity/dtd/entitymodel.xsd?
>>> revision=HEAD">Entity Model XSD (entitymodel_*.xml)</a></li>
>>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
>>> ofbiz/trunk/framework/entity/dtd/entity-eca.xsd?
>>> revision=HEAD">Entity ECAs XSD (eecas_*.xml)</a></li>
>>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
>>> ofbiz/trunk/framework/entity/dtd/fieldtypemodel.xsd?
>>> revision=HEAD">Field Type Model XSD (fieldtype*.xml)</a></li>
>>>    </ul>
>>>    </li>
>>>    <li class="contenttext">Service Engine XML Definitions
>>>    <ul>
>>> -    <li class="contenttext"><a href="dtds/service-
>>> config.xsd">Service Config XSD (serviceengine.xml)</a></li>
>>> -    <li class="contenttext"><a href="dtds/services.xsd">Service
>>> Definition XSD (services_*.xml)</a></li>
>>> -    <li class="contenttext"><a href="dtds/service-eca.xsd">Service
>>> ECAs XSD (secas_*.xml)</a></li>
>>> -    <li class="contenttext"><a href="dtds/service-
>>> group.xsd">Service Groups XSD (groups_*.xml)</a></li>
>>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
>>> ofbiz/trunk/framework/service/dtd/service-config.xsd?
>>> revision=HEAD">Service Config XSD (serviceengine.xml)</a></li>
>>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
>>> ofbiz/trunk/framework/service/dtd/services.xsd?
>>> revision=HEAD">Service Definition XSD (services_*.xml)</a></li>
>>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
>>> ofbiz/trunk/framework/service/dtd/service-eca.xsd?
>>> revision=HEAD">Service ECAs XSD (secas_*.xml)</a></li>
>>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
>>> ofbiz/trunk/framework/service/dtd/service-group.xsd?
>>> revision=HEAD">Service Groups XSD (groups_*.xml)</a></li>
>>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
>>> ofbiz/trunk/framework/service/dtd/service-mca.xsd?
>>> revision=HEAD">Service MCAs XSD</a></li>
>>>    </ul>
>>>    </li>
>>>    <li class="contenttext">Mini-Language XML Definitions
>>>    <ul>
>>> -    <li class="contenttext"><a href="dtds/simple-
>>> methods.xsd">Simple Methods XSD</a></li>
>>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
>>> ofbiz/trunk/framework/minilang/dtd/simple-methods.xsd?
>>> revision=HEAD">Simple Methods XSD</a></li>
>>>    </ul>
>>>    </li>
>>>    <li class="contenttext">Webapp Framework XML Definitions
>>>    <ul>
>>> -    <li class="contenttext"><a href="dtds/site-conf.xsd">Site
>>> Config XSD (controller.xml)</a></li>
>>> -    <li class="contenttext"><a href="dtds/regions.xsd">Regions
>>> Definition XSD (regions.xml)</a></li>
>>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
>>> ofbiz/trunk/framework/webapp/dtd/site-conf.xsd?revision=HEAD">Site
>>> Config XSD (controller.xml)</a></li>
>>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
>>> ofbiz/trunk/framework/webapp/dtd/regions.xsd?revision=HEAD">Regions
>>> Definition XSD (regions.xml)</a></li>
>>>    </ul>
>>>    </li>
>>>    <li class="contenttext">Widget XML Definitions
>>>    <ul>
>>> -    <li class="contenttext"><a href="dtds/widget-form.xsd">Form
>>> Widget XSD</a></li>
>>> -    <li class="contenttext"><a href="dtds/widget-menu.xsd">Menu
>>> Widget XSD</a></li>
>>> -    <li class="contenttext"><a href="dtds/widget-
>>> screen.xsd">Screen Widget XSD</a></li>
>>> -    <li class="contenttext"><a href="dtds/widget-tree.xsd">Tree
>>> Widget XSD</a></li>
>>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
>>> ofbiz/trunk/framework/widget/dtd/widget-form.xsd?
>>> revision=HEAD">Form Widget XSD</a></li>
>>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
>>> ofbiz/trunk/framework/widget/dtd/widget-menu.xsd?
>>> revision=HEAD">Menu Widget XSD</a></li>
>>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
>>> ofbiz/trunk/framework/widget/dtd/widget-screen.xsd?
>>> revision=HEAD">Screen Widget XSD</a></li>
>>> +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
>>> ofbiz/trunk/framework/widget/dtd/widget-tree.xsd?
>>> revision=HEAD">Tree Widget XSD</a></li>
>>>    </ul>
>>>    </li>
>>>  </ul>
>>>
>>>
>


Re: svn commit: r491626 - in /ofbiz/site: documents.html dtds/

Posted by Jacques Le Roux <ja...@les7arts.com>.
David,

We tried to find another solution because browsers like Firefox or Opera by default automatically load the file hence do not let you
directly browse at it but launch an appli on your client (for instance Visual Studio .NET on my machine by default, ooops !) This
was explained in detail in http://issues.apache.org/jira/browse/OFBIZ-571#action_12461494

I'm not sure to understand your last sentence, did you say that we should go this way (having only 1 file in svn and use it
everywhere from there) or not ?  Else we will have to maintain 2 files in parallel for each XSD of course.

BTW I understand that having all developpers running XML editors referring to XSDs for completion and such might be to heavy for an
SVN server !

Jacques

----- Original Message ----- 
From: "David E Jones" <jo...@undersunconsulting.com>
To: <of...@incubator.apache.org>
Sent: Monday, January 01, 2007 10:06 PM
Subject: Re: svn commit: r491626 - in /ofbiz/site: documents.html dtds/


>
> Because SVN runs over http there is an easier way to build these
> URLs, for example:
>
> http://svn.apache.org/repos/asf/ofbiz/trunk/framework/base/dtd/ofbiz-
> containers.xsd
>
> Still, I'm not sure we can totally avoid keeping these files on the
> web site. We need to point all of the XML files to some location
> available on the internet. We could perhaps change all of the schema
> locations in the XML files to point to the URL as above, but that
> would put more of a load on the svn server. I guess that should be
> manageable, so maybe this is way to go for the future to make things
> easier to manage...
>
> -David
>
>
> On Jan 1, 2007, at 1:42 PM, jacopoc@apache.org wrote:
>
> > Author: jacopoc
> > Date: Mon Jan  1 12:42:50 2007
> > New Revision: 491626
> >
> > URL: http://svn.apache.org/viewvc?view=rev&rev=491626
> > Log:
> > Now  the links to the xsd files point to the svn server and we do
> > not need to keep a copy of the xsd files in the web site.
> > Based on tips from Jacques Le Roux and Scott Gray.
> >
> > Removed:
> >     ofbiz/site/dtds/
> > Modified:
> >     ofbiz/site/documents.html
> >
> > Modified: ofbiz/site/documents.html
> > URL: http://svn.apache.org/viewvc/ofbiz/site/documents.html?
> > view=diff&rev=491626&r1=491625&r2=491626
> > ======================================================================
> > ========
> > --- ofbiz/site/documents.html (original)
> > +++ ofbiz/site/documents.html Mon Jan  1 12:42:50 2007
> > @@ -229,47 +229,48 @@
> >  -->
> >    <li class="contenttext"><a name="XMLDefs">General XML
> > Definitions</a>
> >    <ul>
> > -    <li class="contenttext"><a href="dtds/ofbiz-
> > containers.xsd">OFBiz Containers XSD (ofbiz-containers.xml)</a></li>
> > -    <li class="contenttext"><a href="dtds/component-
> > loader.xsd">OFBiz Component Load XSD (component-load.xml)</a></li>
> > -    <li class="contenttext"><a href="dtds/ofbiz-component.xsd
> > ">OFBiz Component XSD (ofbiz-component.xml)</a></li>
> > -    <li class="contenttext"><a href="dtds/jndi-config.xsd">JNDI
> > Server Config XSD (jndiservers.xml)</a></li>
> > -    <li class="contenttext"><a href="dtds/security-
> > config.xsd">Security Config XSD (security.xml)</a></li>
> > +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> > ofbiz/trunk/framework/base/dtd/ofbiz-containers.xsd?
> > revision=HEAD">OFBiz Containers XSD (ofbiz-containers.xml)</a></li>
> > +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> > ofbiz/trunk/framework/base/dtd/component-loader.xsd?
> > revision=HEAD">OFBiz Component Load XSD (component-load.xml)</a></li>
> > +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> > ofbiz/trunk/framework/base/dtd/ofbiz-component.xsd?
> > revision=HEAD">OFBiz Component XSD (ofbiz-component.xml)</a></li>
> > +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> > ofbiz/trunk/framework/base/dtd/jndi-config.xsd?revision=HEAD">JNDI
> > Server Config XSD (jndiservers.xml)</a></li>
> > +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> > ofbiz/trunk/framework/security/dtd/security-config.xsd?
> > revision=HEAD">Security Config XSD (security.xml)</a></li>
> >    </ul>
> >    </li>
> >    <li class="contenttext">Entity Engine XML Definitions
> >    <ul>
> > -    <li class="contenttext"><a href="dtds/entity-
> > config.xsd">Entity Config XSD (entityengine.xml)</a></li>
> > -    <li class="contenttext"><a href="dtds/entitygroup.xsd">Entity
> > Group XSD (entitygroup.xml)</a></li>
> > -    <li class="contenttext"><a href="dtds/entitymodel.xsd">Entity
> > Model XSD (entitymodel_*.xml)</a></li>
> > -    <li class="contenttext"><a href="dtds/entity-eca.xsd">Entity
> > ECAs XSD (eecas_*.xml)</a></li>
> > -    <li class="contenttext"><a href="dtds/
> > fieldtypemodel.xsd">Field Type Model XSD (fieldtype*.xml)</a></li>
> > +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> > ofbiz/trunk/framework/entity/dtd/entity-config.xsd?
> > revision=HEAD">Entity Config XSD (entityengine.xml)</a></li>
> > +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> > ofbiz/trunk/framework/entity/dtd/entitygroup.xsd?
> > revision=HEAD">Entity Group XSD (entitygroup.xml)</a></li>
> > +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> > ofbiz/trunk/framework/entity/dtd/entitymodel.xsd?
> > revision=HEAD">Entity Model XSD (entitymodel_*.xml)</a></li>
> > +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> > ofbiz/trunk/framework/entity/dtd/entity-eca.xsd?
> > revision=HEAD">Entity ECAs XSD (eecas_*.xml)</a></li>
> > +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> > ofbiz/trunk/framework/entity/dtd/fieldtypemodel.xsd?
> > revision=HEAD">Field Type Model XSD (fieldtype*.xml)</a></li>
> >    </ul>
> >    </li>
> >    <li class="contenttext">Service Engine XML Definitions
> >    <ul>
> > -    <li class="contenttext"><a href="dtds/service-
> > config.xsd">Service Config XSD (serviceengine.xml)</a></li>
> > -    <li class="contenttext"><a href="dtds/services.xsd">Service
> > Definition XSD (services_*.xml)</a></li>
> > -    <li class="contenttext"><a href="dtds/service-eca.xsd">Service
> > ECAs XSD (secas_*.xml)</a></li>
> > -    <li class="contenttext"><a href="dtds/service-
> > group.xsd">Service Groups XSD (groups_*.xml)</a></li>
> > +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> > ofbiz/trunk/framework/service/dtd/service-config.xsd?
> > revision=HEAD">Service Config XSD (serviceengine.xml)</a></li>
> > +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> > ofbiz/trunk/framework/service/dtd/services.xsd?
> > revision=HEAD">Service Definition XSD (services_*.xml)</a></li>
> > +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> > ofbiz/trunk/framework/service/dtd/service-eca.xsd?
> > revision=HEAD">Service ECAs XSD (secas_*.xml)</a></li>
> > +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> > ofbiz/trunk/framework/service/dtd/service-group.xsd?
> > revision=HEAD">Service Groups XSD (groups_*.xml)</a></li>
> > +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> > ofbiz/trunk/framework/service/dtd/service-mca.xsd?
> > revision=HEAD">Service MCAs XSD</a></li>
> >    </ul>
> >    </li>
> >    <li class="contenttext">Mini-Language XML Definitions
> >    <ul>
> > -    <li class="contenttext"><a href="dtds/simple-
> > methods.xsd">Simple Methods XSD</a></li>
> > +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> > ofbiz/trunk/framework/minilang/dtd/simple-methods.xsd?
> > revision=HEAD">Simple Methods XSD</a></li>
> >    </ul>
> >    </li>
> >    <li class="contenttext">Webapp Framework XML Definitions
> >    <ul>
> > -    <li class="contenttext"><a href="dtds/site-conf.xsd">Site
> > Config XSD (controller.xml)</a></li>
> > -    <li class="contenttext"><a href="dtds/regions.xsd">Regions
> > Definition XSD (regions.xml)</a></li>
> > +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> > ofbiz/trunk/framework/webapp/dtd/site-conf.xsd?revision=HEAD">Site
> > Config XSD (controller.xml)</a></li>
> > +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> > ofbiz/trunk/framework/webapp/dtd/regions.xsd?revision=HEAD">Regions
> > Definition XSD (regions.xml)</a></li>
> >    </ul>
> >    </li>
> >    <li class="contenttext">Widget XML Definitions
> >    <ul>
> > -    <li class="contenttext"><a href="dtds/widget-form.xsd">Form
> > Widget XSD</a></li>
> > -    <li class="contenttext"><a href="dtds/widget-menu.xsd">Menu
> > Widget XSD</a></li>
> > -    <li class="contenttext"><a href="dtds/widget-
> > screen.xsd">Screen Widget XSD</a></li>
> > -    <li class="contenttext"><a href="dtds/widget-tree.xsd">Tree
> > Widget XSD</a></li>
> > +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> > ofbiz/trunk/framework/widget/dtd/widget-form.xsd?
> > revision=HEAD">Form Widget XSD</a></li>
> > +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> > ofbiz/trunk/framework/widget/dtd/widget-menu.xsd?
> > revision=HEAD">Menu Widget XSD</a></li>
> > +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> > ofbiz/trunk/framework/widget/dtd/widget-screen.xsd?
> > revision=HEAD">Screen Widget XSD</a></li>
> > +    <li class="contenttext"><a href="http://svn.apache.org/viewvc/
> > ofbiz/trunk/framework/widget/dtd/widget-tree.xsd?
> > revision=HEAD">Tree Widget XSD</a></li>
> >    </ul>
> >    </li>
> >  </ul>
> >
> >


Re: svn commit: r491626 - in /ofbiz/site: documents.html dtds/

Posted by Jacopo Cappellato <ti...@sastau.it>.
David,

you are right, we still need to keep a copy of the dtd in the web 
site... ok, for now I've reverted the commit, so that we can elaborate a 
better solution.
Thanks for your feedback,

Jacopo

David E Jones wrote:
> 
> Because SVN runs over http there is an easier way to build these URLs, 
> for example:
> 
> http://svn.apache.org/repos/asf/ofbiz/trunk/framework/base/dtd/ofbiz-containers.xsd 
> 
> 
> Still, I'm not sure we can totally avoid keeping these files on the web 
> site. We need to point all of the XML files to some location available 
> on the internet. We could perhaps change all of the schema locations in 
> the XML files to point to the URL as above, but that would put more of a 
> load on the svn server. I guess that should be manageable, so maybe this 
> is way to go for the future to make things easier to manage...
> 
> -David
>