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 <[EMAIL PROTECTED]> 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" > <[EMAIL PROTECTED]> > > To: <[email protected]> > > 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, [EMAIL PROTECTED] > 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 ===
