[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Re: Output validation with XSLT 2.0
On 05/05/2008, Michael Kay <mike@xxxxxxxxxxxx> wrote: > > The "xs" namespace is a bit odd in that it's known to > > processors, like the "xsl" namespace, but unlike the xsl > > namespace it makes it into the result tree and requires pruning. > > > The reason for this: if the "xs" namespace had been excluded by default, we > would have had do something special for users who want to generate something > like <d xsi:type="xs:date"/>. If it was excluded by default, could you not override that by explicitly declaring it - for example on the output root element? But then you'd need to declare it twice if you really wanted it in the output... Or perhaps use namespace-alias, just like when you really need the xsl namespace in the output. Either way not great, but maybe preferable to have to work a bit harder in the special case, rather then every time for every transform. -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|