You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by st...@us.ibm.com on 2000/06/15 13:27:27 UTC

attribute-sets



Has anyone been successful using the <xsl:attribute-set> and
use-attribute-sets code with Xalan?  I seem to be getting the following DOM

org.apache.xerces.dom.DOMExceptionImpl: DOM002 Illegal character
        at
org.apache.xerces.dom.DocumentImpl.createAttribute(DocumentImpl.java:323)

Here is a code snippet...

<xsl:attribute-set name="textattrs">
     <xsl:attribute name="font-size">9pt</xsl:attribute>
     <xsl:attribute name="line-height">10pt</xsl:attribute>
     <xsl:attribute name="white-space-treatment">preserve</xsl:attribute>
     <xsl:attribute name="space-after.optimum=">0.25cm</xsl:attribute>
     <xsl:attribute name="start-indent=">11.5cm</xsl:attribute>
</xsl:attribute-set>

<xsl:template name="GET_INSIDE_ADDR">
     <!-- output the return address at the top right of the page -->
     <fo:block  xsl:use-attribute-sets="textattrs"><xsl:value-of
select="na_addr"/></fo:block>
</xsl:template>

Thanks!

Steven V. Jennings