cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mamadou Bobo Sylla" <b...@ewarna.com>
Subject Re: can't output text before document element
Date Fri, 07 Sep 2001 01:05:59 GMT
instead of <xsl:template match="/"> you could
try <xsl:template match="page"> and see whether this can solve the problem.

I had similar problem when I used <xsl:template match="/">, I solveed the
problem by remplacing "/" by the root element of my XML in the match
attribute of my xsl:template.

Bobo,


----- Original Message -----
From: "Tibi DONDERA" <tibidondera@hotmail.com>
To: <cocoon-users@xml.apache.org>
Sent: Thursday, September 06, 2001 8:08 PM
Subject: Re: can't output text before document element


> IMHO:
>
> You have a newline char before your <?xml ?> tag (ie it's not on the first
> line, first char of the file). That is not allowed by the xml specs.
>
>
> ----- Original Message -----
> From: "JEULIN Olivier" <olivier.jeulin@xml-ais.com>
> To: <cocoon-users@xml.apache.org>
> Sent: Thursday, September 06, 2001 11:20 AM
> Subject: RE: can't output text before document element
>
>
> > <?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: <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> >
> >
>
> ---------------------------------------------------------------------
> 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>
>


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