forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "HANAX" <>
Subject RE: Re: problem
Date Wed, 27 Jul 2005 22:17:01 GMT
My sitemap seems ok:
<map:sitemap xmlns:map="">
      <!-- Voice -->
      <map:match type="regexp" pattern="^(.*?)([^/]*).mxml$">
        <map:generate src="cocoon://{1}{2}.xml"/>
        <map:transform src="resources/stylesheets/document2mxml.xsl"/>
        <map:serialize type="xml"/>

line from for loading plugin seems ok too

And I got this one:
<?xml version="1.0" encoding="ISO-8859-1"?>
        This demo site has many examples. See the menu at the left.
        The sources for these examples are in the directory
        The sources for the Apache Forrest website are also included
        in your distribution at $FORREST_HOME/site-author/
      You can also extend the functionality of Forrest via
      these will often come with more samples for you to out.

This I mean as plaintext. But it's weird that when I change anything in my .xsl file it does
nothing... no change... it seems that my stylesheet is not used at all... :(

The second thing: I have external grammar in .jsgf file. I need to use it in .xsl. So I ask
which path I should use and how to make that the .jsgf file will be copied to buided site
when plugins takes its job. Example:

<vxml:grammar src="..\Grammars\simple.jsgf"/>
So after site builging I need to have simple.jsgf in Grammars folder next to my index.mxml
file. How to make this? Is that path ok or should I use different path? How to tell forrest
"copy this file from here to there when you are buiding"?

Od: "Ross Gardler" <>
Predmet: Re: problem
Dátum/Čas: 27. 7. 2005 23:10:55

> HANAX wrote:
> > Yesterday I made some progress and I've got fine results with my plugin But this
morning I've turn-on computer and for some reason scandisk started. Then I found that my 
> plugin don't work. My .xsl file remains was unchanged as well as output.xmap. But instead
of vociexml output I've got plaintext form of page.. I've rebuilt but no errors... 
> Where can be the problem? 
> What are the included plugins in your file?
> Do you have a project specific sitemap?
> What are you requesting that gives you plain text?
> What, exactly, do you mean by plain text (a small snippet giving an 
> example may help).
> > And another question... I want to include grammars from external file. What I need
to write in plugin code to be able distribute specific files from plugin folder to site 
> folder? 
> Please describe your use case with some concrete examples of what you 
> are trying to do. The question is too general (at least for me) to 
> understand what you are trying to achieve.
> Ross

View raw message