This content has been marked as final. Show 3 replies
Just checking, you wanting to use the attribute set with the chart definition? If so, its not going to work, sorry. The chart definition XML is handed off to a Publisher extension to get the chart processed and brought back. That extension does not support attr sets.
Attribute sets can be turned on in the rest of the RTF template through a property setting.
I found a solution to my problem: I specified the context for the insertion of the attribute-set tag by adding the xdofo:ctx="begin":
<xsl:attribute-set name="target_attributes" xdofo:ctx="begin" >
then, in the chart (Format Picture --> Alternative text) I put the following tags:
<xsl:element name="Series" use-attribute-sets="target_attributes">
it works fine (pdf result seems like I want) but when I validate the template I obtain the following exception:
[092309_043319134][ERROR] java.lang.ClassCastException: oracle.xml.parser.v2.XMLComment cannot be cast to org.w3c.dom.Element
That can happen with the validation. If you got it to work, I would just go with it.