After digging into this a bit more, I suspect that this does not work because the JAXP validation framework implementation used does not support DTD validation.

This is not obvious from the documentation, because the higher level docs document an abstract interface, and note all of the known possible values, not just those
currently implemented by the lower levels.

[ So I'm doing validation from flowscript instead. ]

-- Steve Majewski



On Jan 24, 2008, at 12:27 PM, Steven D. Majewski wrote:

I'm trying to use the ValidatingTransformer & ValidationReportTransformer from
the validation block in cocoon 2.1.10 .

Does a grammar have to be specified in the sitemap to use DTDs as the schema ?

What is the proper grammar specifier ?

I've tried using <grammar>http://www.w3.org/TR/REC-xml</grammar>
as well as trying  'Validator.GRAMMAR_XML_DTD'  and 'GRAMMAR_XML_DTD'
and they all result in the error:

org.apache.cocoon.components.validation.ValidatorException: Unsupported grammar language


With no <grammar> defined, I get:

        java.net.MalformedURLException: Invalid System ID


( I also tried using the DTD URL in the src attribute for the transformer, and I get: org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed. but at that point, I'm just flailing around trying to figure out what's wrong. )


How do you use this block to validate against a DTD ?


-- Steve Majewski / UVA Alderman Library


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to