Hi All,

I have the following xsl document:

....
<xsl:variable name="testvar" >
<test>
        <subtest/>
</test>
</xsl:variable>                                           
....

I added a tracer object and in de trace event I have the following code:

ElemVariable elv 
=ev.m_styleNode.getStylesheetRoot().getVariableOrParamComposed(new 
QName("testvar"));
if ( elv != null) {
        int sourceNode = ev.m_processor.getXPathContext().getCurrentNode();
        XObject var = elv.getValue(ev.m_processor, sourceNode);
      if ( var instanceof XRTreeFrag) {
        XRTreeFrag tf = (XRTreeFrag) var;
                String outputString = tf.str();
        }             
}

It reaches the tf.str() statement is reached as expected but the outputString 
is empty. Can anybody tell me what is going wrong ? How can I get a string 
representation of the XRTreeFrag ? 

Kind regards,
Marco Laponder
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to