You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Peuß, Thomas" <TP...@airplus.de> on 2000/08/30 12:11:03 UTC
Nested XML-Tags?
Hello!
I am trying to use following code:
<fo:block font-size="11pt"
font-family="Helvetica"
line-height="13pt"
space-after.optimum="3pt"
space-before.optimum="3pt"
text-align="justify"
start-indent='<xsl:value-of select="string(@e*10)"/>'
>
In other words I want to indent this block depending on attribute "@e". FOP
always complains that attribute "start-indent" is not allow to start with an
"<". What can I do?
CU
Thomas
Re: Nested XML-Tags?
Posted by Eric SCHAEFFER <es...@posterconseil.com>.
XSLT:
start-indent='{string(@e*10)}'
----- Original Message -----
From: "Peuß, Thomas" <TP...@airplus.de>
To: <fo...@xml.apache.org>
Sent: Wednesday, August 30, 2000 12:11 PM
Subject: Nested XML-Tags?
> Hello!
>
> I am trying to use following code:
> <fo:block font-size="11pt"
> font-family="Helvetica"
> line-height="13pt"
> space-after.optimum="3pt"
> space-before.optimum="3pt"
> text-align="justify"
> start-indent='<xsl:value-of select="string(@e*10)"/>'
> >
>
> In other words I want to indent this block depending on attribute "@e".
FOP
> always complains that attribute "start-indent" is not allow to start with
an
> "<". What can I do?
>
> CU
> Thomas
>
RE: Nested XML-Tags?
Posted by Xavier Brouckaert <Xa...@forem.be>.
create a variable before doing your block :
<xsl:variable name="myvariable" select="string(@e*10)"/>
<fo:block font-size="11pt"
font-family="Helvetica"
line-height="13pt"
space-after.optimum="3pt"
space-before.optimum="3pt"
text-align="justify"
start-indent="$myvariable">
Xav.
> -----Original Message-----
> From: Peuß, Thomas [mailto:TPeuss@airplus.de]
> Sent: Wednesday, August 30, 2000 12:11 PM
> To: 'fop-dev@xml.apache.org'
> Subject: Nested XML-Tags?
>
>
> Hello!
>
> I am trying to use following code:
> <fo:block font-size="11pt"
> font-family="Helvetica"
> line-height="13pt"
> space-after.optimum="3pt"
> space-before.optimum="3pt"
> text-align="justify"
> start-indent='<xsl:value-of select="string(@e*10)"/>'
> >
>
> In other words I want to indent this block depending on attribute
> "@e". FOP
> always complains that attribute "start-indent" is not allow to
> start with an
> "<". What can I do?
>
> CU
> Thomas