<?xml version="1.0"?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet href="testsheet.xsl" type="text/xsl"?>
<page>
 <title>Hello World!</title>
 <content>
  <paragraph>This is my first Cocoon page!</paragraph>
 </content>
</page>
 
the testsheet.xsl
 
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
</xsl:stylesheet>
------------------------
you don't even create a root element with your stylesheet.
create a template matching 'page' or '/':
<xsl:template match="/">
   <html>
      <body>
         <xsl:apply-templates />
      </body>
   </html>
</xsl:template>

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to