W3C home > Mailing lists > Public > public-powderwg@w3.org > April 2008

Re: XSLT question

From: Stasinos Konstantopoulos <konstant@iit.demokritos.gr>
Date: Mon, 21 Apr 2008 14:57:34 +0300
To: Phil Archer <parcher@icra.org>
Cc: Public POWDER <public-powderwg@w3.org>
Message-ID: <20080421115734.GD27088@iit.demokritos.gr>

My suggestion in this, and similar, situations is to never try to get
smart with the XSLT transforms, because that's an unnecessary complexity
that is, sooner or late, going to come back and bite us. Gratuitous
unions and intersections do no harm, and make it easier to validate the
XSLT as there are fewer cases and combinations to check.

A human directly writing in POWDER-S is welcome to optimize it, we never
promised that it can get transformed into POWDER/XML anyway. 

s


On Mon Apr 21 12:50:28 2008 Phil Archer said:

>
> I guess this is mostly for Kevin but anyone's free to chime in ;-)
>
> [...]
>
> Assuming this is right, here's the question - can the XSLT work out  
> whether or not the unionOf is necessary so that where there is only one  
> IRI set (i.e. 99% of the time) it can drop the unionOf properties? Or  
> will we often have a union of 1? The same goes for the IRI sets  
> themselves where in many examples we have intersections of a single  
> property restriction.
>
> Basically I guess it's a trade-off between processing complexity and  
> redundant data. So which wins? (and remember, it's 12st April already...)
>
> Phil.
Received on Monday, 21 April 2008 11:58:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:42:12 GMT