Re: Setting a foreign attribute
FOP does not like this fragment and calls <xsl:use-attribute-sets> a foreign attribute.
Right ... xsl:use-attribute-sets= is recognized by XSLT processors and you are putting that attribute into an XSL-FO file which doesn't recognize it because it isn't part of the FO vocabulary so FO processors rightfully complain.
The latter. You've overlooked what is happening where in the process. xsl:use-attribute-sets= is acted on during the building of the result tree and isn't recognized when placed directly in the result tree.
If you change:
<xsl:attribute-set name="article0"> ... </xsl:attribute-set>
<xsl:template name="article0"> ... </xsl:template>
Then you can use <xsl:call-template name='article0'/> in order to add all of the attributes, but it means that everywhere where you have:
<fo:block xsl:use-attribute-sets="article0"> ...
you will need to have:
<fo:block> <xsl:call-template name='article0'/> ...
But there are features of xsl:use-attribute-sets= that might mean you can't just do that everywhere.
I hope this helps.
. . . . . . . . . . Ken
-- Upcoming: hands-on XSLT, XQuery and XSL-FO Washington DC Nov 2009 Interested in other classes? http://www.CraneSoftwrights.com/s/i/ Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format