[ 
https://issues.apache.org/jira/browse/FOP-2452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

zhangcui updated FOP-2452:
--------------------------
    Description: 
<xsl:variable name="aa">
        <xsl:value-of select="string-length('1ff{H1}ガメン') + 10" />
        <xsl:value-of select="'mm'" />
</xsl:variable>

<fo:table>
        <fo:table-column column-number="1" />
                <fo:table-body>
                        <fo:table-row >
                                <fo:table-cell>
                                        <fo:block >
                                                <xsl:value-of 
select="'1ff{H1}ガメン'" /><xsl:value-of select="'H1'" />
                                        </fo:block>
                                        <fo:block start-indent="{$aa}">
                                                <xsl:value-of select="'HH'" />
                                        </fo:block>
                                </fo:table-cell>
                        </fo:table-row>
                </fo:table-body>
        </fo:table>

result:
1ff{H1}ガメンH1
                HH

it should be like this
1ff{H1}ガメンH1
                          HH

actually,i want layout like this,"H1"and"HH" are Vertical alignment
1ff{H1}ガメン   H1
                         HH

how can the"H1"and"HH" become vertical alignment ?
if anyone can help,thank you!

  was:
<xsl:variable name="aa">
        <xsl:value-of select="string-length('1ff{H1}ガメン') + 10" /><xsl:value-of 
select="'mm'" />
</xsl:variable>

<fo:table>
        <fo:table-column column-number="1" />
                <fo:table-body>
                        <fo:table-row >
                                <fo:table-cell>
                                        <fo:block >
                                                <xsl:value-of 
select="'1ff{H1}ガメン'" /><xsl:value-of select="'H1'" />
                                        </fo:block>
                                        <fo:block start-indent="{$aa}">
                                                <xsl:value-of select="'HH'" />
                                        </fo:block>
                                </fo:table-cell>
                        </fo:table-row>
                </fo:table-body>
        </fo:table>

result:
1ff{H1}ガメンH1
                HH

it should be like this
1ff{H1}ガメンH1
                          HH

actually,i want layout like this,"H1"and"HH" are Vertical alignment
1ff{H1}ガメン   H1
                         HH

how can the"H1"and"HH" become vertical alignment ?
if anyone can help,thank you!


> the string-length($str) result is incorrect if $str contains japanese 
> character
> -------------------------------------------------------------------------------
>
>                 Key: FOP-2452
>                 URL: https://issues.apache.org/jira/browse/FOP-2452
>             Project: Fop
>          Issue Type: Bug
>         Environment: fop1.0
>            Reporter: zhangcui
>
> <xsl:variable name="aa">
>       <xsl:value-of select="string-length('1ff{H1}ガメン') + 10" />
>         <xsl:value-of select="'mm'" />
> </xsl:variable>
> <fo:table>
>       <fo:table-column column-number="1" />
>               <fo:table-body>
>                       <fo:table-row >
>                               <fo:table-cell>
>                                       <fo:block >
>                                               <xsl:value-of 
> select="'1ff{H1}ガメン'" /><xsl:value-of select="'H1'" />
>                                       </fo:block>
>                                       <fo:block start-indent="{$aa}">
>                                               <xsl:value-of select="'HH'" />
>                                       </fo:block>
>                               </fo:table-cell>
>                       </fo:table-row>
>               </fo:table-body>
>       </fo:table>
> result:
> 1ff{H1}ガメンH1
>                 HH
> it should be like this
> 1ff{H1}ガメンH1
>                           HH
> actually,i want layout like this,"H1"and"HH" are Vertical alignment
> 1ff{H1}ガメン   H1
>                          HH
> how can the"H1"and"HH" become vertical alignment ?
> if anyone can help,thank you!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to