cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <>
Subject RE: Impossible to use reader as source of XSLT?
Date Wed, 07 Jan 2004 04:07:31 GMT
 I am getting my stylesheets from LDAP using a source resolver that I wrote.
I believe you could do the same thing with a database. I haven't tried it
myself, but you might investigate using the Blob source.


-----Original Message-----
Sent: 1/6/2004 7:21 PM
Subject: Impossible to use reader as source of XSLT?


I have a problem. I want to use transformer, it gets XSL stylesheets not
filesystem, but from database. As some good mind advised, I used
protocol to call another pipeline with databasereader, which returns 
appropriate XSL stylesheet. But cocoon reports: "Streaming of an
pipeline is not possible with a reader."

Source fragment of sitemap is here:

<map:match pattern="*/html/*/*/*.html">
 <map:generate type="serverpages" src="logic/main.xsp">
 <map:parameter name="language" value="{2}"/>
 <map:parameter name="format" value="html"/>
 <map:parameter name="subweb" value="{1}"/>
 <map:parameter name="id" value="{4}"/>
 <map:parameter name="content" value="{3}"/>
<map:transform src="cocoon:/{1}/html/{2}/stylesheet/0"/>
<map:serialize type="html"/>


<map:match pattern="*/*/*/stylesheet/*">
<map:read type="databasereader" src="{1}" mime-type="text/xml">
 <map:parameter name="table" value="subweb s, article a, article_version
article_version_format avf, format f, language l"/>
 <map:parameter name="image" value="v.body"/>
 <map:parameter name="key" value=""/>
 <map:parameter name="where" value=" and
and and and'{2}' and and'{3}'"/>

What I'm doing wrong? Thanks for answer!

Otmar Vobejda

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message