OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] XPath/XSLT 2.0 concerns

[ Lists Home | Date Index | Thread Index ]

Too true, I'm sure many others can't wait to write template matches like


<xsl:template match="ipo:shipTo[. instance of element of type
ipo:USAddress]/ipo:state[. instance of element of type ipo:USState]" />

instead of 

<xsl:template match="ipo:shipTo/ipo:state" />

because of the gains of schema aware processing

-- 
PITHY WORDS OF WISDOM 
The meek shall inherit the Earth....if that's all right with the rest of
you.          

This posting is provided "AS IS" with no warranties, and confers no
rights. 

>  
>  
> -----Original Message-----
> From: Michael Kay [mailto:michael.h.kay@ntlworld.com] 
> Sent: Wednesday, October 02, 2002 11:47 AM
> To: 'Mike Champion'
> Cc: xml-dev@lists.xml.org
> 
> > But we're talking about XPath/XQuery here ... not arguing whether 
> > type-aware schema validation is a Good Thing to have or not.  Is it 
> > worth the weight on XPath?  I haven't heard a compelling argument. 
> > XSLT???  There doesn't seem to be a compelling case.
> 
> Well, the more I think about it, the more I think that people 
> are actually using match patterns as a sort of "structural 
> type detection"
> mechanism. People write template rules that say "when I get 
> one of these, do this", and they are defining "one of these" 
> by means of a pattern that is in effect a type. Now very 
> often there's a one-to-one mapping between these types and 
> element names, so the patterns are very simple. But I think 
> that once people are dealing with really large vocabularies, 
> constructing the patterns in terms of element names gets more 
> and more difficult, and being able to match against types at 
> different levels of a type hierarchy gets more and more valuable.
> 
> Michael Kay
> Software AG
> home: Michael.H.Kay@ntlworld.com
> work: Michael.Kay@softwareag.com 
> 
> 
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org 
> <http://www.xml.org>, an initiative of OASIS 
> <http://www.oasis-open.org>
> 
> The list archives are at http://lists.xml.org/archives/xml-dev/
> 
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>
> 
> 




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS