cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivelin Ivanov" <ive...@apache.org>
Subject Re: [Question] sample-apps page
Date Mon, 20 May 2002 01:35:06 GMT

----- Original Message -----
From: "David Crossley" <crossley@indexgeo.com.au>
To: <cocoon-dev@xml.apache.org>
Sent: Sunday, May 19, 2002 8:24 PM
Subject: Re: [Question] sample-apps page


> Ivelin Ivanov wrote:
> > I've added a link to the XMLForm wizard in the /cocoon/sample-apps page
> > xml-cocoon2/src/webapp/docs/samples/sample-apps.xml
> >
> > In the description I wanted to add links to XForms, Schematron and
XMLForm
> > documentation,
> > however < a href> is lost during the transformation of the samples
document.
> >
> > Is this a bug, feature or am I doing things wrong?
>
> Are you looking for the link element ... <link href=".......">to
here</link>
>

This doesn't seem to have an effect for the sample-apps docuement.
Is it in the same namespace as catalog-demo?

> However, i have found difficulty linking reliably from samples
> to their documentation. We do it from the Catalog Entity Resolver demo
> xml-cocoon2/src/webapp/docs/samples/catalog/test.xml
> and the link does work. However, the path for the href makes a wild
> assumption - that the URL will always be
> /cocoon/documents/userdocs/concepts/catalog.html
> ... not necessarily so.

BTW, I am also wondering how to place an absolute link in the sitemap which
is relative to the application context path.
I was expecting that using
    <map:transform src="/stylesheets/xmlform/xmlform2html.xsl"/>
will be converted to
http://localhost:8080/cocoon/stylesheets/xmlform/xmlform2html.xsl
instead it became http://localhost:8080/stylesheets/xmlform/xmlform2html.xsl
which wasn't what I needed.
So now I use relative location which introduces dependency on the location
of the xmlform demo.
          <map:transform src="../../stylesheets/xmlform/xmlform2html.xsl"/>

What is a better solution in this case?



Ivelin


>
> Obviously there is a problem with linking the other way around too.
> You can make a link from the main documentation tree to the relevant
> sample. That will work from the Cocoon on localhost, but of course
> it results in a broken link on xml.apache.org/cocoon/
> --David
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message