cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Stimmel <jon-li...@stimmel.net>
Subject Re: XSLTProcessor patch, etc...
Date Wed, 26 Apr 2000 23:05:36 GMT
On Wed, Apr 26, 2000 at 11:42:08PM +0100, Robin Green wrote:

> >In my ideal, a person could install cocoon with a standard
> >config file and just start playing with xml and stylesheets w/o first 
> >having to spend too much time learning cocoon-isms.
> 
> You can already.

Which then leads me back to my original question (paraphrased): "how?"
(or more accurately, "what have I overlooked?" =)

I've tried:

  <process uri="**/*.xml" source="/var/web/docs/**/*.xml">
    <generator name="file"/>
    <serializer name="html"/>
  </process>

Which just returns the xml document (almost) verbatim:

 <?xml-stylesheet type="text/xsl" href="resume.xsl"?><resume>
 <!-- etc... -->

I tried adding just a "<filter name="xslt"/>" to the sitemap, but that
generates an error (since I didn't specify a stylesheet). I also
tried adding:
    <filter name="xslt">
      <parameter name="stylesheet" value="/var/web/docs/**/*.xsl"/>
    </filter>
But that just complains that "/var/web/docs/**/*.xsl" doesn't exist.

The only sucessful configuration I've had is:
  <process uri="/resume/resume.xml" source="/var/web/docs/resume/resume.xml">
    <generator name="file"/>
    <filter name="xslt">
      <parameter name="stylesheet" value="/var/web/docs/resume/resume.xsl"/>
    </filter>
    <serializer name="html"/>
  </process>
But of course that requires that I specify a <process> for every
isolated pair of xml/xsl files.

I know there has to be a way to do this easily; a mechanism to honor
<?xml-stylesheet?> would be simplest (for the end-user, at least),
or has that tag been deprecated?

Mime
View raw message