[xep-support] xsl:attribute does not work
Nikolai Grigoriev
grig at renderx.com
Sat Feb 9 02:39:10 PST 2002
Ellen,
> <fo:external-graphic content-height="2.0cm" scaling="uniform"/>
> <xsl:attribute name="src" > <xsl:value-of select="@LogoPath"/></xsl:attribute>
xsl:attribute must be put _inside_ the element to which you add ab attribute,
not after it:
<fo:external-graphic content-height="2.0cm" scaling="uniform">
<xsl:attribute name="src" >
<xsl:value-of select="@LogoPath"/>
</xsl:attribute>
</fo:external-graphic>
One more suggestion: using attribute-value templates instead of xsl:element
gives more readable code. The whole thing above is equivalent to just
<fo:external-graphic content-height="2.0cm" scaling="uniform"
src="{@LogoPath}"/>
Best regards,
Nikolai Grigoriev
RenderX
-------------------
By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
More information about the Xep-support
mailing list