cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Billard <obill...@rennes.jouve.fr>
Subject Re: XSP pages being rendered without the text content in the text nodes!!! SOS
Date Mon, 01 Dec 2003 09:04:55 GMT
Hi Amaresh,

I think it comes from your XSL, that doesn't propagates the content of elements.
Try with no other template than :

<xsl:template match="@*|*|text()" priority="-1">
   <xsl:copy>
     <xsl:apply-templates select="@*|*|text()"/>
   </xsl:copy>
</xsl:template>

it should work

--
Olivier Billard

On 28/11/2003 15:35, Amaresh Wakkar wrote:
> 
> Hi Everyone,
> I am using cocoon-2.1 on Win2000 with Websphere5 and WSAD(websphere 
> studio 5.0 using IBM Java 1.3.1 compatible VM).
> Basically I am trying to get a simple XSP page working..
>  
> <?xml version="1.0"?>
> <xsp:page language="java"
> xmlns:xsp="http://apache.org/xsp"
> xmlns:esql="http://apache.org/cocoon/SQL/v2"
>  >
> <page>
> <test>hello world..again..gdfgdfgdg</test>
> <content>Willskfhsfsfsdf this be displayed???bcbcbcbcbcbc</content>
> </page>
> </xsp:page>
> The sitemap entry is like this..
> <map:match pattern="xsp/test.xsp">
> <map:generate type="serverpages" src="xsp/test.xsp" />
> <!--map:transform type="xslt" src="xsl/{1}.xsl" /-->
> <map:serialize type="xml" />
> </map:match>
> 
> The result is as follows :
> <?xml version="1.0" encoding="UTF-8" ?>
> - <page xmlns:xsp="http://apache.org/xsp" 
> xmlns:xspdoc="http://apache.org/cocoon/XSPDoc/v1" 
> xmlns:esql="http://apache.org/cocoon/SQL/v2">
>   <test />
>   <content />
>   </page>
> In short I am seeing all my elements without the text content in 
> them..Please advise me if there is anything else that I need to get it 
> working??
>  
> I have tried all possible permutations of XML parsers and XSLT 
> transformers, still no joy..It is the same thing with cocoon 
> samples..Does anyone know what is the reason?? Please help me...SOS!!



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


Mime
View raw message