You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Mingfei Peng <mf...@excite.com> on 2000/08/10 10:07:34 UTC

Pure virtual function call in Xalan

A pure virtual function call in Xalan occurs for attached sample files,
position is in XPathExecutionContextDefault.cpp:
int XPathExecutionContextDefault::getContextNodeListPosition(const
XalanNode& contextNode) const;

Sometimes m_contextNodeList point to a pure virtual class: NodeRefListBase.





_______________________________________________________
Say Bye to Slow Internet!
http://www.home.com/xinbox/signup.html

Extensions element with AVT-like attributes

Posted by Philippe Vijghen <Ph...@forem.be>.
Dear all,

I would like to define some extension element
to which I could pass attributes that are defined
according to X-Path expressions or XSLT variables.

I was thiking about using somthing like the AVT
(Attribute Value Template) mechanism.

For example, based on the sample "3numlistJava" bundled in Xalan
I would expect the following to work as well in my XSL:

	<counter:init name="{$varName}" value="{/RootElem/@counter}"/>

However, the Java code for implementing the element extensions, does the
following for getting the name and the value

>  public void init(org.apache.xalan.xslt.XSLProcessorContext context,
>                   org.apache.xalan.xslt.ElemExtensionCall extElem)
>  {
>    String name = extElem.getAttribute("name");
>    String value = extElem.getAttribute("value");
>    ...

...which means that the attributes are not parsed as I would like to. :(

Could anybody of you help me setting up some code that would allow
me to process attribute values as for an AVT?

(I guess/hope they is stuff in Xalan to be re-used for doing that.)

Thanks in advance,

	Philippe
---
Philippe Vijghen  phv@acse.be
Project Manager   +32 (2) 705.70.21
ACSE s.a.         Bd Général Wahis 29. B-1030 Bruxelles. Belgium


Re: Pure virtual function call in Xalan

Posted by Marco van Eck <ma...@wildape.com>.
Hello,
I have the same problem, you can fix it if you don't compile the the
stylesheet. 
I know this is not what you want, but I had a wrong xsl file. And hacked
2 days to get a compiled xsl version of the xalan working without any
luck. Maybe another message should fit better...

Something is wrong with the 
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

I changed it to
<xsl:stylesheet> 

If this is realy the problem is I don't know, because I'm behind a
firewall, but it works for me.


tnx, Now I can enjoy my vacation even better :)

Mingfei Peng wrote:
> 
> A pure virtual function call in Xalan occurs for attached sample files,
> position is in XPathExecutionContextDefault.cpp:
> int XPathExecutionContextDefault::getContextNodeListPosition(const
> XalanNode& contextNode) const;
> 
> Sometimes m_contextNodeList point to a pure virtual class: NodeRefListBase.



--------------------------------------------------
Be aware of the wildape
       It must be somewhere
--------------------------------------------------