yes of course i can post my sitemap :

this is my sitemap.xmap, the part of pipeline is at the botom.




<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0";>
  <map:components>
    <map:generators default="file">
      <map:generator name="file"
src="org.apache.cocoon.generation.FileGenerator"/>
    </map:generators>
    <map:transformers default="xslt">
      <map:transformer name="xslt"
src="org.apache.cocoon.transformation.TraxTransformer"/>
    </map:transformers>
    <map:readers default="resource">
      <map:reader name="resource"
src="org.apache.cocoon.reading.ResourceReader"/>
    </map:readers>
    <map:serializers default="html">
      <map:serializer mime-type="text/xml" name="xml"
src="org.apache.cocoon.serialization.XMLSerializer"/>
      <map:serializer mime-type="text/html" name="html"
src="org.apache.cocoon.serialization.HTMLSerializer"/>
      <map:serializer mime-type="image/png" name="svg2png"
src="org.apache.cocoon.serialization.SVGSerializer"/>
      <map:serializer mime-type="application/pdf"
name="fo2pdf"
src="org.apache.cocoon.serialization.FOPSerializer"/>
      <map:serializer logger="sitemap.serializer.xhtml"
        mime-type="text/html" name="xhtml" pool-grow="2"
pool-max="64"
        pool-min="2"
src="org.apache.cocoon.serialization.XMLSerializer">
        <doctype-public>-//W3C//DTD XHTML 1.0
Strict//EN</doctype-public>
       
<doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</docty
pe-system>
        <encoding>UTF-8</encoding>
      </map:serializer>
    </map:serializers>
    <map:matchers default="wildcard">
      <map:matcher name="wildcard"
src="org.apache.cocoon.matching.WildcardURIMatcher"/>
    </map:matchers>
  </map:components>
  <map:pipelines>
    <map:pipeline>
      <map:match pattern="*.xhtml">
        <map:generate src="content/{1}.xml"/>
        <map:transform src="transforms/simple-page2html.xsl"/>
        <map:serialize type="xhtml"/>
      </map:match>
    </map:pipeline>
    <map:pipeline>
      <map:match pattern="*.html">
        <map:generate src="content/{1}.xml"/>
        <map:transform src="transforms/simple-page2html.xsl"/>
        <map:serialize type="html"/>
      </map:match>
    </map:pipeline>
  </map:pipelines>
</map:sitemap>



so with the configuration on the top of this sentence all xhtml
documents are treated normaly and all HTML document aren't treated
normaly

but with this simple modification : 

<map:pipelines>
    
    <map:pipeline>
      <map:match pattern="*.html">
        <map:generate src="content/{1}.xml"/>
        <map:transform src="transforms/simple-page2html.xsl"/>
        <map:serialize type="html"/>
      </map:match>
    </map:pipeline>


<map:pipeline>
      <map:match pattern="*.xhtml">
        <map:generate src="content/{1}.xml"/>
        <map:transform src="transforms/simple-page2html.xsl"/>
        <map:serialize type="xhtml"/>
      </map:match>
    </map:pipeline>
  </map:pipelines>

all HTML documents are treated normaly and all XHTML aren't treated...

so what i have miss ?

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

Reply via email to