in my xml document I have
<?XML version="1.0 encoding="UTF-8">

<Datum> 94/04/04</Datum>

why does the sax parser complain about it?

kind regards
/Conny



----- Original Message -----
From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 29, 2002 4:14 PM
Subject: RE: sitemap


> From: Conny Pemfors [mailto:[EMAIL PROTECTED]]
>
> Hi here is the Bokning.xml
>
> <? xml version="1.0" encoding="UTF-8" ?>
    ^

Space is not allowed here. Please see spec at
http://www.w3.org/TR/REC-xml


PS Sounds like this should be asked on Cocoon-user list

Vadim


> <Bokning Description="Register över bokningar.">
>     <Record>
>         <datum></datum>
>         <ftid>0</ftid>
>         <ttid>3600</ttid>
>         <Avbokning>0</Avbokning>
>         <Avvikelse>no</Avvikelse>
>         <Bokdatum>940915</Bokdatum>
>         <Extpris>no</Extpris>
>     </Record>
>  </Bokning>
>
>
> Bokning.xsl
>
> <?xml version="1.0" ?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> version="1.0">
>
>   <xsl:template match="Bokning">
>
>
>          <html>
>         <head>
>    <title>Lokal</title>
>                   </head>
>
> <body bgcolor="#447777">
>
>
> <FONT FACE="MS sans Serif">
> <xsl:text>Bokning</xsl:text>
>
>
> <xsl:apply-templates/>
>
>
>
> </FONT>
> </body>
>     </html>
>
>
>
>   </xsl:template>
> </xsl:stylesheet>
>
>
> sitemap.xmap
>
> <map:match pattern="Bokning">
>     <map:generate src="docs/Bokning.xml"/>
>     <map:transform src="stylesheets/Bokning.xsl"/>
>     <map:serialize type="html"/>
>     </map:match>
>
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 29, 2002 3:38 PM
> Subject: Re: sitemap
>
>
> >
> > Mmm, you're quite scarce with information. This is a bit like asking
"why
> > doesn't my car run anymore?". We can't help you if you don't have
the car
> > handy ;-)
> >
> > What the exception is saying is that you have a processing
instruction
> > somewhere that has no target-name.
> > This could mean you have "<?" in you xml-file without a target such
as:
> > <?xml-stylesheet ... ?>
> >
> > Could you give a bit more info as to which file you are trying to
read,
> > what stylesheets you are using, your pipelines...?
> > (where and when does the error occur?)
> >
> > Koen.
> >
> >
> >
> >
> >
> >                     Conny Pemfors
> >                     <conny.pemfors@ua        To:
> [EMAIL PROTECTED]
> >                     rda.lu.se>               cc:
> >                                              Subject:     sitemap
> >                     29-07-02 15:23
> >                     Please respond to
> >                     cocoon-dev
> >
> >
> >
> >
> >
> >
> > Why do I get following error?
> >
> >
> > message The processing instruction must begin with the name of the
target.
> >
> > description org.apache.cocoon.ProcessingException: Failed to execute
> > pipeline.: org.xml.sax.SAXParseException: The processing instruction
must
> > begin with the name of the target.
> >
> > sender org.apache.cocoon.servlet.CocoonServlet


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



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

Reply via email to