You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Brian Minchau (JIRA)" <xa...@xml.apache.org> on 2004/11/11 18:46:24 UTC

[jira] Created: (XALANJ-1989) Support for DOM Level 3 XPath APIs for an XML parser

Support for DOM Level 3 XPath APIs for an XML parser
----------------------------------------------------

         Key: XALANJ-1989
         URL: http://nagoya.apache.org/jira/browse/XALANJ-1989
     Project: XalanJ2
        Type: New Feature
    Reporter: Brian Minchau


This feature is opened to track support for the DOM Level 3 XPath APIs.
See http://www.w3.org/TR/2004/NOTE-DOM-Level-3-XPath-20040226/

The support is intended only for use by an XML parser.

An XML parser should create an instance of an object that implements the interface  org.w3c.dom.xpath.XPathEvaluator.  The implementation of this interface should be provided by a particular class, such as XPathEvaluatorImpl. The XML parser should created an instance of this class but refer to the created object through a reference as an XPathEvalutor object. The XPathEvaluator and other objects obtained through this interface should also to be refered to via the vendor neutral references:

org.w3c.dom.xpath.XPathException
org.w3c.dom.xpath.XPathEvaluator
org.w3c.dom.xpath.XPathExpression
org.w3c.dom.xpath.XPathNSResolver
org.w3c.dom.xpath.XPathResult
org.w3c.dom.xpath.XPathNamespace




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Closed: (XALANJ-1989) Support for DOM Level 3 XPath APIs for an XML parser

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XALANJ-1989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Minchau closed XALANJ-1989.
---------------------------------


closing this issue.

> Support for DOM Level 3 XPath APIs for an XML parser
> ----------------------------------------------------
>
>                 Key: XALANJ-1989
>                 URL: https://issues.apache.org/jira/browse/XALANJ-1989
>             Project: XalanJ2
>          Issue Type: New Feature
>            Reporter: Brian Minchau
>             Fix For: 2.7.1
>
>         Attachments: Support_For_DOM3_XPath.txt, Support_For_DOM3_XPath.version2.txt
>
>
> This feature is opened to track support for the DOM Level 3 XPath APIs.
> See http://www.w3.org/TR/2004/NOTE-DOM-Level-3-XPath-20040226/
> The support is intended only for use by an XML parser.
> An XML parser should create an instance of an object that implements the interface  org.w3c.dom.xpath.XPathEvaluator.  The implementation of this interface should be provided by a particular class, such as XPathEvaluatorImpl. The XML parser should created an instance of this class but refer to the created object through a reference as an XPathEvalutor object. The XPathEvaluator and other objects obtained through this interface should also to be refered to via the vendor neutral references:
> org.w3c.dom.xpath.XPathException
> org.w3c.dom.xpath.XPathEvaluator
> org.w3c.dom.xpath.XPathExpression
> org.w3c.dom.xpath.XPathNSResolver
> org.w3c.dom.xpath.XPathResult
> org.w3c.dom.xpath.XPathNamespace

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-1989) Support for DOM Level 3 XPath APIs for an XML parser

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XALANJ-1989?page=history ]

Brian Minchau updated XALANJ-1989:
----------------------------------

    Attachment: Support_For_DOM3_XPath.version2.txt

> Support for DOM Level 3 XPath APIs for an XML parser
> ----------------------------------------------------
>
>          Key: XALANJ-1989
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-1989
>      Project: XalanJ2
>         Type: New Feature
>     Reporter: Brian Minchau
>  Attachments: Support_For_DOM3_XPath.txt, Support_For_DOM3_XPath.version2.txt
>
> This feature is opened to track support for the DOM Level 3 XPath APIs.
> See http://www.w3.org/TR/2004/NOTE-DOM-Level-3-XPath-20040226/
> The support is intended only for use by an XML parser.
> An XML parser should create an instance of an object that implements the interface  org.w3c.dom.xpath.XPathEvaluator.  The implementation of this interface should be provided by a particular class, such as XPathEvaluatorImpl. The XML parser should created an instance of this class but refer to the created object through a reference as an XPathEvalutor object. The XPathEvaluator and other objects obtained through this interface should also to be refered to via the vendor neutral references:
> org.w3c.dom.xpath.XPathException
> org.w3c.dom.xpath.XPathEvaluator
> org.w3c.dom.xpath.XPathExpression
> org.w3c.dom.xpath.XPathNSResolver
> org.w3c.dom.xpath.XPathResult
> org.w3c.dom.xpath.XPathNamespace

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-1989) Support for DOM Level 3 XPath APIs for an XML parser

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-1989?page=all ]

