You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Erik Rydgren (JIRA)" <xa...@xml.apache.org> on 2005/03/16 08:33:21 UTC

[jira] Created: (XALANC-467) Possibility to install local extension functions in XPathEvaluator

Possibility to install local extension functions in XPathEvaluator
------------------------------------------------------------------

         Key: XALANC-467
         URL: http://issues.apache.org/jira/browse/XALANC-467
     Project: XalanC
        Type: Improvement
  Components: XPathC  
 Environment: All
    Reporter: Erik Rydgren
    Priority: Minor


There is no way to use local extension function when evaluating XPath through XPathEvaluator.

David N Bertoni wrote:

It sounds like we need to add a public member function to XPathEvaluator to install local extension functions.  Can you create a Jira enhancement request, so we don't loose track if it?

Thanks!

Dave


-- 
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
-
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: (XALANC-467) Possibility to install local extension functions in XPathEvaluator

Posted by "Erik Rydgren (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANC-467?page=history ]

Erik Rydgren updated XALANC-467:
--------------------------------

    Attachment: XPathEvaluator.cpp

Changes to make the local extensionfunctions have the same lifespan as the evaluator. This to allow memory allocated by a extensionfunction to be valid when a XPath result is processed.

> Possibility to install local extension functions in XPathEvaluator
> ------------------------------------------------------------------
>
>          Key: XALANC-467
>          URL: http://issues.apache.org/jira/browse/XALANC-467
>      Project: XalanC
>         Type: Improvement
>   Components: XPathC
>  Environment: All
>     Reporter: Erik Rydgren
>     Priority: Minor
>  Attachments: Changes XPathEvaluator.cpp, Changes XPathEvaluator.h, XPathEvaluator.cpp, XPathEvaluator.hpp
>
> There is no way to use local extension function when evaluating XPath through XPathEvaluator.
> David N Bertoni wrote:
> It sounds like we need to add a public member function to XPathEvaluator to install local extension functions.  Can you create a Jira enhancement request, so we don't loose track if it?
> Thanks!
> Dave

-- 
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
-
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: (XALANC-467) Possibility to install local extension functions in XPathEvaluator

Posted by "David Bertoni (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANC-467?page=comments#action_12320484 ] 

David Bertoni commented on XALANC-467:
--------------------------------------

This bug has nothing to do with the compilation error you are seeing.  You need to get the latest code from CVS to build with GCC 4.x.

> Possibility to install local extension functions in XPathEvaluator
> ------------------------------------------------------------------
>
>          Key: XALANC-467
>          URL: http://issues.apache.org/jira/browse/XALANC-467
>      Project: XalanC
>         Type: Improvement
>   Components: XPathC
>  Environment: All
>     Reporter: Erik Rydgren
>     Priority: Minor
>  Attachments: Changes XPathEvaluator.cpp, Changes XPathEvaluator.h, XPathEvaluator.cpp, XPathEvaluator.hpp
>
> There is no way to use local extension function when evaluating XPath through XPathEvaluator.
> David N Bertoni wrote:
> It sounds like we need to add a public member function to XPathEvaluator to install local extension functions.  Can you create a Jira enhancement request, so we don't loose track if it?
> Thanks!
> Dave

-- 
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] Updated: (XALANC-467) Possibility to install local extension functions in XPathEvaluator

Posted by "Erik Rydgren (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANC-467?page=history ]

Erik Rydgren updated XALANC-467:
--------------------------------

    Attachment: XPathEvaluator.hpp

Changes to make the local extensionfunctions have the same lifespan as the evaluator. This to allow memory allocated by a extensionfunction to be valid when a XPath result is processed.

> Possibility to install local extension functions in XPathEvaluator
> ------------------------------------------------------------------
>
>          Key: XALANC-467
>          URL: http://issues.apache.org/jira/browse/XALANC-467
>      Project: XalanC
>         Type: Improvement
>   Components: XPathC
>  Environment: All
>     Reporter: Erik Rydgren
>     Priority: Minor
>  Attachments: Changes XPathEvaluator.cpp, Changes XPathEvaluator.h, XPathEvaluator.hpp
>
> There is no way to use local extension function when evaluating XPath through XPathEvaluator.
> David N Bertoni wrote:
> It sounds like we need to add a public member function to XPathEvaluator to install local extension functions.  Can you create a Jira enhancement request, so we don't loose track if it?
> Thanks!
> Dave

