以文本方式查看主题

-  计算机科学论坛  (http://bbs.xml.org.cn/index.asp)
--  『 XSL/XSLT/XSL-FO/CSS 』  (http://bbs.xml.org.cn/list.asp?boardid=8)
----  求助,关于XSL-FO中的全局变量问题  (http://bbs.xml.org.cn/dispbbs.asp?boardid=8&rootid=&id=13974)


--  作者:HPAkula
--  发布时间:1/24/2005 3:20:00 PM

--  求助,关于XSL-FO中的全局变量问题
我做了一个xsl-Fo的格式文件,显示区域分为region-before和region-body
    现在希望在region-body中进行条件判断,根据判断结果给一个全局变量赋值,然后在region-before中加以调用,而region-body中包含了多次的条件判断。如何实现上述的功能?求各位大大帮忙。
    我使用了template:
    在全局定义了一个template
    <xsl:template name="A">
        <xsl:param name="AdjustId"/>
    </xsl:template>

    在region-body中判断时根据条件对该Param进行了赋值,但是就是不知道如何在region-before里面引用这个param:
<xsl:template match="/">
   ..... <!-- you need to put all necessary stuff here -->
   <xsl:for-each select="//Adjust">
       <xsl:call-template name="A">
           <xsl:with-param name="AdjustId" select="AdjustId">
       </xsl:call-template>
   </xsl:for-each>

</xsl:template>

请各位老大帮忙····


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
1,503.906ms