Brian Minchau updated XALANJ-1989:
----------------------------------

    Fix Version: 2.7

> Support for DOM Level 3 XPath APIs for an XML parser
> ----------------------------------------------------
>
>          Key: XALANJ-1989
>          URL: http://issues.apache.org/jira/browse/XALANJ-1989
>      Project: XalanJ2
>         Type: New Feature
>     Reporter: Brian Minchau
>      Fix For: 2.7
>  Attachments: Support_For_DOM3_XPath.txt, Support_For_DOM3_XPath.version2.txt
>
> This feature is opened to track support for the DOM Level 3 XPath APIs.
> See http://www.w3.org/TR/2004/NOTE-DOM-Level-3-XPath-20040226/
> The support is intended only for use by an XML parser.
> An XML parser should create an instance of an object that implements the interface  org.w3c.dom.xpath.XPathEvaluator.  The implementation of this interface should be provided by a particular class, such as XPathEvaluatorImpl. The XML parser should created an instance of this class but refer to the created object through a reference as an XPathEvalutor object. The XPathEvaluator and other objects obtained through this interface should also to be refered to via the vendor neutral references:
> org.w3c.dom.xpath.XPathException
> org.w3c.dom.xpath.XPathEvaluator
> org.w3c.dom.xpath.XPathExpression
> org.w3c.dom.xpath.XPathNSResolver
> org.w3c.dom.xpath.XPathResult
> org.w3c.dom.xpath.XPathNamespace

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-1989) Support for DOM Level 3 XPath APIs for an XML parser

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XALANJ-1989?page=comments#action_55408 ]
     
Brian Minchau commented on XALANJ-1989:
---------------------------------------

I just attached 
    Support_For_DOM3_XPath.version2.txt
which is a minor rework of Yash's patch. 

I added a little javadoc and I changed the use of XSLMessage.createXPATHMessage() to its super class org.apache.xpath.res.XPATHMessages.  However the same message services are called underneath due to inheritance.

I've reviewed the patch and it looks OK to me.

> Support for DOM Level 3 XPath APIs for an XML parser
> ----------------------------------------------------
>
>          Key: XALANJ-1989
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-1989
>      Project: XalanJ2
>         Type: New Feature
>     Reporter: Brian Minchau
>  Attachments: Support_For_DOM3_XPath.txt, Support_For_DOM3_XPath.version2.txt
>
> This feature is opened to track support for the DOM Level 3 XPath APIs.
> See http://www.w3.org/TR/2004/NOTE-DOM-Level-3-XPath-20040226/
> The support is intended only for use by an XML parser.
> An XML parser should create an instance of an object that implements the interface  org.w3c.dom.xpath.XPathEvaluator.  The implementation of this interface should be provided by a particular class, such as XPathEvaluatorImpl. The XML parser should created an instance of this class but refer to the created object through a reference as an XPathEvalutor object. The XPathEvaluator and other objects obtained through this interface should also to be refered to via the vendor neutral references:
> org.w3c.dom.xpath.XPathException
> org.w3c.dom.xpath.XPathEvaluator
> org.w3c.dom.xpath.XPathExpression
> org.w3c.dom.xpath.XPathNSResolver
> org.w3c.dom.xpath.XPathResult
> org.w3c.dom.xpath.XPathNamespace

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-1989) Support for DOM Level 3 XPath APIs for an XML parser

Posted by "Joe Kesselman (JIRA)" <xa...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XALANJ-1989?page=comments#action_55364 ]
     
Joe Kesselman commented on XALANJ-1989:
---------------------------------------

Apologies for the proofreading glitch in that note -- Meant to say "we want to facilitate the use of Xalan to provide...". (Until XML exploded, I never realized there were so darned many words starting with X!)

> Support for DOM Level 3 XPath APIs for an XML parser
> ----------------------------------------------------
>
>          Key: XALANJ-1989
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-1989
>      Project: XalanJ2
>         Type: New Feature
>     Reporter: Brian Minchau

