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 "Baig Muzeer [contractor]" <Mu...@EBay.Sun.COM> on 2000/08/11 17:51:33 UTC
Question on XSLFO..!
Hi there:
I have a question on XSLFO...!
I am not able to access variable value, while using FOP. Same thing when I used
for XSLT (Xalan) it worked. But now I trying to use the same, I am not able to
get the variable value.
some time it give error as :
illegal character
or
WARNING: Unknown formatting object ^br
Code :
<fo:block-container border-color="black" border-style="solid"
border-width="0.5pt" height="3cm" width="0.625cm" top="9.5cm" left="6cm"
position="absolute">
<fo:block text-align="centered" space-after.optimum="3pt"
line-height="18pt" font-weight="normal" font-size="10pt"
font-family="Helvetica">
<xsl:choose>
<xsl:when test="//SystemBoard[@slotNumber='1']" >
<xsl:variable name="strManipulate" select="/SystemBoard/@partNum" />
<xsl:value-of select="substring($strManipulate,1,1)" /><br/>
<xsl:value-of select="substring($strManipulate,2,1)" /><br/>
<xsl:value-of select="substring($strManipulate,3,1)" /><br/>
<xsl:value-of select="substring($strManipulate,4,1)" /><br/>
<xsl:value-of select="substring($strManipulate,5,1)" /><br/>
</xsl:when>
<xsl:otherwise>
<xsl:text> </xsl:text>
</xsl:otherwise>
</xsl:choose>
</fo:block>
</fo:block-container>
Here I am not able to retieve value of variable "strManipulate".
Can u please let me know if I am doing wrong anywhere or is there any alternate
solution.
Thank's
Muzeer
RE: Question on XSLFO..!
Posted by ".::romina::." <ro...@spcom.com.ar>.
For what I'm seeing... you are using <br/> ... you should use <fo:block/>.
Well, at least that's what I use to create a "br" :)
HTH,
romina
----- Original Message -----
From: Baig Muzeer [contractor] <Mu...@EBay.Sun.COM>
To: <fo...@xml.apache.org>
Cc: <La...@EBay.Sun.COM>; <Ta...@EBay.Sun.COM>
Sent: Friday, August 11, 2000 12:51 PM
Subject: Question on XSLFO..!
| Hi there:
|
|
| I have a question on XSLFO...!
|
| I am not able to access variable value, while using FOP. Same thing when I
used
| for XSLT (Xalan) it worked. But now I trying to use the same, I am not
able to
| get the variable value.
|
| some time it give error as :
|
| illegal character
|
| or
|
|
| WARNING: Unknown formatting object ^br
|
|
| Code :
|
|
| <fo:block-container border-color="black" border-style="solid"
| border-width="0.5pt" height="3cm" width="0.625cm" top="9.5cm" left="6cm"
| position="absolute">
| <fo:block text-align="centered" space-after.optimum="3pt"
| line-height="18pt" font-weight="normal" font-size="10pt"
| font-family="Helvetica">
|
| <xsl:choose>
| <xsl:when test="//SystemBoard[@slotNumber='1']" >
| <xsl:variable name="strManipulate"
select="/SystemBoard/@partNum" />
| <xsl:value-of select="substring($strManipulate,1,1)" /><br/>
| <xsl:value-of select="substring($strManipulate,2,1)" /><br/>
| <xsl:value-of select="substring($strManipulate,3,1)" /><br/>
| <xsl:value-of select="substring($strManipulate,4,1)" /><br/>
| <xsl:value-of select="substring($strManipulate,5,1)" /><br/>
| </xsl:when>
| <xsl:otherwise>
| <xsl:text> </xsl:text>
| </xsl:otherwise>
| </xsl:choose>
|
|
| </fo:block>
| </fo:block-container>
|
|
| Here I am not able to retieve value of variable "strManipulate".
|
| Can u please let me know if I am doing wrong anywhere or is there any
alternate
| solution.
|
|
| Thank's
|
| Muzeer
|
|
|