You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Sean Wheller <se...@inwords.co.za> on 2004/10/20 21:07:48 UTC
Test Zone for new Forrest Sample Site
Hi,
Here is a test site that will eventually be hosted at
http://learnlinux.tsf.org.za. All content except the FAQ's are Docbook 4.3.
The test zone URL is http://www.inwords.co.za/site/index.html
Please check the courses section to see an example of the problem with
XInclude.
--
Sean Wheller
Technical Author
sean@inwords.co.za
http://www.inwords.co.za
Re: Test Zone for new Forrest Sample Site
Posted by Sean Wheller <se...@inwords.co.za>.
On Thursday 21 October 2004 11:38, Nicola Ken Barozzi wrote:
> It should work with validation off for those files that have xinclude
> and without the xpointer and caching support. That's why it's included,
Yes, it should but does not. I have used
forrest.validate.xdocs.excludes=courses/**
to exclude all course files from validation. They will be valid by default
since they are authored and tested externally.
In addition, I use a combination of entities and XInclude. This causes the
project build to fail since it expects to find a DocTypeDecl on all XML files
even though I have not specified standalone="no" in the XML declaration.
Perhaps I need to tune something else, but as per Ross Gardlers' earlier
message I think it's a problem in Forrest, or Cocoons' problem that is now
also Forrests problem:-).
I think that Ross's implimentation using IMSManifest may be a good solution,
taken that it is not likely that Cocoon will fix the problem anytime soon. I
look forward to testing it once it is merged into the trunk. Meanwhile I am
reading about it.
I have not actually use XPointer only XInclude. I may be wrong, but as far as
I know only implimentations using libxml2 support XPointer, or one
version/interpretation thereof.
--
Sean Wheller
Technical Author
sean@inwords.co.za
http://www.inwords.co.za
Re: Test Zone for new Forrest Sample Site
Posted by Nicola Ken Barozzi <ni...@apache.org>.
Sean Wheller wrote:
> On Thursday 21 October 2004 09:48, Nicola Ken Barozzi wrote:
>
>>>XInclude is the way forward. Since it solves these problems. Seems that
>>>this should be listed as a major bug in Forrest. What do you think?
>>>
>>>The problem here is that the sources must be transformable under forrest
>>>and under any other publishing tool chain. IMHO, this is the way it
>>>should be.
>>
>>It's the Cocoon XInclude system that is partial unfortunately.
>
> In which case Forrest should not have implimented
> <map:transformer name="xinclude"
> src="org.apache.cocoon.transformation.XIncludeTransformer"
> logger="sitemap.transformer.xinclude" pool-grow="2" pool-max="16"
> pool-min="2" />
>
> Unitil such time as XIncludeTransformer works.
> I don't expect XPointer since that seems to be stalled and all broken.
>
> For example, I am not following what happens in Cocoon, so when I see
> XIncludeTransformer I assume it works.
It should work with validation off for those files that have xinclude
and without the xpointer and caching support. That's why it's included,
--
Nicola Ken Barozzi nicolaken@apache.org
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
Re: Test Zone for new Forrest Sample Site
Posted by David Crossley <cr...@apache.org>.
Sean Wheller wrote:
> On Nicola Ken Barozzi wrote:
> > > XInclude is the way forward. Since it solves these problems. Seems that
> > > this should be listed as a major bug in Forrest. What do you think?
> > >
> > > The problem here is that the sources must be transformable under forrest
> > > and under any other publishing tool chain. IMHO, this is the way it
> > > should be.
> >
> > It's the Cocoon XInclude system that is partial unfortunately.
>
> In which case Forrest should not have implimented
> <map:transformer name="xinclude"
> src="org.apache.cocoon.transformation.XIncludeTransformer"
> logger="sitemap.transformer.xinclude" pool-grow="2" pool-max="16"
> pool-min="2" />
>
> Unitil such time as XIncludeTransformer works.
> I don't expect XPointer since that seems to be stalled and all broken.
>
> For example, I am not following what happens in Cocoon, so when I see
> XIncludeTransformer I assume it works.
I use XIncludeTransformer in a Cocoon-based site
and it work beautifully. I am busy now, but if you
still need an example later, i will dig it out.
However, i wonder it its purpose is not what you think.
http://cocoon.apache.org/2.1/userdocs/transformers/xinclude-transformer.html
http://wiki.apache.org/cocoon/XInclude
--
David Crossley
Re: Test Zone for new Forrest Sample Site
Posted by Sean Wheller <se...@inwords.co.za>.
On Thursday 21 October 2004 09:48, Nicola Ken Barozzi wrote:
> > XInclude is the way forward. Since it solves these problems. Seems that
> > this should be listed as a major bug in Forrest. What do you think?
> >
> > The problem here is that the sources must be transformable under forrest
> > and under any other publishing tool chain. IMHO, this is the way it
> > should be.
>
> It's the Cocoon XInclude system that is partial unfortunately.
In which case Forrest should not have implimented
<map:transformer name="xinclude"
src="org.apache.cocoon.transformation.XIncludeTransformer"
logger="sitemap.transformer.xinclude" pool-grow="2" pool-max="16"
pool-min="2" />
Unitil such time as XIncludeTransformer works.
I don't expect XPointer since that seems to be stalled and all broken.
For example, I am not following what happens in Cocoon, so when I see
XIncludeTransformer I assume it works.
--
Sean Wheller
Technical Author
sean@inwords.co.za
http://www.inwords.co.za
Re: Test Zone for new Forrest Sample Site
Posted by Nicola Ken Barozzi <ni...@apache.org>.
Sean Wheller wrote:
...
> In addition there is the overhead of turning Forrest validation
> off for these documents.
This is not a Forrest deficiency but a nasty W3C spec bug that has
emarginated Xinclude... till now with RelaxNG. When we will move to
XHTML2, we will validate with RElaxNG and Xinclude should not break
validation.
> XInclude is the way forward. Since it solves these problems. Seems that this
> should be listed as a major bug in Forrest. What do you think?
>
> The problem here is that the sources must be transformable under forrest and
> under any other publishing tool chain. IMHO, this is the way it should be.
It's the Cocoon XInclude system that is partial unfortunately.
> <comment>Forrest is a good idea, unfortunately it seems to have deviated from
> the standards in places and only partially implements them.</comment>
We'll try to get better :-)
--
Nicola Ken Barozzi nicolaken@apache.org
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
Re: Test Zone for new Forrest Sample Site
Posted by David Crossley <cr...@apache.org>.
Sean Wheller wrote:
> Ross Gardler wrote:
> > If you can't get your code to work then it is either a bug in Forrest or
> > a problem in your code. The issues I had were different, the includes
> > worked fine, but when it came to nested includes it didn't work. At that
> > time this was a bug in Cocoon. But this is at least 18 months ago now
> > and I suspect it is fixed. I think your problem is a different issue.
>
> Remember I am able to transform the complete set outside of forrest. So I am
> confident that this is a forrest bug. Whether it is caused by forrest or
> cocoon is the same thing.
I know it may take some work, but would you be able
to provide a small testcase? I mean something that
we can add into 'forrest seed site'. It would serve
later as a demo of the capability. In the meantime
it would help us all to see the issues and try to
find the solution.
--
David Crossley
Re: Test Zone for new Forrest Sample Site
Posted by Sean Wheller <se...@inwords.co.za>.
On Thursday 21 October 2004 13:30, Ross Gardler wrote:
> If you can't get your code to work then it is either a bug in Forrest or
> a problem in your code. The issues I had were different, the includes
> worked fine, but when it came to nested includes it didn't work. At that
> time this was a bug in Cocoon. But this is at least 18 months ago now
> and I suspect it is fixed. I think your problem is a different issue.
Remember I am able to transform the complete set outside of forrest. So I am
confident that this is a forrest bug. Whether it is caused by forrest or
cocoon is the same thing.
I have uploaded a new sample.
http://www.inwords.co.za/site/courses/fundamentals.html
This time I have made the value of the @href absolute, it brings in the data,
but seems that docbook2document.xsl no longer functions as with documents
that don't have XInclude. This is because the XSL does not have a template to
match part. That can be easily fixed.
However, it still does not explain why the document transforms just fine
oustide forrest and in forrest the xi:fallback is used. The relative path is
as it should be and works in commandline transformation using saxon, xalan
and xsltproc.
BTW. This document (fundamentals), is a book and only includes documents with
part element as root. The parts have no sub xi:includes.
Perhaps I am doing something wrong, but I just can't see what.
Thanks for your help and Perseverance.
--
Sean Wheller
Technical Author
sean@inwords.co.za
http://www.inwords.co.za
Re: Test Zone for new Forrest Sample Site
Posted by Ross Gardler <rg...@apache.org>.
Sean Wheller wrote:
> On Wednesday 20 October 2004 22:28, Ross Gardler wrote:
>
>>Sean Wheller wrote:
>>
>>>Here is a test site that will eventually be hosted at
>>>http://learnlinux.tsf.org.za. All content except the FAQ's are Docbook
>>>4.3.
>>>
>>>The test zone URL is http://www.inwords.co.za/site/index.html
>>>
>>>Please check the courses section to see an example of the problem with
>>>XInclude.
>>
>>I'm afraid I cannot address the problem you are having with XIncludes,
>>but I do have a useful suggestion. First a little background:
>>
>>Some time ago I tried to do exactly what you were doing, that is
>>XInclude content in course materials. I wanted to reuse content from one
>>course in another (I guess this is what you are doing). I ran into many
>>limitiations of the XInclude handling in Cocoon itself and eventually
>>dropped the whole thing for cut and paste and careful management
>>(deadlines and all that).
>
>
> Yes, this is exactly what we're doing. It's called modular Docbook. We can
> implement it using two methods: entities or xincude. The problem with the
> entities is that you cannot have a DocTypeDecl in the referenced documents.
> This mean to have to transform from the driver (master document), in order to
> get output. This is not good since people sometimes what to take it one piece
> at a time. In addition there is the overhead of turning Forrest validation
> off for these documents.
>
> XInclude is the way forward. Since it solves these problems. Seems that this
> should be listed as a major bug in Forrest. What do you think?
If you can't get your code to work then it is either a bug in Forrest or
a problem in your code. The issues I had were different, the includes
worked fine, but when it came to nested includes it didn't work. At that
time this was a bug in Cocoon. But this is at least 18 months ago now
and I suspect it is fixed. I think your problem is a different issue.
> The problem here is that the sources must be transformable under forrest and
> under any other publishing tool chain. IMHO, this is the way it should be.
Yes.
> <comment>Forrest is a good idea, unfortunately it seems to have deviated from
> the standards in places and only partially implements them.</comment>
Hmmmm. Forrest is at version 0.6, i.e. it is not complete so by
definition it only partially implements some of its features (like
docbook support). The idea of Open Source is that we all add the
functionality we need, eventually we get to a complete state and release 1.0
As for deviating from the standards, I am not sure I agree here. Can you
give an example? The only non-standard item I am aware of is our use of
Documentv20, but this is an internal format so we should be fre to use
what we want. Nevertheless, we are migrating to XHTML2 support.
>>As you know I have been working on a plugin system for Forrest. The
>>first plugin I have built for this replaces site.xml and tabs.xml with
>>an IMSManifest file (this is the equivalent of site.xml for a SCORM1.2
>>learning object). One of the functions of this plugin is that you can
>>include content from one content object in another.
>>
>>Now, this is alpha code and has some problems (i.e. there is some
>>hardcoded path information in the XMaps and xsl), however, it does work.
>>I have used it for all the courses I have developed and we use it within
>>Burrokeet itself.
>>
>>So, my advice to you would be forget XInclude and use this new plugin (
>>I am hoping to merge the branch with trunk tomorrow). There is even a
>>graphical editor you can use to create your IMSManifest :-).
>
>
> Yes. I have been watching the sitemap-plugins branch. I have not tried it,
> time is the problem. Perhaps I should have, but I expected xi:include to work
> in forrest. I will take another look at it and try to implement it. Tough I
> am not sure about the "hardcoding". I understand why you have done it
> though :-)
Don't worry, I do not intend to leave the hardcoding in place, it was
one of those "meeet the deadline" things. Once I have merged the branch
this becomes a priority, I will not commit the plugin code until this
has gone and since I want the plugin code available to people who may
use and help improve it this is, of course, a priority.
Ross
Re: Test Zone for new Forrest Sample Site
Posted by Sean Wheller <se...@inwords.co.za>.
On Wednesday 20 October 2004 22:28, Ross Gardler wrote:
> Sean Wheller wrote:
> >
> > Here is a test site that will eventually be hosted at
> > http://learnlinux.tsf.org.za. All content except the FAQ's are Docbook
> > 4.3.
> >
> > The test zone URL is http://www.inwords.co.za/site/index.html
> >
> > Please check the courses section to see an example of the problem with
> > XInclude.
>
> I'm afraid I cannot address the problem you are having with XIncludes,
> but I do have a useful suggestion. First a little background:
>
> Some time ago I tried to do exactly what you were doing, that is
> XInclude content in course materials. I wanted to reuse content from one
> course in another (I guess this is what you are doing). I ran into many
> limitiations of the XInclude handling in Cocoon itself and eventually
> dropped the whole thing for cut and paste and careful management
> (deadlines and all that).
Yes, this is exactly what we're doing. It's called modular Docbook. We can
implement it using two methods: entities or xincude. The problem with the
entities is that you cannot have a DocTypeDecl in the referenced documents.
This mean to have to transform from the driver (master document), in order to
get output. This is not good since people sometimes what to take it one piece
at a time. In addition there is the overhead of turning Forrest validation
off for these documents.
XInclude is the way forward. Since it solves these problems. Seems that this
should be listed as a major bug in Forrest. What do you think?
The problem here is that the sources must be transformable under forrest and
under any other publishing tool chain. IMHO, this is the way it should be.
<comment>Forrest is a good idea, unfortunately it seems to have deviated from
the standards in places and only partially implements them.</comment>
>
> Some time later I recieved a grant from IBM to build a system for
> building learning objects. This project (http://www.burrokeet.org) is
> now around half way through and is starting to produce real results. One
> of which will be of grat help to you.
Wow, what a find! Thanks.
>
> As you know I have been working on a plugin system for Forrest. The
> first plugin I have built for this replaces site.xml and tabs.xml with
> an IMSManifest file (this is the equivalent of site.xml for a SCORM1.2
> learning object). One of the functions of this plugin is that you can
> include content from one content object in another.
>
> Now, this is alpha code and has some problems (i.e. there is some
> hardcoded path information in the XMaps and xsl), however, it does work.
> I have used it for all the courses I have developed and we use it within
> Burrokeet itself.
>
> So, my advice to you would be forget XInclude and use this new plugin (
> I am hoping to merge the branch with trunk tomorrow). There is even a
> graphical editor you can use to create your IMSManifest :-).
Yes. I have been watching the sitemap-plugins branch. I have not tried it,
time is the problem. Perhaps I should have, but I expected xi:include to work
in forrest. I will take another look at it and try to implement it. Tough I
am not sure about the "hardcoding". I understand why you have done it
though :-)
--
Sean Wheller
Technical Author
sean@inwords.co.za
http://www.inwords.co.za
Re: Test Zone for new Forrest Sample Site
Posted by Ross Gardler <rg...@apache.org>.
Sean Wheller wrote:
> Hi,
>
> Here is a test site that will eventually be hosted at
> http://learnlinux.tsf.org.za. All content except the FAQ's are Docbook 4.3.
>
> The test zone URL is http://www.inwords.co.za/site/index.html
>
> Please check the courses section to see an example of the problem with
> XInclude.
>
I'm afraid I cannot address the problem you are having with XIncludes,
but I do have a useful suggestion. First a little background:
Some time ago I tried to do exactly what you were doing, that is
XInclude content in course materials. I wanted to reuse content from one
course in another (I guess this is what you are doing). I ran into many
limitiations of the XInclude handling in Cocoon itself and eventually
dropped the whole thing for cut and paste and careful management
(deadlines and all that).
Some time later I recieved a grant from IBM to build a system for
building learning objects. This project (http://www.burrokeet.org) is
now around half way through and is starting to produce real results. One
of which will be of grat help to you.
As you know I have been working on a plugin system for Forrest. The
first plugin I have built for this replaces site.xml and tabs.xml with
an IMSManifest file (this is the equivalent of site.xml for a SCORM1.2
learning object). One of the functions of this plugin is that you can
include content from one content object in another.
Now, this is alpha code and has some problems (i.e. there is some
hardcoded path information in the XMaps and xsl), however, it does work.
I have used it for all the courses I have developed and we use it within
Burrokeet itself.
So, my advice to you would be forget XInclude and use this new plugin (
I am hoping to merge the branch with trunk tomorrow). There is even a
graphical editor you can use to create your IMSManifest :-).
Ross