W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > April 2009

RE: xquery and c:data

From: <Toman_Vojtech@emc.com>
Date: Fri, 10 Apr 2009 01:53:58 -0400
Message-ID: <6E216CCE0679B5489A61125D0EFEC7870F2732B3@CORPUSMX10A.corp.emc.com>
To: <public-xml-processing-model-comments@w3.org>
> Toman_Vojtech@emc.com writes:
> > The same applies also to p:validate-with-relax-ng.
> 
> I don't think that's the same thing. A RELAX NG grammar is an XML
> document. The p:validate-with-relax-ng step just has a special case
> for users who need/want to pass the standard, but non-XML, compact
> syntax format to the step.

What I meant is that p:validate-with-relax-ng says the same as p:xquery
used to say:

"If the root element of the schema is c:data or has a c:content-type
attribute that specifies a text content type or a media type that the
implementation recognizes, then the step should treat the text node
descendants of the element as a [RELAX NG Compact Syntax] document for
validation."

What happens if I specify a non-XML, non-text content type via
c:content-type or c:data/content-type? I guess that should be an error?

Regards,
Vojtech
Received on Friday, 10 April 2009 05:54:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 10 April 2009 05:54:53 GMT