cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From koen_pellegr...@inventivedesigners.com
Subject Re: sitemap
Date Mon, 29 Jul 2002 14:15:19 GMT

If you pasted your file literally, then the error is obvious. Bokning.xml
has a space between the initial question-mark and the 'xml' target
<? xml version="1.0", should be  <?xml version="1.0" (the question-mark has
to be glued to the word 'xml' .

Do you use an XML-aware editor to edit these files? 'cause that might help
prevent such obvious errors...

Koen.



                                                                                         
                             
                    Conny Pemfors                                                        
                             
                    <conny.pemfors@ua        To:     cocoon-dev@xml.apache.org        
                                
                    rda.lu.se>               cc:                                      
                                
                                             Subject:     Re: sitemap                    
                             
                    29-07-02 16:02                                                       
                             
                    Please respond to                                                    
                             
                    cocoon-dev                                                           
                             
                                                                                         
                             
                                                                                         
                             




Hi here is the Bokning.xml

<? xml version="1.0" encoding="UTF-8" ?>
<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: <koen_pellegrims@inventivedesigners.com>
To: <cocoon-dev@xml.apache.org>
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:
cocoon-dev@xml.apache.org
>                     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: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org






---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message