xsl-list
[Top] [All Lists]

RE: [xsl] Re: Is an XPath processor responsible for catching misspelled tag names when there is an associated Schema?

2008-02-22 07:37:56

I am disappointed that detection of mispelled tag names 
cannot be done entirely within XPath expression, and that 
features from the host language must be used.

Well, XPath relies on the host language to establish the context, so at the
very least, it's the host language's responsibility to say what schema
components are present in the context. Assuming this has been done, then you
can indeed say: 

   count(/(Book treat as schema-element(Book))/Authr)


But I doubt somehow that many people will do so.

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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--