Hallo,

 

I am wrote a configuration file for configuring jTidy like that:

 

//configuration file for html Tidy

 

asxml = yes

doctyp = omit

indent = auto

numeric-entities = yes

fix-bachslash = yes

drop-font = yes

 

then I saves it as Tidyconf.txt in the same Direktory like my sitemap.xmap. My sitemap.xmap looks like below:

 

 

<?xml version="1.0"?>

 

<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">

 

  <map:components>

    <map:generators default="file">

 

      <!-- Read in XML files from a local or a remote source

           that is located via a file name or URI. -->

      <map:generator name="file"

        src="org.apache.cocoon.generation.FileGenerator"/>

 

      <!-- Read in HTML files from a local or a remote source

           that is located via a file name or URI

           and convert them into the XML dialect XHTML.

           JTidy is behind this component. -->

      <map:generator name="html"

        src="org.apache.cocoon.generation.HTMLGenerator">

        <jtidy-config>Tidyconfig.txt

        </jtidy-config>

      </map:generator>

 

    </map:generators>

 

    <map:transformers default="xslt">

   

      <!-- An xSLT processor -->

      <map:transformer name="xslt"

        src="org.apache.cocoon.transformation.TraxTransformer"/>

       

    </map:transformers>

 

    <map:serializers default="html">

 

      <!-- This component requires XHTML data as its input stream. -->

      <map:serializer name="html"

        src="org.apache.cocoon.serialization.HTMLSerializer"

        mime-type="text/html"/>

 

      <map:serializer name="xml"

        src="org.apache.cocoon.serialization.XMLSerializer"

        mime-type="text/xml"/>

 

      <!-- This component requires the XML dialect WML as its input stream.

           It is configured for the WML MIME type and DTD. -->

      <map:serializer name="wap"

        src="org.apache.cocoon.serialization.XMLSerializer"

        mime-type="text/vnd.wap.xml">

        <doctype-public>//WAPFORUM//DTD WML 1.1//EN</doctype-public>

        <doctype-system>http://www.wapforum.org/DTD/wml_1.1.xml</doctype-system>

      </map:serializer>

     

    </map:serializers>

 

    <map:matchers default="wildcard">

 

      <!-- This matcher understands wildcard symbols * and ** and matches

           against the request URI. -->

      <map:matcher name="wildcard"

        src="org.apache.cocoon.matching.WildcardURIMatcherFactory"/>

 

    </map:matchers>

   

    <map:readers default="resource">

                          <map:reader name="resource"

                            src="org.apache.cocoon.reading.ResourceReader"

                            logger="sitemap.reader.resource"

                            pool-max="32" pool-min="1" pool-grow="4"/>

                            <!-- optional reader configuration -->

              </map:readers>

 

  </map:components>

 

  <map:pipelines>

    <map:pipeline>

 

      <!-- HTML -> Dokument -> HTML -->

      <map:match type="wildcard" pattern="**.html">

        <map:generate type="html" src="http://gutenberg.spiegel.de/{1}.htm"/>

        <map:serialize type="html"/>

      </map:match>

 

      <!-- HTML -> Dokument -> WML -->

      <map:match type="wildcard" pattern="**.wml">

        <map:generate type="html" src="http://gutenberg.spiegel.de/{1}.htm"/>

        <map:transform type="xslt" src="praktikum/Stylesheet/html2dok.xsl"/>

 

        <map:transform type="xslt" src="praktikum/Stylesheet/dok2wml.xsl"/>

        <map:serialize type="wap"/>

      </map:match>

 

      <!-- HTML -> Dokument -->

      <map:match type="wildcard" pattern="**.dok">

        <map:generate type="html" src="http://gutenberg.spiegel.de/{1}.htm"/>

        <map:transform type="xslt" src="praktikum/Stylesheet/html2dok.xsl"/>

        <map:serialize type="xml"/>

      </map:match>

     

      <!-- CSS -->

                                   <map:match type="wildcard" pattern="**.css">

                                               <map:read mime-type="text/css" src="praktikum/formate.css"/>

                                   </map:match>

 

                                   <map:match pattern="*.css">

                                               <map:read type="resource"

                                                           src="praktikum/formate.css"

                                                           mime-type="text/css">

                                                           <!-- option sitemap parameters -->

                                                           ...

                                               </map:read>

                                   </map:match>

 

                                   <map:handle-errors>

                            <map:transform src="stylesheets/system/error2html.xsl"/>

                            <map:serialize status-code="500"/>

                          </map:handle-errors>

                         

            </map:pipeline>

  </map:pipelines>

</map:sitemap>

 

but I get when I want to browse it this error message: Language Exception

 

Can anybody help me please? Am I doing something wrong?

 

Many thanks,

Halgurt

 

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

Reply via email to