You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Sidi Mohamed Idrissi Yaghir <id...@stud.fh-dortmund.de> on 2007/08/20 16:59:35 UTC

Attributes of the fo-elements as parameter

Hi mailing list,

is there a possibility to use the attributes of the fo-elements in the  
XSLT file as  parameters???

this hier e.g. didn´t work:
<fo:table-cell width="<xsl:value-of select="$widthParam" />"  
border-width="1px" border-style="solid" padding-right="10px" >
----------------------------------------------------------------------------
i get this Error:
[Fatal Error] test.xsl:24:40: The value of attribute "width"  
associated with an element type "fo:table-cell" must not contain the  
'<' character.


thnx

Simo


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Attributes of the fo-elements as parameter

Posted by mahmoudi ould abdel vetah <ma...@gmail.com>.
or use this syntax :

<fo:table-cell width="{$widthParam}"
border-width="1px" border-style="solid" padding-right="10px" >


2007/8/20, Stefan Heuer <sh...@gmx.de>:
>
> Hi Simo,
>
> I would do:
> <fo:table-cell border-width="1px" border-style="solid"
> padding-right="10px" >
>    <xsl:attribute name="width"><xsl:value-of select="$widthParam"
> /></xsl:attirbute>
>
> </fo:table>
>
>
> Sidi Mohamed Idrissi Yaghir schrieb:
> > Hi mailing list,
> >
> > is there a possibility to use the attributes of the fo-elements in
> > the XSLT file as  parameters???
> >
> > this hier e.g. didn´t work:
> > <fo:table-cell width="<xsl:value-of select="$widthParam" />"
> > border-width="1px" border-style="solid" padding-right="10px" >
> >
> ----------------------------------------------------------------------------
> >
> > i get this Error:
> > [Fatal Error] test.xsl:24:40: The value of attribute "width"
> > associated with an element type "fo:table-cell" must not contain the
> > '<' character.
> >
> >
> > thnx
> >
> > Simo
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> > For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>

Re: Attributes of the fo-elements as parameter

Posted by Stefan Heuer <sh...@gmx.de>.
Hi Simo,

I would do:
<fo:table-cell border-width="1px" border-style="solid"
padding-right="10px" >
    <xsl:attribute name="width"><xsl:value-of select="$widthParam"
/></xsl:attirbute>

</fo:table>


Sidi Mohamed Idrissi Yaghir schrieb:
> Hi mailing list,
>
> is there a possibility to use the attributes of the fo-elements in
> the XSLT file as  parameters???
>
> this hier e.g. didn´t work:
> <fo:table-cell width="<xsl:value-of select="$widthParam" />"
> border-width="1px" border-style="solid" padding-right="10px" >
> ----------------------------------------------------------------------------
>
> i get this Error:
> [Fatal Error] test.xsl:24:40: The value of attribute "width"
> associated with an element type "fo:table-cell" must not contain the
> '<' character.
>
>
> thnx
>
> Simo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org