cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: [RT] The perfect repository might be just under your eyes
Date Tue, 15 Jul 2003 20:03:20 GMT

On Tuesday, Jul 15, 2003, at 13:49 America/Guayaquil, Tony Collen wrote:

> Stefano Mazzocchi wrote:
>
> <snip-cool-stuff/>
>
>> changes the content of the node! right from the command line. You can 
>> use symlinks to share content between your document!!! you can have 
>> ACL at the node level!!! just write an xgrep and you are able to do 
>> xpath searches from the command line! just add an XML parser and you 
>> are able to do something like
>> cat xhtml.dtd > /document/@schema
>> and when you save your stuff as /document, the file system will 
>> trigger an error if the file is not valid!
>> Imagine all the stuff that you can do with this! and the file system 
>> can be journalled, offer node-level transactional capabilities, you 
>> name it! at right into the OS. fast fast fast!
>
> This is all really cool.. the only thing is that it assumes that all 
> files are XML.

NO! that's the beauty

  echo "application/xml" > /document/@mime-type

Voila' ;-)

Actually, even better

  echo "xml" > /document/@syntax
  echo "text/xhtml" > /document/@mime-type

because MIME is getting it all wrong with this stupid +xml by mixing 
concerns between the syntax and the semantics.

Do you see the potential?

> The obvious question is what happens when you try to do an xpath 
> expression on a file that is not XML.  Perhaps the filesystem module 
> would know enough to check for <?xml version="1.0"?> ?

ARRRRRGGGG!

>
> Lots of potential though :)  Maybe you could tie a service to a 
> virtual device.  Like /dev/xupdate or /dev/xalan, and output to > STDOUT?
>

That's much better talking, bro ;-)

--
Stefano.


Mime
View raw message