Mailing List Archive

Using the navigation page for org.apache.forrest.plugin.input.Daisy
Hi,



I am trying to use the Daisy plugin to publish content from a Daisy site
via Forrest.



I started by creating a dummy project



Per the instructions on the location map, I added the following match to
the sitemap.xmap file associated with my project:



<map:match pattern="locationmap-project.xml">

<map:generate
src="http://localhost:9263/publisher/blob?documentId=1-DSY&amp;version=l
ive&amp;partType=10"/>

<map:transform
src="{forrest:plugins}/org.apache.forrest.plugin.input.Daisy/resources/s
tylesheets/navigation-to-locationmap.xsl">

<map:parameter name="publisherURL"
value="http://localhost:9263/publisher/"/>

<map:parameter name="pathPrefix" value="/"/>

</map:transform>

<map:serialize type="xml"/>

</map:match>



This differs from the instructions in two ways. First, I do not embed
the username/password, that syntax seemed to fail. Second the partType
for navigation is 10, not the 1 given in the example.







The navigation document is 2-DSY, so I created a site.xml containing the
following:



<site label="MyProj" href=""
xmlns="http://apache.org/forrest/linkmap/1.0"
xmlns:xi="http://www.w3.org/2001/XInclude" tab="">

<xi:include href="cocoon://2.daisy.navigation"/>

</site>



When I run "forrest site" I get the following broken link:



<link message="Resource not found: cocoon://1.daisy.navigation"
uri="linkmap.html">

</link>



I assume I'm setting something up incorrectly?



Michael

The information transmitted herewith is sensitive information of Chordiant Software or its customers and is intended only for use to the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon, this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.
Re: Using the navigation page for org.apache.forrest.plugin.input.Daisy [ In reply to ]
Michael Toback wrote:
> I am trying to use the Daisy plugin to publish content from a Daisy site
> via Forrest.


