You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Katharina Weimer <ka...@gmx.de> on 2003/11/06 16:08:47 UTC
stylesheet directed termination ??
Hello,
Im getting an Stylesheet directed termination when trying to connect from
Cocoon 2.1 to exist 0.9.2 with the XMLDB Logicsheet for Cocoon.
My sitemap looks like that:
<map:match pattern="adressen">
<map:generate type="serverpages" src="TEST/xml/samples/adressen.xsp"/>
<map:transform src="stylesheets/xmldb.xsl"/>
<map:serialize type="xml"/>
..and the associated xsp:
<?xml version="1.0" encoding="iso-8859-1"?>
<xsp:page xmlns:xsp="http://apache.org/xsp"
xmlns:xmldb="http://exist-db.org/xmldb/1.0">
<document>
<body>
<section title="Datenbankabfragen">
<xml-source>
<xmldb:collection
uri="xmldb:exist//localhost:8080/exist/xmlrpc/db/addressbook">
<chapter>
<xmldb:execute>
<xmldb:path>document(*)//contacts/contact[name]</xmldb:path>
<p> Found <xmldb:get-hit-count/> hits </p>
<xmldb:results>
<xmldb:get-xml as="string"/>
</xmldb:results>
</xmldb:execute>
</chapter>
</xmldb:collection>
</xml-source>
</section>
</body>
</document>
</xsp:page>
Anybody an idea what I did wrong?
Greetz,
Katharina
ps: Has anybody a working example for the XMLDBTransformer ? I was trying
the one shipped with eXist, but somehow it didn't work...
--
HAKUNA MATATA !!!
NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien...
Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService
Jetzt kostenlos anmelden unter http://www.gmx.net
+++ GMX - die erste Adresse für Mail, Message, More! +++
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: stylesheet directed termination ??
Posted by Joerg Heinicke <jh...@virbus.de>.
"stylesheet directed termination" means there is a <xsl:message
terminate="yes"> anywhere in your stylesheet xmldb.xsl.
Joerg
Katharina Weimer wrote:
> Hello,
>
> I’m getting an “Stylesheet directed termination” when trying to connect from
> Cocoon 2.1 to exist 0.9.2 with the XMLDB Logicsheet for Cocoon.
>
> My sitemap looks like that:
>
> <map:match pattern="adressen">
> <map:generate type="serverpages" src="TEST/xml/samples/adressen.xsp"/>
> <map:transform src="stylesheets/xmldb.xsl"/>
> <map:serialize type="xml"/>
>
>
> ..and the associated xsp:
>
> <?xml version="1.0" encoding="iso-8859-1"?>
> <xsp:page xmlns:xsp="http://apache.org/xsp"
> xmlns:xmldb="http://exist-db.org/xmldb/1.0">
> <document>
> <body>
> <section title="Datenbankabfragen">
> <xml-source>
> <xmldb:collection
> uri="xmldb:exist//localhost:8080/exist/xmlrpc/db/addressbook">
> <chapter>
> <xmldb:execute>
> <xmldb:path>document(*)//contacts/contact[name]</xmldb:path>
> <p> Found <xmldb:get-hit-count/> hits </p>
> <xmldb:results>
> <xmldb:get-xml as="string"/>
> </xmldb:results>
> </xmldb:execute>
> </chapter>
> </xmldb:collection>
> </xml-source>
> </section>
> </body>
> </document>
> </xsp:page>
>
> Anybody an idea what I did wrong?
>
> Greetz,
> Katharina
>
> ps: Has anybody a working example for the XMLDBTransformer ? I was trying
> the one shipped with eXist, but somehow it didn't work...
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org