Miroslav:

Not exactly sure of the layout you want, but did you try:

<fo:table-cell border-width="0.37px" language="en" border-style="solid" 
padding-left="3px" padding-before="2.5px" padding-after="0.5px">
<fo:block>
<fo:instream-foreign-object>
<svg width="10" height="100" xmlns="http://www.w3.org/2000/svg";>
<g transform="translate(7,98)">
<g transform="rotate(-90)" font-family="SansSerif">
<text x="0" y="0"><xsl:value-of select="@value"/></text>
</g>
</g>
</svg>
</fo:instream-foreign-object>
<fo:instream-foreign-object> <!--SECOND LINE HERE-->
<svg width="10" height="100" xmlns="http://www.w3.org/2000/svg";>
<g transform="translate(7,98)">
<g transform="rotate(-90)" font-family="SansSerif">
<text x="0" y="0"><xsl:value-of select="@value"/></text>
</g>
</g>
</svg>
</fo:instream-foreign-object>
</fo:block>
</fo:table-cell>

This will produce multiple vertical lines, running bottom to top, left to 
right.  Example:

3 6
2 5
1 4


-Lou


"Gregan, Miroslav" <[EMAIL PROTECTED]> wrote on 03/15/2007 
11:51:51 AM:

> Hello all,
> 
> I need a little help from you.
> I have to put manual line breaks in fo:table-cells.
> So as I understood I need to insert each line in a separate block in
> the cell like in this XSL code, is it correct?
> 
> <xsl:template match="header/column">
>   <fo:table-cell border-width="0.37px" language="en" 
border-style="solid"
> padding-left="3px" padding-before="2.5px" padding-after="0.5px">
>     <fo:block hyphenate="true" font-size="10pt" font-weight="bold">
>       <xsl:for-each select="@values">
>         <fo:block>
>           <xsl:value-of select="@value"/>
>         </fo:block>
>       </xsl:for-each>
>     </fo:block>
>   </fo:table-cell>
> </xsl:template>
> 
> But I need to implement this feature also for text written 
> vertically, so using SVG,
> knowing that I use the same structure "values" containing 1 to N 
> "value" to stores the datas, how should I modify this?
> 
> <xsl:template match="header/column">
>   <fo:table-cell border-width="0.37px" language="en" 
border-style="solid"
> padding-left="3px" padding-before="2.5px" padding-after="0.5px">
>     <fo:block>
>       <fo:instream-foreign-object>
>         <svg width="10" height="100" xmlns="http://www.w3.org/2000/svg";>
>           <g transform="translate(7,98)">
>           <g transform="rotate(-90)" font-family="SansSerif">
>             <text x="0" y="0"><xsl:value-of select="@value"/></text>
>           </g>
>           </g>
>         </svg>
>       </fo:instream-foreign-object>
>     </fo:block>
>   </fo:table-cell>
> </xsl:template>
> 
> Thank you for your help.
> 
> Kind regards,
> 
> Miroslav Gregan
> 
> Siemens PSE-SK KB SK2
> Dubravska cesta 4
> 84104 Bratislava
> Slovakia
> 

Reply via email to