cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastien Koechlin <skoech...@ivision.fr>
Subject Re: Strange
Date Mon, 26 Mar 2001 16:35:31 GMT
Sandeep N Kundu wrote:
> 
> the attachments are as attached

It's not stange, you have many errors in your files:here are diff -u:

kalender.xml
============

It's not <?xml:stylesheet ...
but <?xml-stylesheet ...

You should read the FAQ about xml:stylesheet

kalender.xsl
============

You have to use :
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

 <xsl:template match="/"> 
  <xsl:processing-instruction
name="cocoon-format">type="text/html"</xsl:processing-instruction>
  <html>
   <body style="font-family:geneva,arial,helvetica, sans-serif;
font-size:12px; font-weight:normalcomic   <xsl:apply-templates/>  
   </body>
  </html>
 </xsl:template>

Your namespace declaration was wrong, and you have to tell cocoon
which formatter to use.

It's not <xsl:if match=".[@name='Februar']">
but <xsl:if test="@name='Februar'">

This is not allowed: <xsl:value-of/>
but I think you want <xsl:value-of select="."/>,
look at <xsl:copy>

You should think about making more template instead
of <xsl:for-each> nad <xsl:if>, your stylesheet will be easier
to read.


-- 
S├ębastien Koechlin - IVision - skoechlin@ivision.fr

---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message