Bug 286466 - [xpath2][refactor] Implement TypeInfo to determine PSVI information
Summary: [xpath2][refactor] Implement TypeInfo to determine PSVI information
Status: NEW
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xpath (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: Future   Edit
Assignee: wst.xsl-triaged CLA
QA Contact: David Carver CLA
URL:
Whiteboard:
Keywords: bugday, helpwanted
Depends on:
Blocks:
 
Reported: 2009-08-12 21:24 EDT by David Carver CLA
Modified: 2011-04-19 04:57 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Carver CLA 2009-08-12 21:24:18 EDT
Where possible the particular calls to the underlying PSVI Implementation of Xerces should be refactored out so that the implementation uses the TypeInfo interface.  This provides a more abstract and non-implementation dependent way of determining the relevant information that the processor needs for XML Schema awarness.
Comment 1 David Carver CLA 2009-09-02 15:24:34 EDT
Assigning inbox items to triaged since these have all be triaged.
Comment 2 Jesper Moller CLA 2009-12-13 17:43:46 EST
This touches up to bug 296368 (or the other way around). From what I can tell, TypeInfo doesn't give us access to the PSVI infoset and won't provide enough information to determine e.g. fn:nilled.

So, while TypeInfo is nice enough for some kinds of queries, it is not a complete solution. And while I agree that "The perfect is the enemy of the good", we should still be looking for the better solution. I've hinted at a possible solution in bug 296368.
Comment 3 David Carver CLA 2009-12-13 18:16:04 EST
(In reply to comment #2)
> This touches up to bug 296368 (or the other way around). From what I can tell,
> TypeInfo doesn't give us access to the PSVI infoset and won't provide enough
> information to determine e.g. fn:nilled.
> 
> So, while TypeInfo is nice enough for some kinds of queries, it is not a
> complete solution. And while I agree that "The perfect is the enemy of the
> good", we should still be looking for the better solution. I've hinted at a
> possible solution in bug 296368.

I agree...Ideally the Xerces-J submission to the W3C would have gone some where, but alas it didn't.   I'm open to any future design that can do a better job of separation.  As it is right now, if it can't find the PSVI interfaces, it basically just doesn't do schema awarness checking beyond the builtin types.

There is also the Abstract Schema Object Model, which the current Content Model from WTP is based on a very early draft of this specification.

http://www.w3.org/TR/DOM-Level-3-AS/Overview.html
Comment 4 David Carver CLA 2011-01-28 00:17:10 EST
Moving to the XPath component out of XSL.