cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Guillard <pguill...@soociety.com>
Subject XML:DB logicsheet
Date Tue, 27 Apr 2004 09:21:47 GMT
Hi all,

I need to use a XML:DB logicsheet from XSP (for Xindice/Exist no
preference). I tried to follow this wiki :
http://wiki.cocoondev.org/Wiki.jsp?page=XindiceLogicsheet
and get "java.lang.RuntimeException: Namespace for prefix 'xmldb' has
not been declared."
I also can't find the logicsheet used in XML:DB samples on cvs 2.1.5,
mentioned as namespace xmlns:x="http://apache.org/cocoon/xmldb/1.0"
in file /samples/xmldb/xmldb2samples.xsl

Help!Any idea ?


Phil


PS : What i did for exist:

xmldb.xsl
------------
I discovered that other builtin logicsheets are not defined in
WEB-INF/classes but in :
/opt/cocoon-2.1.5-devxmldb/build/cocoon-2.1.5-dev/classes/org/apache/cocoon/components/language/markup/xsp/java
&
/opt/cocoon-2.1.5-devxmldb/src/java/org/apache/cocoon/components/language/markup/xsp/java

so i've copied xmldb.xsl from exist distrib there.
 
in cocoon.xconf :
-----------------
      <target-language name="java">
        <!-- Defines the XSP Core logicsheet for the Java language -->
        <parameter name="core-logicsheet"
value="resource://org/apache/cocoon/components/language/markup/xsp/java/xsp.xsl"/>

    <builtin-logicsheet>
      <parameter name="prefix" value="xmldb"/>
      <parameter name="uri" value="http://exist-db.org/xmldb/1.0"/>
      <parameter name="href"
value="resource://org/apache/cocoon/components/language/markup/xsp/java/xmldb.xsl"/> 
    </builtin-logicsheet>


My XSP page :
------------
<xsp:page xmlns:xsp="http://apache.org/xsp"
          xmlns:xmldb="http://exist-db.org/xmldb/1.0"
>
<document>
    <body>
        <section title="View document">
            
        
        <xmldb:collection uri="xmldb:exist:///db/shakespeare/plays">
            <xml-source>
                <xmldb:get-document encoding="ISO-8859-1" as="xml">
                     <xmldb:name>document</xmldb:name>
                </xmldb:get-document>
            </xml-source> 
        </xmldb:collection>
        </section>
    </body>
</document>
</xsp:page>

Exception
----------
"java.lang.RuntimeException: Namespace for prefix 'xmldb' has not been
declared."


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message