cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sharat Koya <sxk...@Cs.Nott.AC.UK>
Subject output to XHTML
Date Wed, 07 Nov 2001 09:21:09 GMT
Hi, I'm a bit of a beginner at cocoon and have been playing about with the
XML - XSL - HTML setup on cocoon. I have ran into a problem though. I would
like to output to XHTML. I relaise xsl:output doesn't work in cocoon but I'm
having the problem that <?cocoon-format type="text/xhtml"?> doesnt seem to
want to work in the style sheet to give me a XHTML doctype. Instead it gives
me a HTML one. Anyone any ideas?

Bobby Koya

<?xml version="1.0"?>
<?cocoon-format type="text/xhtml"?>
<xsl:stylesheet version="1.0"

<xsl:strip-space elements="doc chapter section"/>

<xsl:template match="doc">
       <xsl:value-of select="title"/>



<?xml version="1.0"?>
<?xml-stylesheet href="test.xhtml.xsl" type="text/xsl"?>
<?cocoon-process type="xslt"?>
<title>Document Title</title>
<title>Chapter Title</title>
<title>Section Title</title>
<para>This is a test.</para>
<note>This is a note.</note>
<title>Another Section Title</title>
<para>This is <emph>another</emph> test.</para>
<note>This is another note.</note>

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message