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

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

From: Elliotte Rusty Harold <elharo@metalab.unc.edu>
Date: Sat, 23 Feb 2002 12:06:45 -0500
Message-Id: <p04330100b89d7c3aa5a4@[192.168.254.4]>
To: "'www-tag'" <www-tag@w3.org>
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.
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|          The XML Bible, 2nd Edition (Hungry Minds, 2001)           |
|              http://www.ibiblio.org/xml/books/bible2/              |
|   http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.ibiblio.org/xml/     |
+----------------------------------+---------------------------------+
Received on Saturday, 23 February 2002 12:57:03 GMT

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