You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by g4 <ja...@root10.net> on 2003/08/26 15:06:03 UTC
XHTML 1.1
Hi list,
I'm running a validation against a project and I get this returned:
Error at URL
"file:/Users/g4/xml-forrest/cd/src/documentation/sitemap.xmap", line
number 82, column number 25: element "doctype-public" not allowed in
this context
Error at URL
"file:/Users/g4/xml-forrest/cd/src/documentation/sitemap.xmap", line
number 83, column number 25: element "doctype-system" not allowed in
this context
Error at URL
"file:/Users/g4/xml-forrest/cd/src/documentation/sitemap.xmap", line
number 84, column number 19: element "encoding" not allowed in this
context
I have tried to introduce a DTD of XHTML 1.1.
In the site map I have:
<map:serializer name="xhtml" mime-type="text/xml"
src="org.apache.cocoon.serialization.XMLSerializer">
<omit-xml-declaration>no</omit-xml-declaration>
<doctype-public>-//W3C//DTD XHTML 1.1//EN</doctype-public>
<doctype-system>http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd</doctype-
system>
<encoding>UTF-8</encoding>
</map:serializer>
What am I missing here? Is my DTD .def even right?
Many thanks
Jason Lane
Jason Lane
Developer
Root10 developments
Re: XHTML 1.1
Posted by g4 <ja...@root10.net>.
On Tuesday, Aug 26, 2003, at 14:06 Europe/London, g4 wrote:
Sorry list problem solved, it seems that the
<omit-xml-declaration>no</omit-xml-declaration> must be omited ;)
> Hi list,
>
> I'm running a validation against a project and I get this returned:
>
> Error at URL
> "file:/Users/g4/xml-forrest/cd/src/documentation/sitemap.xmap", line
> number 82, column number 25: element "doctype-public" not allowed in
> this context
> Error at URL
> "file:/Users/g4/xml-forrest/cd/src/documentation/sitemap.xmap", line
> number 83, column number 25: element "doctype-system" not allowed in
> this context
> Error at URL
> "file:/Users/g4/xml-forrest/cd/src/documentation/sitemap.xmap", line
> number 84, column number 19: element "encoding" not allowed in this
> context
>
>
> I have tried to introduce a DTD of XHTML 1.1.
>
> In the site map I have:
>
>
> <map:serializer name="xhtml" mime-type="text/xml"
> src="org.apache.cocoon.serialization.XMLSerializer">
> <omit-xml-declaration>no</omit-xml-declaration>
> <doctype-public>-//W3C//DTD XHTML 1.1//EN</doctype-public>
>
> <doctype-system>http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd</doctype-
> system>
> <encoding>UTF-8</encoding>
> </map:serializer>
>
> What am I missing here? Is my DTD .def even right?
>
>
> Many thanks
>
> Jason Lane
>
>
> Jason Lane
>
> Developer
> Root10 developments
>
>
>
Jason Lane
Developer
Root10 developments