cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Heinicke (JIRA) <j...@apache.org>
Subject [jira] Commented: (COCOON-1928) Add the ability to pass the doctype in parameter for Serializer
Date Wed, 11 Oct 2006 14:04:21 GMT
    [ http://issues.apache.org/jira/browse/COCOON-1928?page=comments#action_12441464 ] 
            
Jörg Heinicke commented on COCOON-1928:
---------------------------------------

> Doctype is configurable right now, see Cocoon samples

Of course it is. But I wondered why he wants to make even the configuration configurable with
the parameter substitution. That's why I called it FS.

> Because the core of forrest - an internal plugin exactly... - defines the serializer
with ...

I don't know how Forrest works internally, but does Forrest provide other extension mechanisms?
Have you asked on the Forrest list for possibilities?

> Another mistake is to confuse properties substitution in cocoon 2.2 (using ${} syntax)
with sitemap variable substitution (using {} syntax).

That probably results from Forrest already being based on Cocoon 2.2?

> What do you mean by include XML entities?

<!DOCTYPE root [
        <!ENTITY dtPublic SYSTEM "file://doctype-public.xml">
        <!ENTITY dtSystem SYSTEM "file://doctype-system.xml">
]

<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">
        &dtPublic;
        &dtSystem;
        <encoding>UTF-8</encoding>
        <indent>yes</indent>
        <omit-xml-declaration>no</omit-xml-declaration>
</map:serializer>

with doctype-public.xml:

<doctype-public> -//W3C//DTD XHTML 1.0 Strict//EN </doctype-public>

and doctype-system.xml:

<doctype-system> http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd </doctype-system>

And so both files could be used as configuration.

Jörg

> Add the ability to pass the doctype in parameter for Serializer
> ---------------------------------------------------------------
>
>                 Key: COCOON-1928
>                 URL: http://issues.apache.org/jira/browse/COCOON-1928
>             Project: Cocoon
>          Issue Type: New Feature
>          Components: * Cocoon Core
>    Affects Versions: 2.2-dev (Current SVN)
>            Reporter: Cyriaque Dupoirieux
>            Priority: Minor
>         Attachments: AbstractTextSerializer.diff
>
>
> I need - with forrest - to get the doctype-system and doctype-public in a parameter like
following :
> <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">
>         <parameter name="doctype-public" value="-//W3C//DTD XHTML 1.0 Transitional//EN"
/>
>         <parameter name="doctype-system" value="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
/>
>         <encoding>UTF-8</encoding>
>         <indent>yes</indent>
> 	<omit-xml-declaration>no</omit-xml-declaration>
> </map:serializer>
> here is a patch which apply to the AbstractTextSerializer.
> in case the doctype is also found in the childs, child have priority.
> Regards,

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message