cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Madu" <andrewm...@gmail.com>
Subject Re: Xhtml and Ajax...no go!!
Date Sat, 10 Mar 2007 10:14:18 GMT
Hi Jason,
sorry for the delay. I am using the


Let's clarify... which XHTML serializer are you using?  The "built-in"
> one, or the one in the serializers block?



I am using the XHTML serializer in the serializers block:

<map:serializer logger="sitemap.serializer.xhtml" mime-type="text/html"
name="xhtml" pool-max="${xhtml-serializer.pool-max}" 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
</doctype-system>
      <encoding>ISO-8859-1</encoding>
      <omit-xml-declaration>yes</omit-xml-declaration>
    </map:serializer>

And here is my ajax-request block:

            <map:match pattern="**viewform-*.xml">
                <map:generate type="newjx" src="jx/{2}.jx"/>
                <map:transform type="cinclude"/>
                <map:transform type="xslt-saxon" src="style/{2}.xsl"/>
                <map:transform type="cinclude"/>
                <map:transform type="browser-update"/>
                <map:transform type="i18n">
                  <map:parameter name="locale" value="en-US"/>
                </map:transform>
                <map:transform src="template-style/forms-samples-styling.xsl
"/>
                <map:transform type="i18n">
                  <map:parameter name="locale" value="en-US"/>
                </map:transform>
                <map:select type="ajax-request">
                  <map:when test="true">
                    <map:serialize type="xml"/>
                  </map:when>
                  <map:otherwise>
                    <map:serialize type="xhtml"/>
                  </map:otherwise>
                </map:select>
            </map:match>


What in-built xhtml serializer do you refer to?

--
Regards

Andrew

Mime
View raw message