[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xml-cocoon-users
Subject:    Re: XHTML-DTD as grammar for the validation transformer
From:       "Reinhard Haller" <reinhard.haller () interactive-net ! de>
Date:       2006-06-08 19:15:21
Message-ID: s4889374.007 () fs-inter ! interactive ! de
[Download RAW message or body]


>>> reinhard.haller@interactive-net.de 07.06.2006 19:00 >>>
>What is the value to use for the xhtml-DTD (I tried the grammar
>namespace and the
>validator interface field name)?
>
>Should I prefer the xhmtl-schema for validation?

xhtml schema is not the solution. Maybe the transformer itself has
a problem:

<map:match pattern="**/*.valid">
   <map:generate src="{1}/{2}.xml" label="debug1" />
   <map:transform src="xslt/rssvalid.xslt" label="debug2" />
   <map:transform type="validation-report" 
     
src="http://www.w3.org/TR/2006/PR-xhtml-modularization-20060213/SCHEMA/xhtml11.xsd"

      label="debug3" >
   </map:transform>
   <map:serialize type="xml"/>
</map:match>

produces the following exception

org.w3c.dom.ls.LSException: Exception resolving resource null

transforming the following xhtml (output of view debug2)

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Validation</title>
</head>
<body>
<p>I recently did an interview with Network World magazine.</p>
</body>
</html>

Any suggestions?

Thanks
Reinhard




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic