Hi, This is a pure XSLT related question. That said, there are usually 2 ways to "repeat" attributes over a collection of elements: - either the one you described - or using a xsl:call-template.
The latter is more appropriate if you need to pass parameters to your attributes 2012/6/8 Léa Massiot <lmhe...@orange.fr>: > > Hi, > > I was wondering if there is another way than the one below to set the > padding for all the cells of a given table at once. > > I created an "attribute-set": > > <xsl:attribute-set name="foCellAttributeSet"> > <xsl:attribute name="padding-right">2mm</xsl:attribute> > <xsl:attribute name="padding-left">2mm</xsl:attribute> > <xsl:attribute name="padding-top">2mm</xsl:attribute> > <xsl:attribute name="padding-bottom">2mm</xsl:attribute> > </xsl:attribute-set> > > and I associated it to each cell of the table: > > <fo:table-cell xsl:use-attribute-sets="foCellAttributeSet"> > [...] > </fo:table-cell> > > Is it the proper way to do that? > > Thank you and best regards. > -- > View this message in context: > http://old.nabble.com/Set-the-padding-for-all-the-cells-of-a-given-table-at-once-tp33981242p33981242.html > Sent from the FOP - Users mailing list archive at Nabble.com. -- pascal --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org