-- 
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
-
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: (XALANC-467) Possibility to install local extension functions in XPathEvaluator

Posted by "sdettrick (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANC-467?page=comments#action_12320483 ] 

sdettrick commented on XALANC-467:
----------------------------------


Due to this issue I am unable to build Xalan-C_1_9_0 on linux Fedora core 4 with gcc 4.0.1.
So I would call the problem "catastropic".

I built xerces 2.6.0 with no errors using:
./runConfigure -plinux -cgcc -xg++ -minmem -rpthread
gmake

But then trying to build xalan-c in a similar way...
./runConfigure -plinux -cgcc -xg++
gmake
... always fails with errors about a private error function:

g++ -O2 -DNDEBUG     -fno-elide-constructors -Wall -fPIC -DLINUX -D_REENTRANT -DXALAN_INMEM_MSG_LOADER -c -I/home/sean/code/xml-xalan/c/src -I/home/sean/code/xml-xalan/c/include -I../../nls/include -I/home/sean/code/xerces-c-src_2_6_0/src/ -I/home/sean/code/xerces-c-src_2_6_0/include/xercesc -I/home/sean/code/xerces-c-src_2_6_0/include/  -o ../../obj/XPathEvaluator.o /home/sean/code/xml-xalan/c/src/xalanc/XPath/XPathEvaluator.cpp
/home/sean/code/xml-xalan/c/src/xalanc/XPath/XPathEvaluator.cpp: In member function 'xalanc_1_9::XObjectPtr xalanc_1_9::XPathEvaluator::evaluate(xalanc_1_9::DOMSupport&, xalanc_1_9::XalanNode*, const xalanc_1_9::XalanDOMChar*, const xalanc_1_9::XalanElement*)':
/home/sean/code/xml-xalan/c/src/xalanc/XPath/ElementPrefixResolverProxy.hpp:89: error: 'xalanc_1_9::ElementPrefixResolverProxy::ElementPrefixResolverProxy(const xalanc_1_9::ElementPrefixResolverProxy&)' is private
/home/sean/code/xml-xalan/c/src/xalanc/XPath/XPathEvaluator.cpp:279: error: within this context
/home/sean/code/xml-xalan/c/src/xalanc/XPath/XPathEvaluator.cpp: In member function 'xalanc_1_9::XObjectPtr xalanc_1_9::XPathEvaluator::evaluate(xalanc_1_9::DOMSupport&, xalanc_1_9::XalanNode*, const xalanc_1_9::XPath&, const xalanc_1_9::XalanElement*)':
/home/sean/code/xml-xalan/c/src/xalanc/XPath/ElementPrefixResolverProxy.hpp:89: error: 'xalanc_1_9::ElementPrefixResolverProxy::ElementPrefixResolverProxy(const xalanc_1_9::ElementPrefixResolverProxy&)' is private
/home/sean/code/xml-xalan/c/src/xalanc/XPath/XPathEvaluator.cpp:299: error: within this context
/home/sean/code/xml-xalan/c/src/xalanc/XPath/XPathEvaluator.cpp: In member function 'xalanc_1_9::XPath* xalanc_1_9::XPathEvaluator::createXPath(const xalanc_1_9::XalanDOMChar*)':
/home/sean/code/xml-xalan/c/src/xalanc/XPath/ElementPrefixResolverProxy.hpp:89: error: 'xalanc_1_9::ElementPrefixResolverProxy::ElementPrefixResolverProxy(const xalanc_1_9::ElementPrefixResolverProxy&)' is private
/home/sean/code/xml-xalan/c/src/xalanc/XPath/XPathEvaluator.cpp:348: error: within this context
/home/sean/code/xml-xalan/c/src/xalanc/XPath/XPathEvaluator.cpp: In member function 'xalanc_1_9::XPath* xalanc_1_9::XPathEvaluator::createXPath(const xalanc_1_9::XalanDOMChar*, xalanc_1_9::DOMSupport&, const xalanc_1_9::XalanElement*)':
/home/sean/code/xml-xalan/c/src/xalanc/XPath/ElementPrefixResolverProxy.hpp:89: error: 'xalanc_1_9::ElementPrefixResolverProxy::ElementPrefixResolverProxy(const xalanc_1_9::ElementPrefixResolverProxy&)' is private
/home/sean/code/xml-xalan/c/src/xalanc/XPath/XPathEvaluator.cpp:361: error: within this context
gmake[1]: *** [../../obj/XPathEvaluator.o] Error 1
gmake[1]: Leaving directory `/home/sean/code/xml-xalan/c/src/xalanc'
gmake: *** [all] Error 2


> Possibility to install local extension functions in XPathEvaluator
> ------------------------------------------------------------------
>
>          Key: XALANC-467
>          URL: http://issues.apache.org/jira/browse/XALANC-467
>      Project: XalanC
>         Type: Improvement
>   Components: XPathC
>  Environment: All
>     Reporter: Erik Rydgren
>     Priority: Minor
>  Attachments: Changes XPathEvaluator.cpp, Changes XPathEvaluator.h, XPathEvaluator.cpp, XPathEvaluator.hpp
>
> There is no way to use local extension function when evaluating XPath through XPathEvaluator.
> David N Bertoni wrote:
> It sounds like we need to add a public member function to XPathEvaluator to install local extension functions.  Can you create a Jira enhancement request, so we don't loose track if it?
> Thanks!
> Dave

-- 
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: (XALANC-467) Possibility to install local extension functions in XPathEvaluator

Posted by "Erik Rydgren (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANC-467?page=comments#action_61296 ]
     
Erik Rydgren commented on XALANC-467:
-------------------------------------

Attached new changed files. Please ignore the first ones (Changes to XPathEvaluator.*).
The changes is made in version 1.7 so some modifications might be needed before check-in.


> Possibility to install local extension functions in XPathEvaluator
> ------------------------------------------------------------------
>
>          Key: XALANC-467
>          URL: http://issues.apache.org/jira/browse/XALANC-467
>      Project: XalanC
>         Type: Improvement
>   Components: XPathC
>  Environment: All
>     Reporter: Erik Rydgren
>     Priority: Minor
>  Attachments: Changes XPathEvaluator.cpp, Changes XPathEvaluator.h, XPathEvaluator.cpp, XPathEvaluator.hpp
>
> There is no way to use local extension function when evaluating XPath through XPathEvaluator.
> David N Bertoni wrote:
> It sounds like we need to add a public member function to XPathEvaluator to install local extension functions.  Can you create a Jira enhancement request, so we don't loose track if it?
> Thanks!
> Dave

-- 
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
-
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: (XALANC-467) Possibility to install local extension functions in XPathEvaluator

Posted by "Erik Rydgren (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANC-467?page=comments#action_60976 ]
     
Erik Rydgren commented on XALANC-467:
-------------------------------------

I copied the functionality from XalanTransformer to XPathEvaluator in our version (Xalan 1.7). I have attached files that contain the code that were added/changed.

/ Erik


> Possibility to install local extension functions in XPathEvaluator
> ------------------------------------------------------------------
>
>          Key: XALANC-467
>          URL: http://issues.apache.org/jira/browse/XALANC-467
>      Project: XalanC
>         Type: Improvement
>   Components: XPathC
>  Environment: All
>     Reporter: Erik Rydgren
>     Priority: Minor
>  Attachments: Changes XPathEvaluator.cpp, Changes XPathEvaluator.h
>
> There is no way to use local extension function when evaluating XPath through XPathEvaluator.
> David N Bertoni wrote:
> It sounds like we need to add a public member function to XPathEvaluator to install local extension functions.  Can you create a Jira enhancement request, so we don't loose track if it?
> Thanks!
> Dave

-- 
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
-
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