From: Matthew B. <mat...@co...> - 2005-05-25 12:30:44
|
I have had a quick hack at removing the system property bodington.home that is used by Bodington. The problem with using a System property is that if you have two copies of Bodington running in the same Servlet container they will share the value (bad). The bodington.home property was almost exclusively used to load the DTDs. So I have moved the DTDs into the classpath and hacked up a new EntityResolver that looks in the classpath by default. This means that things like template compilation don't need to have properties set to work. The correct way to solve this would have been to use a CatalogResolver (http://xml.apache.org/commons/components/resolver/) which I might sort out at some point down the road. Attached is my current patch for WebLearn HEAD at fixing this. I'll push it across to Bodington HEAD unless anyone has any objections. NB: As a side note it seems that Bodington doesn't use the DOCTYPE declaration correctly and confuses the PUBLIC and SYSTEM attributes (look at any of the templates). I'm guessing this was done because the XML parser doesn't assume the SYSTEM DTD relative and so passes it through untouched. -- +--Matthew Buckett-----------------------------------------+ | VLE Developer, Learning Technologies Group | | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | +------------Computing Services, University of Oxford------+ |
From: Matthew B. <mat...@co...> - 2005-05-25 12:31:44
Attachments:
bodington_home_removal.txt
|
> out at some point down the road. Attached is my current patch for > WebLearn HEAD at fixing this. I'll push it across to Bodington HEAD As always I forgot to attach the patch. -- +--Matthew Buckett-----------------------------------------+ | VLE Developer, Learning Technologies Group | | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | +------------Computing Services, University of Oxford------+ |
From: Alistair Y. <ali...@sm...> - 2005-05-25 12:36:19
|
that will solve problems for use, running multiple bods. as an aside - talk of DTDs frightens me at the moment as the <template> element has changed to cater for i18n - the resource-file attribute won't be in the dtd. is it worth moving to a schema while we're/you're at it? Alistair On 25 May 2005, at 13:30, Matthew Buckett wrote: > I have had a quick hack at removing the system property bodington.home > that is used by Bodington. The problem with using a System property is > that if you have two copies of Bodington running in the same Servlet > container they will share the value (bad). > > The bodington.home property was almost exclusively used to load the > DTDs. So I have moved the DTDs into the classpath and hacked up a new > EntityResolver that looks in the classpath by default. This means that > things like template compilation don't need to have properties set to > work. > > The correct way to solve this would have been to use a CatalogResolver > (http://xml.apache.org/commons/components/resolver/) which I might > sort out at some point down the road. Attached is my current patch for > WebLearn HEAD at fixing this. I'll push it across to Bodington HEAD > unless anyone has any objections. > > NB: As a side note it seems that Bodington doesn't use the DOCTYPE > declaration correctly and confuses the PUBLIC and SYSTEM attributes > (look at any of the templates). I'm guessing this was done because the > XML parser doesn't assume the SYSTEM DTD relative and so passes it > through untouched. > > -- > +--Matthew Buckett-----------------------------------------+ > | VLE Developer, Learning Technologies Group | > | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | > +------------Computing Services, University of Oxford------+ > > > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit > http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > _______________________________________________ > Bodington-developers mailing list > Bod...@li... > https://lists.sourceforge.net/lists/listinfo/bodington-developers |
From: Matthew B. <mat...@co...> - 2005-05-25 12:49:57
|
Alistair Young wrote: > that will solve problems for use, running multiple bods. The only System property left is bodington.properties but that one is quite simple to remove (I think). > as an aside - talk of DTDs frightens me at the moment as the <template> > element has changed to cater for i18n - the resource-file attribute > won't be in the dtd. It should be quite easy to add in the additional attributes/elements. Validation isn't required on so you will just get lots more warnings I think. > is it worth moving to a schema while we're/you're at it? :-) At the moment the DTDs are very similar to the orginal XHTML DTDs and so moving to a XSD would make them quite different (does an official XSD for XHTML exist?). I don't mind it changing but only saw this as a short term hack to allow multiple bodingtons to run in the same container. -- +--Matthew Buckett-----------------------------------------+ | VLE Developer, Learning Technologies Group | | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | +------------Computing Services, University of Oxford------+ |
From: Adam M. <ada...@co...> - 2005-05-25 13:27:37
|
I tried to use an XHTML schema with LUSID and it led to all sorts of validation problems so I went back to the DTD. I cant remember the details but my XHTML was pretty simple and was littered with warnings. Most XHTML docs out there seem to reference the DTD and not the schema. I think I got the XSD from http://schneegans.de/sv/ adam -- Adam Marshall: OUCS, 13, Banbury Rd. Oxford OX2 6NN. Shameless plug: Use the Bodington VLE http://bodington.org Blog: http://ramble.oucs.ox.ac.uk/blog/adamm/ Cheese of the month: Cheshire (not to be underestimated) | -----Original Message----- | From: bod...@li... [mailto:bodington- | dev...@li...] On Behalf Of Matthew Buckett | Sent: 25 May 2005 13:50 | To: bod...@li... | Subject: Re: [Bodington-developers] Removal of System property | (bodington.home) | | Alistair Young wrote: | > that will solve problems for use, running multiple bods. | | The only System property left is bodington.properties but that one is | quite simple to remove (I think). | | > as an aside - talk of DTDs frightens me at the moment as the <template> | > element has changed to cater for i18n - the resource-file attribute | > won't be in the dtd. | | It should be quite easy to add in the additional attributes/elements. | Validation isn't required on so you will just get lots more warnings I | think. | | > is it worth moving to a schema while we're/you're at it? | | :-) At the moment the DTDs are very similar to the orginal XHTML DTDs | and so moving to a XSD would make them quite different (does an official | XSD for XHTML exist?). I don't mind it changing but only saw this as a | short term hack to allow multiple bodingtons to run in the same container. | | -- | +--Matthew Buckett-----------------------------------------+ | | VLE Developer, Learning Technologies Group | | | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | | +------------Computing Services, University of Oxford------+ | | | ------------------------------------------------------- | This SF.Net email is sponsored by Yahoo. | Introducing Yahoo! Search Developer Network - Create apps using Yahoo! | Search APIs Find out how you can build Yahoo! directly into your own | Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 | _______________________________________________ | Bodington-developers mailing list | Bod...@li... | https://lists.sourceforge.net/lists/listinfo/bodington-developers |
From: Matthew B. <mat...@co...> - 2005-05-25 12:53:25
|
Matthew Buckett wrote: > NB: As a side note it seems that Bodington doesn't use the DOCTYPE > declaration correctly and confuses the PUBLIC and SYSTEM attributes > (look at any of the templates). I'm guessing this was done because the > XML parser doesn't assume the SYSTEM DTD relative and so passes it > through untouched. Should read: XML parser doesn't assume the PUBLIC DTD relative and so passes it through untouched. -- +--Matthew Buckett-----------------------------------------+ | VLE Developer, Learning Technologies Group | | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | +------------Computing Services, University of Oxford------+ |