----- Original Message -----
From: "Johannes Schwarz" <[EMAIL PROTECTED]>
To: ">" <<[EMAIL PROTECTED]>
Sent: Thursday, December 06, 2001 8:05 AM
Subject: send absolute path of xml document via param in sitemap


> Hi list!
>
>
> I want something like that in my sitemap
> to have access to the absolute path of my xml file in my stylesheet.
>
>   <map:match pattern="xml/*">
>      <map:generate type="file" src="docs/{1}.xml"/>
>      <map:transform src="stylesheets/tabelle-fo.xsl">
>             <map:parameter name="absolutepath" value="??????"/>
>      </map:transform>
>      <map:serialize type="html"/>
>   </map:match>
>
>
>
> At the question marks i want to include the absolute path of the xml -
> document, which is generated the step before.

First:       do you *really* need the absolute path? Why?
Second:  if you really want to hard-code a path you can do:

   <map:match pattern="xml/*">
      <map:generate type="file" src="docs/{1}.xml"/>
      <map:transform src="stylesheets/tabelle-fo.xsl">
             <map:parameter name="absolutepath"
value="file:///hardcodedpathofwebapp/docs/{1}.xml"/>
      </map:transform>
      <map:serialize type="html"/>
   </map:match>

Nicola Ken Barozzi These are the days of miracle and wonder...
                              ...so don't cry baby, don't cry
<[EMAIL PROTECTED]> Paul Simon




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to