>
> This feature is opened to track support for the DOM Level 3 XPath APIs.
> See http://www.w3.org/TR/2004/NOTE-DOM-Level-3-XPath-20040226/
> The support is intended only for use by an XML parser.
> An XML parser should create an instance of an object that implements the interface  org.w3c.dom.xpath.XPathEvaluator.  The implementation of this interface should be provided by a particular class, such as XPathEvaluatorImpl. The XML parser should created an instance of this class but refer to the created object through a reference as an XPathEvalutor object. The XPathEvaluator and other objects obtained through this interface should also to be refered to via the vendor neutral references:
> org.w3c.dom.xpath.XPathException
> org.w3c.dom.xpath.XPathEvaluator
> org.w3c.dom.xpath.XPathExpression
> org.w3c.dom.xpath.XPathNSResolver
> org.w3c.dom.xpath.XPathResult
> org.w3c.dom.xpath.XPathNamespace

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-1989) Support for DOM Level 3 XPath APIs for an XML parser

Posted by "Joe Kesselman (JIRA)" <xa...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XALANJ-1989?page=comments#action_55361 ]
     
Joe Kesselman commented on XALANJ-1989:
---------------------------------------

Sanity-check: Describing this as a parser-support API might be misleading.

The DOM3 XPath Working Note says "In a DOM implementation which supports the XPath 3.0 feature, as described above, the XPathEvaluator interface will be implemented on the same object which implements the Document interface" -- but that is not intended to preclude creating stand-alone implementations of XPathEvaluator for use with any DOM (whether it has built-in support for that feature or not).

So: While we want to facilitate the use of Xylem to provide built-in XPath support for DOM implementations, we probably also want to provide a stand-alone XPathEvaluator wrapper.


> Support for DOM Level 3 XPath APIs for an XML parser
> ----------------------------------------------------
>
>          Key: XALANJ-1989
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-1989
>      Project: XalanJ2
>         Type: New Feature
>     Reporter: Brian Minchau

>
> This feature is opened to track support for the DOM Level 3 XPath APIs.
> See http://www.w3.org/TR/2004/NOTE-DOM-Level-3-XPath-20040226/
> The support is intended only for use by an XML parser.
> An XML parser should create an instance of an object that implements the interface  org.w3c.dom.xpath.XPathEvaluator.  The implementation of this interface should be provided by a particular class, such as XPathEvaluatorImpl. The XML parser should created an instance of this class but refer to the created object through a reference as an XPathEvalutor object. The XPathEvaluator and other objects obtained through this interface should also to be refered to via the vendor neutral references:
> org.w3c.dom.xpath.XPathException
> org.w3c.dom.xpath.XPathEvaluator
> org.w3c.dom.xpath.XPathExpression
> org.w3c.dom.xpath.XPathNSResolver
> org.w3c.dom.xpath.XPathResult
> org.w3c.dom.xpath.XPathNamespace

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Resolved: (XALANJ-1989) Support for DOM Level 3 XPath APIs for an XML parser

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XALANJ-1989?page=history ]
     
Brian Minchau resolved XALANJ-1989:
-----------------------------------

    Resolution: Fixed

The updated patch was committed to CVS head branch by myself.

> Support for DOM Level 3 XPath APIs for an XML parser
> ----------------------------------------------------
>
>          Key: XALANJ-1989
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-1989
>      Project: XalanJ2
>         Type: New Feature
>     Reporter: Brian Minchau
>  Attachments: Support_For_DOM3_XPath.txt, Support_For_DOM3_XPath.version2.txt
>
> This feature is opened to track support for the DOM Level 3 XPath APIs.
> See http://www.w3.org/TR/2004/NOTE-DOM-Level-3-XPath-20040226/
> The support is intended only for use by an XML parser.
> An XML parser should create an instance of an object that implements the interface  org.w3c.dom.xpath.XPathEvaluator.  The implementation of this interface should be provided by a particular class, such as XPathEvaluatorImpl. The XML parser should created an instance of this class but refer to the created object through a reference as an XPathEvalutor object. The XPathEvaluator and other objects obtained through this interface should also to be refered to via the vendor neutral references:
> org.w3c.dom.xpath.XPathException
> org.w3c.dom.xpath.XPathEvaluator
> org.w3c.dom.xpath.XPathExpression
> org.w3c.dom.xpath.XPathNSResolver
> org.w3c.dom.xpath.XPathResult
> org.w3c.dom.xpath.XPathNamespace

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Commented: (XALANJ-1989) Support for DOM Level 3 XPath APIs for an XML parser

