Hi, Tommaso.

"Tommaso Agnoloni" <[EMAIL PROTECTED]> wrote on 2008-10-14 
06:40:25 AM:
> I have this problem using xsl:attribute-set with XSLTC;
> 
> In the following example XSLTC is not able to correctly assign the 
> attribute "class1" to the <div> element while the attribute class2 
> is correctly assigned.
> 
> It seems that XSLTC is not able to resolve the current node (.) in 
> the xsl:attribute-set
> 
> The same example works correctly as expected using interpreted xalan;
> 
> any suggestion? Is it a known bug ?

It's surprising, but I don't think this is a known problem.  It looks like 
XSLTC is trying to evaluate the attribute set with the root of the input 
document as the context node.

The only work-around I can suggest is to use named templates and 
xsl:call-template instead of using xsl:attribute-set, unfortunately. 
Please open a bug report in Jira.

Thanks,

Henry
------------------------------------------------------------------
Henry Zongaro
XML Transformation & Query Development
IBM Toronto Lab   T/L 313-6044;  Phone +1 905 413-6044
mailto:[EMAIL PROTECTED]

Reply via email to