It looks to me like you are using the latest SVN head version of Forrest
but using the docs from the website (which represent the latest
published version of the plugin.

The docs ones bundled with the source are up to date (I think).

cd FORREST_HOME
cd whiteboard/plugins/org.apache.forrest.plugin.input.Daisy
forrest run
http://localhost:8888

If you still hit problems let us know. In fact, if it works well for you
let us know and we'll release a 0.9-dev snapshot version of the plugin
and thus update the online docs.

Ross
RE: Using the navigation page for org.apache.forrest.plugin.input.Daisy [ In reply to ]
When I install forrest 0.8 on a separate machine and download the 0.8
version of the plugin (from the forrest.apache.org/plugins/ site) I get
the following error on running http://localhost:8888/

Could not find component for role:
[org.apache.cocoon.components.modules.input.InputModule/project]
(Key=&apos;org.apache.cocoon.components.modules.input.InputModule/projec
t&apos;)

Get the same error when installing the SVN plugin and run "Forrest run"

-----Original Message-----
From: Ross Gardler [mailto:rgardler@apache.org]
Sent: Tuesday, June 24, 2008 4:06 AM
To: user@forrest.apache.org
Subject: Re: Using the navigation page for
org.apache.forrest.plugin.input.Daisy

Michael Toback wrote:
> I am trying to use the Daisy plugin to publish content from a Daisy
site
> via Forrest.


It looks to me like you are using the latest SVN head version of Forrest

but using the docs from the website (which represent the latest
published version of the plugin.

The docs ones bundled with the source are up to date (I think).

cd FORREST_HOME
cd whiteboard/plugins/org.apache.forrest.plugin.input.Daisy
forrest run
http://localhost:8888

If you still hit problems let us know. In fact, if it works well for you

let us know and we'll release a 0.9-dev snapshot version of the plugin
and thus update the online docs.

Ross
The information transmitted herewith is sensitive information of Chordiant Software or its customers and is intended only for use to the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon, this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.
RE: Using the navigation page for org.apache.forrest.plugin.input.Daisy [ In reply to ]
Hi Ross,

Thanks for your help.

Maybe I should start from the beginning?

We want to be able to take content from a Daisy repository and publish
it through Forrest.

1. How do I set up the http request? By looking in the index.xml in the
plugin documentation, I think it would be this:

<map:match pattern="locationmap-project.xml">
<map:generate
src="http://user:password@localhost:9263/publisher/blob?documentId=NAVIG
ATION-DOCUMENT-ID&amp;version=live&amp;partType=1"/>
<map:transform
src="{forrest:plugins}/org.apache.forrest.plugin.input.Daisy/resources/s
tylesheets/navigation-to-locationmap.xsl">
<map:parameter name="publisherURL"
value="http://username:password@localhost:9263/publisher/"/>
<map:parameter name="pathPrefix" value="/"/>
</map:transform>
<map:serialize type="xml"/>
</map:match>

Do I have to change NAVIGATION-DOCUMENT-ID to the navigation document
number? Or is it number + namespace??

2. If I'm not using content other than daisy, do I need a site xml file?

3. Where do I run forrest from for a daisy site?? I was guessing
<DaisyRoot>\WikiData\sites\<site_name>

4. Do I need to seed a daisy site? Or do I need to change some
properties file so it knows to use the daisy plugin?
The information transmitted herewith is sensitive information of Chordiant Software or its customers and is intended only for use to the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon, this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.
Re: Using the navigation page for org.apache.forrest.plugin.input.Daisy [ In reply to ]
Michael Toback wrote:
>
> Maybe I should start from the beginning?
>
> We want to be able to take content from a Daisy repository and publish
> it through Forrest.
>
> 1. How do I set up the http request? By looking in the index.xml in the
> plugin documentation, I think it would be this:
>
> <map:match pattern="locationmap-project.xml">
> <map:generate
> src="http://user:password@localhost:9263/publisher/blob?documentId=NAVIG
> ATION-DOCUMENT-ID&amp;version=live&amp;partType=1"/>
> <map:transform
> src="{forrest:plugins}/org.apache.forrest.plugin.input.Daisy/resources/s
> tylesheets/navigation-to-locationmap.xsl">
> <map:parameter name="publisherURL"
> value="http://username:password@localhost:9263/publisher/"/>
> <map:parameter name="pathPrefix" value="/"/>
> </map:transform>
> <map:serialize type="xml"/>
> </map:match>
>
> Do I have to change NAVIGATION-DOCUMENT-ID to the navigation document
> number? Or is it number + namespace??
>
> 2. If I'm not using content other than daisy, do I need a site xml file?
>
> 3. Where do I run forrest from for a daisy site?? I was guessing
> <DaisyRoot>\WikiData\sites\<site_name>
>
> 4. Do I need to seed a daisy site? Or do I need to change some
> properties file so it knows to use the daisy plugin?

It sounds like you have not understood the basics of Forrest.
In a new directory, somewhere away from the Forrest sources,
type:
forrest seed-basic
This gives you a very minimal seed site with all the
configuration files.
forrest run
Have a look around, tweak things, see the effect.

In your forrest.properties file, add "Daisy" as another
required plugin. Now you can start to build up your
Daisy-based Forrest project.

Get ideas from Forrest's Daisy Plugin website, as Ross suggested.
This is a simple Forrest project site that demonstrates the
capabilities. See its configuration files, especially the
forrest.properties* files and the locationmap.xmap files.
If you are using the current SVN trunk of Forrest (0.9-dev)
then 'cd $FORREST_HOME/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy'.
You can do 'forrest run' there to see the demo in action.
You would need to change the port number for your own
Forrest project to be able to run the both at once.
Search the FAQ for "jetty.port".

Get other ideas from Apache Cocoon's use of Forrest/Daisy
for their v2.1 docs.
http://svn.apache.org/repos/asf/cocoon/whiteboard/daisy-to-docs
See escpecially the forrest.properties* files and the
src/documentation/locationmap-daisy-include.xml file.

Daisy is in the "whiteboard", so we really should be discussing
it on the Forrest "dev" mailing list.

By the way, please do not append disclaimers to your email footers.
They have no bearing in a public forum.

-David
Re: Using the navigation page for org.apache.forrest.plugin.input.Daisy [ In reply to ]
Michael Toback wrote:
> When I install forrest 0.8 on a separate machine and download the 0.8
> version of the plugin (from the forrest.apache.org/plugins/ site) I get
> the following error on running http://localhost:8888/
>
> Could not find component for role:
> [org.apache.cocoon.components.modules.input.InputModule/project]
> (Key=&apos;org.apache.cocoon.components.modules.input.InputModule/projec
> t&apos;)

That's not an error, it's a warning (see the start of the line). You can
ignore this.

I see you have provided more detail elsewhere. I'll reply later in the
thread (unless David has covered everything).

Ross

> Get the same error when installing the SVN plugin and run "Forrest run"
>
> -----Original Message-----
> From: Ross Gardler [mailto:rgardler@apache.org]
> Sent: Tuesday, June 24, 2008 4:06 AM
> To: user@forrest.apache.org
> Subject: Re: Using the navigation page for
> org.apache.forrest.plugin.input.Daisy
>
> Michael Toback wrote:
>> I am trying to use the Daisy plugin to publish content from a Daisy
> site
>> via Forrest.
>
>
> It looks to me like you are using the latest SVN head version of Forrest
>
> but using the docs from the website (which represent the latest
> published version of the plugin.
>
> The docs ones bundled with the source are up to date (I think).
>
> cd FORREST_HOME
> cd whiteboard/plugins/org.apache.forrest.plugin.input.Daisy
> forrest run
> http://localhost:8888
>
> If you still hit problems let us know. In fact, if it works well for you
>
> let us know and we'll release a 0.9-dev snapshot version of the plugin
> and thus update the online docs.
>
> Ross
> The information transmitted herewith is sensitive information of Chordiant Software or its customers and is intended only for use to the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon, this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.
Re: Using the navigation page for org.apache.forrest.plugin.input.Daisy [ In reply to ]
David,

I have no control over what my company does with their e-mail after I hit
the submit button, but to make you happy I created this account :-)

I have been successful at following the directions and starting a new
project including the Daisy plugin. It appears to be working, but not
displaying any documents in the process. I have identified the following
issues:

1. What I have observed is that the *
http://svn.apache.org/repos/asf/cocoon/whiteboard/daisy-to-docs*<http://svn.apache.org/repos/asf/cocoon/whiteboard/daisy-to-docs>
does
not return any documents either, or I just can't figure out what URL to hit.


2. Hitting http://localhost (I set jetty port to 80, thank you for that)
gets me http://localhost/index.html which then fails because the project HAS
no index.xml or html

3. This same project references a variable called daisy.index.docID. My
Daisy expert knows what a navigation page is, but has no clue what an index
page is.

Michael
Re: Using the navigation page for org.apache.forrest.plugin.input.Daisy [ In reply to ]
michael toback wrote:

>
> I have been successful at following the directions and starting a new
> project including the Daisy plugin. It appears to be working, but not
> displaying any documents in the process. I have identified the following
> issues:
>
> 1. What I have observed is that the
> _http://svn.apache.org/repos/asf/cocoon/whiteboard/daisy-to-docs_ does
> not return any documents either, or I just can't figure out what URL to
> hit.

http://svn.apache.org/repos/asf/cocoon/whiteboard/daisy-to-docs/ works
put fine for me.

>
> 2. Hitting http://localhost <http://localhost/> (I set jetty port to 80,
> thank you for that) gets me http://localhost/index.html which then fails
> because the project HAS no index.xml or html

If you seeded using 'forrest seed' or another seed command then you do
have an index.xml file. Of course if you've been setting up the Daisy
plugin then it may be looking in daisy for it. It is hard to debug
without dainty on this issue.

Can you please confirm you can run Forrest when it is reading local
files, then try and get it working using the Dairy plugin -documenting
each change you make.

Also please confirm the version of Forrest you are using.

> 3. This same project references a variable called daisy.index.docID. My
> Daisy expert knows what a navigation page is, but has no clue what an
> index page is.

It's the Daisy ID of the document that is to act as the index document,
i.e. http://localhost/index.html

Ross