Posted by "Yash Talwar (JIRA)" <xa...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XALANJ-1989?page=comments#action_55375 ]
     
Yash Talwar commented on XALANJ-1989:
-------------------------------------

Hi Joe,
The DOM3 XPath Working Note says 
"In a DOM implementation which supports the XPath 3.0 feature, as described above, the XPathEvaluator interface will be implemented on the same object which implements the Document interface permitting it to be obtained by the usual binding-specific method such as casting or by using the DOM Level 3 getInterface method"


Section 1.3.6  DOM Features at link http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#DOMFeatures
discuss the ways to check if a feature is available.

In DOM L3 XPath Support in Xalan, if XPathEvaluator and Document interfaces are not implemented on same object, then following will return false:

Document doc;
DOMImplementation impl = doc.getImplementation();
if (impl.hasFeature("XPath" , "3.0")  // hasFeature returns false.

{
	XPathEvaluator evaluator = (XPathEvaluator) doc;  // This cast will not work;
     // do something
}

In our implementation for DOM L3 XPath Support, the above code test will return false.  In Xalan, XPathEvaluator and Document interfaces will not be implemented by same object.

However, a user can do the following test:

Document doc;
DOMImplementation impl = doc.getImplementation();
if (impl.hasFeature("+XPath" , "3.0")  // hasFeature returns false.

{
	XPathEvaluator evaluator = (XPathEvaluator) impl.getFeature("XPath", "3.0");
	//do something
}


The later test will work if parser that implements DOM LEVEL 3 Specs. and relies on Xalan for DOM L3 XPath Support.  In this case, parser needs to create an instance of implementation class of XPathEvaluator and return a reference back to user.



> Support for DOM Level 3 XPath APIs for an XML parser
> ----------------------------------------------------
>
>          Key: XALANJ-1989
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-1989
>      Project: XalanJ2
>         Type: New Feature
>     Reporter: Brian Minchau

>
> This feature is opened to track support for the DOM Level 3 XPath APIs.
> See http://www.w3.org/TR/2004/NOTE-DOM-Level-3-XPath-20040226/
> The support is intended only for use by an XML parser.
> An XML parser should create an instance of an object that implements the interface  org.w3c.dom.xpath.XPathEvaluator.  The implementation of this interface should be provided by a particular class, such as XPathEvaluatorImpl. The XML parser should created an instance of this class but refer to the created object through a reference as an XPathEvalutor object. The XPathEvaluator and other objects obtained through this interface should also to be refered to via the vendor neutral references:
> org.w3c.dom.xpath.XPathException
> org.w3c.dom.xpath.XPathEvaluator
> org.w3c.dom.xpath.XPathExpression
> org.w3c.dom.xpath.XPathNSResolver
> org.w3c.dom.xpath.XPathResult
> org.w3c.dom.xpath.XPathNamespace

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-1989) Support for DOM Level 3 XPath APIs for an XML parser

Posted by "Yash Talwar (JIRA)" <xa...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XALANJ-1989?page=history ]

Yash Talwar updated XALANJ-1989:
--------------------------------

    Attachment: Support_For_DOM3_XPath.txt

Here is the patch for DOM L3 XPath Support.

> Support for DOM Level 3 XPath APIs for an XML parser
> ----------------------------------------------------
>
>          Key: XALANJ-1989
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-1989
>      Project: XalanJ2
>         Type: New Feature
>     Reporter: Brian Minchau
>  Attachments: Support_For_DOM3_XPath.txt
>
> This feature is opened to track support for the DOM Level 3 XPath APIs.
> See http://www.w3.org/TR/2004/NOTE-DOM-Level-3-XPath-20040226/
> The support is intended only for use by an XML parser.
> An XML parser should create an instance of an object that implements the interface  org.w3c.dom.xpath.XPathEvaluator.  The implementation of this interface should be provided by a particular class, such as XPathEvaluatorImpl. The XML parser should created an instance of this class but refer to the created object through a reference as an XPathEvalutor object. The XPathEvaluator and other objects obtained through this interface should also to be refered to via the vendor neutral references:
> org.w3c.dom.xpath.XPathException
> org.w3c.dom.xpath.XPathEvaluator
> org.w3c.dom.xpath.XPathExpression
> org.w3c.dom.xpath.XPathNSResolver
> org.w3c.dom.xpath.XPathResult
> org.w3c.dom.xpath.XPathNamespace

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org