When adding an xsl:result-document element to my stylesheet that contains a format attribute (for selecting the output method), this is the error returned:
SaxonCE.StandardErrorListener 17:08:16.652
SEVERE: Error at /xsl:stylesheet/xsl:template[2]/xsl:choose/xsl:when[1]/xsl:result-document in
XTSE0090: Attribute @format is not allowed on element
but if I am reading the xslt 2.0 spec correctly about xsl:output and xsl:result-document this should be possible.
Is this a bug or a mistake on my part?