You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Amaresh Wakkar <am...@uk.ibm.com> on 2003/11/28 15:24:44 UTC

Why is XSP stripping every text node of the document?? SOS

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>
 
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!!