atom feed42 messages in org.w3.www-tagRe: PIs considered harmful Was: XML...
FromSent OnAttachments
Tim BrayFeb 6, 2002 8:42 pm 
David OrchardFeb 6, 2002 10:00 pm 
Jacek KopeckyFeb 7, 2002 3:02 am 
Elliotte Rusty HaroldFeb 7, 2002 4:14 am 
Elliotte Rusty HaroldFeb 7, 2002 4:17 am 
Elliotte Rusty HaroldFeb 7, 2002 4:28 am 
Elliotte Rusty HaroldFeb 7, 2002 4:51 am 
Tim BrayFeb 7, 2002 10:12 am 
Tim BrayFeb 7, 2002 10:13 am 
Piotr KaminskiFeb 8, 2002 4:34 am 
Tim Berners-LeeFeb 12, 2002 12:03 pm 
Paul PrescodFeb 12, 2002 2:21 pm 
Norman WalshFeb 12, 2002 2:29 pm 
Dan ConnollyFeb 12, 2002 2:33 pm 
Simon St.LaurentFeb 12, 2002 3:05 pm 
Simon St.LaurentFeb 12, 2002 3:46 pm 
Martin DuerstFeb 12, 2002 4:00 pm 
Jacek KopeckyFeb 13, 2002 4:53 am 
Norman WalshFeb 13, 2002 7:00 am 
Jacek KopeckyFeb 13, 2002 7:40 am 
Elliotte Rusty HaroldFeb 13, 2002 8:07 am 
Norman WalshFeb 13, 2002 8:14 am 
Jacek KopeckyFeb 13, 2002 10:05 am 
Paul PrescodFeb 13, 2002 10:27 am 
MURATA MakotoFeb 13, 2002 6:12 pm 
Rick JelliffeFeb 13, 2002 11:38 pm 
Norman WalshFeb 14, 2002 6:07 am 
Jun FujisawaFeb 16, 2002 5:44 am 
Tim Berners-LeeFeb 22, 2002 7:56 am 
Eric van der VlistFeb 22, 2002 8:07 am 
Eric van der VlistFeb 23, 2002 1:23 am 
Piotr KaminskiFeb 23, 2002 3:18 am 
Elliotte Rusty HaroldFeb 23, 2002 9:06 am 
Paul PrescodFeb 23, 2002 9:31 am 
Eric van der VlistFeb 23, 2002 12:01 pm 
Piotr KaminskiFeb 23, 2002 3:47 pm 
Elliotte Rusty HaroldFeb 23, 2002 4:26 pm 
Piotr KaminskiFeb 23, 2002 5:21 pm 
Elliotte Rusty HaroldFeb 23, 2002 7:36 pm 
Tim Berners-LeeMar 4, 2002 11:40 am 
Tim Berners-LeeMar 4, 2002 1:14 pm 
Rick JelliffeMar 25, 2002 7:00 am 
Subject:Re: PIs considered harmful Was: XML-SW, a thought experiment
From:Piotr Kaminski (pio@ideanest.com)
Date:Feb 23, 2002 3:47:47 pm
List:org.w3.www-tag

Elliotte Rusty Harold wrote:

A PI can contain essentially arbitrary XML except for other PIs

That's interesting, I didn't know. However, I think my original point still stands. If you're using PIs to make DC annotations, how would you "annotate the annotations" so to speak if nested PIs are not permitted?

Eric van der Vlist suggested:

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.

But wouldn't that completely defeat the original point of the PIs, which was that they're "outside" the scope of validation? So what happens if I now inherit an unmodifiable schema that specifies what PIs are allowed where -- how do I add the custom new PIs necessary for my application? I think we've come full circle. :-)

My suggestion, though it's probably not practical: Specify any processing instructions in your own XML vocabulary in a separate file, linking it to the original through appropriate XPath expressions. When processing, you need to specify the original file and any additional processing instruction file(s). A smart parser could probably integrate the instructions into the primary XML stream on the fly, if desired.

Advantages: You can validate both the original document and the PI document, each to their own schema. Your PIs can take advantage of all XML features. A single document can have many sets of PIs for different purposes, even from the same namespace/vocabulary.

Disadvantages: Multiple files. Hand-editing gets ugly/impossible. Needs customized parsers to make it transparent.

-- P.