W3C home > Mailing lists > Public > www-tag@w3.org > February 2002

Re: PIs considered harmful Was: XML-SW, a thought experiment

From: Eric van der Vlist <vdv@dyomedea.com>
Date: Sat, 23 Feb 2002 21:02:10 +0100
Message-ID: <3C77F542.50809@dyomedea.com>
To: "'www-tag'" <www-tag@w3.org>
Elliotte Rusty Harold wrote:
> At 3:19 AM -0800 2/23/02, Piotr Kaminski wrote:
> 
> 
>>So what happens if you need processing instructions for your metadata --
>>nested PIs?  How do you validate your DC PIs against a schema?  What if
>>you want to indicate the author of the DC annotations?

> A PI can contain essentially arbitrary XML except for other PIs, so 
> there's no real limit to the structure here. You could put, for 
> example, an entire RDF document inside a PI and then pass it to an 
> XML parser to build a separate tree.  YOu could validate this XML in 
> the same way you'd validate any other XML.

Sounds great, thanks for this reminder!

I'd add that even though current schema languages have chosen to ignore 
PIs and comments, there is no reason why a XML Schema language couldn't 
validate (ie, check that they follow certain patterns and are included 
at certain locations in a document) them if there was a need for such a 
validation.

Actually, it should already be possible to do some validation on PIs 
with Schematron.

Eric
-- 
See you in Seattle.
                                        http://knowledgetechnologies.net/
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
http://xsltunit.org      http://4xt.org           http://examplotron.org
------------------------------------------------------------------------
Received on Saturday, 23 February 2002 15:02:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:47:04 GMT