cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <gree...@hotmail.com>
Subject Re: Strange error
Date Tue, 24 Oct 2000 11:42:20 GMT
marco <m.spinetti@pisa.iol.it> wrote:
>I have discovered a strange mistake. I use FP to take of the text from a
>static Xml file, so I modify it, and want to rewrite it to the end. To
>use Fp I include in my Xsl file:
>
><xsl:template match="Oroscopo">
><xsl:processing-instruction
>name="cocoon-process">type="xsp"</xsl:processing-instruction>
><xsl:processing-instruction
>name="cocoon-process">type="xslt"</xsl:processing-instruction>
><xsl:processing-instruction
>name="xml-stylesheet">href="stampa25-wml.xsl"
>type="text/xsl"</xsl:processing-instruction>
><xsp:page xmlns:fp="http://apache.org/cocoon/XSP/FP/1.0"
>  xmlns:request="http://www.apache.org/1999/XSP/Request"
>  xmlns:util="http://www.apache.org/1999/XSP/Util"
>  xmlns:xsp="http://www.apache.org/1999/XSP/Core"
>  language="java"
>  >
><OROSCOPO>
><fp:resource id="oroscopo-item">
><fp:resource-file>prova25.xml</fp:resource-file>
><fp:resource-node>Oroscopo</fp:resource-node>
></fp:resource>
>
>Since I must modify the taken text I must put it in a string:
>
><xsl:when test="$sceltau='generale'">
><xsp:logic>
>String Body = (String) <fp:read select="./Generale/Descrizione"
>from="oroscopo-item" as="node"/>;

That should be as="string" not as="node"

></xsp:logic>
></xsl:when>
>
>
>  Therefore I print it in a knot of the Xml file which I am building (to
>which then apply another Xsl):
>
><CORPO>
><xsp:expr>Body</xsp:expr>
></CORPO>
>
>The problem is that when I apply the second Sheet style to print the
>content in a Wml page, in the knot "CORPO" there is nothing. Shall I do
>any mistake in FP? Does someone which can help me exist?

It looks like you are trying to reference the node

/Oroscopo/Generale/Descrizione

Maybe your node-path is incorrect. Can I see your prova25.xml file?



_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


Mime
View raw message