forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cyriaque Dupoirieux <Cyriaque.Dupoiri...@pcotech.fr>
Subject [[use of a xconf variable]
Date Thu, 08 Jun 2006 08:26:34 GMT
Hi,

    I want to add a variable to configure the doctype.

At the moment we have in the dispatcher internal.xmap :
      <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
          </doctype-system>
        <encoding>UTF-8</encoding>
        <indent>yes</indent>
        <omit-xml-declaration>yes</omit-xml-declaration>
      </map:serializer>

And I want to change it into :
      <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>{project:doctype-public}</doctype-public>
        <doctype-system>{project:doctype-system}
          </doctype-system>*
        <encoding>UTF-8</encoding>
        <indent>yes</indent>
        <omit-xml-declaration>yes</omit-xml-declaration>
      </map:serializer>

The variables {project:doctype-public} and {project:doctype-system} have 
been declared in the forrest-core.xconf :
        <doctype-public>@project.doctype-public@</doctype-public>
        <doctype-system>@project.doctype-system@</doctype-system>

And the forrest.properties contains :
    # Definition of the doctype...
    project.doctype-public=-//W3C//DTD XHTML 1.0 Transitional//EN
    
project.doctype-system=http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd

But it does not work...
Did I miss something ?

-- 
Salutations,
Cyriaque,

Mime
View raw message