RE: [xml-dev] What is declarative XML? (And what's not)

From
Michael Kay <>
To
"'Costello, Roger L.'" <>,
Date
2009-06-02T23:23:34Z
ID
<B229E9FAA5DF42D6861ED25CA8AEEEA0@Sealion>
Thread
RE: [xml-dev] What is declarative XML? (And what's not)
> Alan Danziger wrote:
> 
> > Passive documents specify information but do not specify in-band or 
> > out-of-band anything about how that information should be used.
> 
> > Active documents contains in-band or out-of-band processing 
> rules for 
> > its use.
> 
> Ah ha!
> 
> So there are discernable differences in XML documents.

No, that doesn't follow. If the information is out-of-band, then it's not
discernable and is not a difference in the document, it's a difference in
the way it is used.
> 
> Assertion: declarativity is a quality that is good and 
> desirable and should be maximized.
> 
> Assertion: passivity is a quality that is good and desirable 
> and should be maximized.
> 
> Assertion: by measuring its declarativity and passivity we 
> can assess the goodness of an XML document. 
> 
> Assertion: the goodness of an XML document is a function of 
> its declarativity and passivity.
> 

I think you're completely off target here. It all depends what the document
is for. If you're trying to say that a document containing an instruction to
move $1000 from account A to account B is bad because it's active and
procedural, then I would say that's nonsense. Or at any rate, I would say
"why is it bad?".

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay