新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   XML论坛     W3CHINA.ORG讨论区     计算机科学论坛     SOAChina论坛     Blog     开放翻译计划     新浪微博  
 
  • 首页
  • 登录
  • 注册
  • 软件下载
  • 资料下载
  • 核心成员
  • 帮助
  •   Add to Google

    >> 本版讨论XSL,XSLT,XSL-FO,CSS等技术
    [返回] 中文XML论坛 - 专业的XML技术讨论区XML.ORG.CN讨论区 - XML技术『 XSL/XSLT/XSL-FO/CSS 』 → 很急很急很急的一个问题,分贴提问 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 1392 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: 很急很急很急的一个问题,分贴提问 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     huyanlin 美女呀,离线,快来找我吧!
      
      
      等级:大一新生
      文章:13
      积分:91
      门派:XML.ORG.CN
      注册:2004/6/1

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给huyanlin发送一个短消息 把huyanlin加入好友 查看huyanlin的个人资料 搜索huyanlin在『 XSL/XSLT/XSL-FO/CSS 』的所有贴子 引用回复这个贴子 回复这个贴子 查看huyanlin的博客楼主
    发贴心情 很急很急很急的一个问题,分贴提问

    my.xsl
    <?xml version="1.0" encoding="UTF-8" ?>

    <xsl:stylesheet version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:fo="http://www.w3.org/1999/XSL/Format" >
      <xsl:output method="xml" encoding="UTF-8" />

    <xsl:template match="/">
      <!-- FOベース部-->
      <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
          language="ja" font-family="Mincho">
        <fo:layout-master-set>
          <fo:simple-page-master master-name="page">
            <fo:region-body margin-top="17.01mm" margin-left="11.01mm"/>
            <fo:region-before extent="0cm"/>
            <fo:region-after extent="0cm"/>
     <fo:region-start extent="0cm"/>
     <fo:region-end extent="0cm"/>
          </fo:simple-page-master>
        </fo:layout-master-set>    
        <fo:page-sequence master-reference="page">
          <fo:flow flow-name="xsl-region-body">

      <!--上側枠-->
        <fo:block-container border-style="solid" border-width="0.01mm" height="250mm" width="185.01mm" top="0cm" position="absolute">
     
           <xsl:apply-templates select="CENTER-ORDER" />
           
           <xsl:apply-templates select="CENTER-ORDER/FRAMES" />  <!--表-->
           </fo:block-container>
          </fo:flow>
        </fo:page-sequence>
      </fo:root>
    </xsl:template>

    <xsl:template match="CENTER-ORDER">
     <fo:block-container  left="10.2mm" top="1.06mm" width="73.12mm" height="7mm" position="absolute">
      <fo:block text-align="left" font-size="12pt" font-weight="bold">
       HELLO1
      </fo:block>
     </fo:block-container>
    </xsl:template>

    <xsl:template match="CENTER-ORDER/FRAMES">
     <fo:block-container  left="10.2mm" top="1.06mm" width="73.12mm" height="7mm" position="absolute">
      <fo:block text-align="left" font-size="12pt" font-weight="bold">
       HELLO1
      </fo:block>
     </fo:block-container>
    </xsl:template>
    <xsl:include href="table01.xsl" /> 
    </xsl:stylesheet>

    table01.xsl:

    <?xml version="1.0" encoding="UTF-8" ?>

    <xsl:stylesheet version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:fo="http://www.w3.org/1999/XSL/Format" >
      <xsl:output method="xml" encoding="UTF-8" />

    <xsl:template match="FRAMES">
    <fo:block-container border-width="0.01mm" height="10.6cm" width="185.01mm" left="0mm" top="117.97mm" position="absolute">
      <fo:table>
        <fo:table-column column-width="7.84mm"/>
        <fo:table-column column-width="14.79mm"/>
        <fo:table-column column-width="10.88mm"/>
        <fo:table-column column-width="12.99mm"/>
        <fo:table-column column-width="33.9mm"/>
        <fo:table-column column-width="12.05mm"/>
        
        <fo:table-column column-width="7.84mm"/>
        <fo:table-column column-width="14.79mm"/>
        <fo:table-column column-width="10.88mm"/>
        <fo:table-column column-width="12.99mm"/>
        <fo:table-column column-width="33.9mm"/>
        <fo:table-column column-width="12.05mm"/>


     <fo:table-body>
        <fo:table-row>

       <fo:table-cell border-width="0.01mm" border-style="solid">
       <fo:block font-size="8pt" font-weight="bold">
         画像番号
       </fo:block> </fo:table-cell>

       <fo:table-cell border-width="0.01mm" border-style="solid">
       <fo:block font-size="11pt" font-weight="bold">
         サイズ
       </fo:block> </fo:table-cell>

       <fo:table-cell border-width="0.01mm" border-style="solid">
       <fo:block font-size="8pt" font-weight="bold">
         枚数
       </fo:block> </fo:table-cell>

       <fo:table-cell border-width="0.01mm" border-style="solid">
       <fo:block font-size="9pt" font-weight="bold">
         フチ
       </fo:block> </fo:table-cell>

       <fo:table-cell border-width="0.01mm" border-style="solid">
       <fo:block font-size="11pt" font-weight="bold">
         ファイル名
       </fo:block> </fo:table-cell>

       <fo:table-cell border-width="0.01mm" border-style="solid">
       <fo:block font-size="8pt" font-weight="bold">
         チェック
       </fo:block> </fo:table-cell>
       
       <fo:table-cell border-width="0.01mm" border-style="solid">
       <fo:block font-size="8pt" font-weight="bold">
         画像番号
       </fo:block> </fo:table-cell>

       <fo:table-cell border-width="0.01mm" border-style="solid">
       <fo:block font-size="11pt" font-weight="bold">
         サイズ
       </fo:block> </fo:table-cell>

       <fo:table-cell border-width="0.01mm" border-style="solid">
       <fo:block font-size="8pt" font-weight="bold">
         枚数
       </fo:block> </fo:table-cell>

       <fo:table-cell border-width="0.01mm" border-style="solid">
       <fo:block font-size="9pt" font-weight="bold">
         フチ
       </fo:block> </fo:table-cell>

       <fo:table-cell border-width="0.01mm" border-style="solid">
       <fo:block font-size="11pt" font-weight="bold">
         ファイル名
       </fo:block> </fo:table-cell>

       <fo:table-cell border-width="0.01mm" border-style="solid">
       <fo:block font-size="8pt" font-weight="bold">
         チェック
       </fo:block> </fo:table-cell>   
        </fo:table-row>

     <xsl:apply-templates select="FRAME" />

        </fo:table-body>

      </fo:table>

    </fo:block-container>
    </xsl:template>


    <xsl:template match="FRAME">
      <fo:table-row>
        <fo:table-cell background-color="GAINSBORO" border-width="0.01mm" border-style="solid">
          <fo:block font-size="9pt">
          <xsl:number/>
          </fo:block>
        </fo:table-cell>

     <xsl:apply-templates select="SIZE" />
     <xsl:apply-templates select="ORDER-ALL" />
     <xsl:apply-templates select="BORDER" />
     <xsl:apply-templates select="UP-USER-FILE-NAME" />
     <xsl:apply-templates select="CANCEL" />

      </fo:table-row>
    </xsl:template>


    <xsl:template match="SIZE">
      <fo:table-cell border-width="0.01mm" border-style="solid">
        <fo:block font-size="10pt">
           <xsl:if test="../SERVICE = 3">
         <xsl:if test="../PRODUCT-ID = 202">
          FCD
         </xsl:if>
         <xsl:value-of select='.'/>
        </xsl:if>
        <xsl:if test="../SERVICE=8">
       FCD
        </xsl:if>
        <xsl:if test="../SERVICE !=3">
         <xsl:if test="../SERVICE !=8">
          <xsl:value-of select='.'/>
       </xsl:if>
      </xsl:if>
        </fo:block>
      </fo:table-cell>
    </xsl:template>

    <xsl:template match="ORDER-ALL">
      <fo:table-cell border-width="0.01mm" border-style="solid">
        <fo:block font-size="10pt">
          <xsl:value-of select='.'/>
        </fo:block>
      </fo:table-cell>
    </xsl:template>

    <xsl:template match="BORDER">
      <fo:table-cell border-width="0.01mm" border-style="solid">
        <fo:block font-size="10pt">
          <xsl:if test="../BORDER != 0">
      有り
          </xsl:if>
          <xsl:if test="../BORDER = 0">
      無し
          </xsl:if>
        </fo:block>
      </fo:table-cell>
    </xsl:template>

    <xsl:template match="UP-USER-FILE-NAME">
      <fo:table-cell border-width="0.01mm" border-style="solid">
        <fo:block font-size="10pt">
          <xsl:value-of select='.'/>
        </fo:block>
      </fo:table-cell>
    </xsl:template>

    <xsl:template match="CANCEL">
      <fo:table-cell border-width="0.01mm" border-style="solid">
        <fo:block font-size="10pt">
          <xsl:if test="../CANCEL = 1">
      ▲
          </xsl:if>
        </fo:block>
      </fo:table-cell>
    </xsl:template>


    </xsl:stylesheet>


       收藏   分享  
    顶(0)
      




    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2004/6/4 15:57:00
     
     huyanlin 美女呀,离线,快来找我吧!
      
      
      等级:大一新生
      文章:13
      积分:91
      门派:XML.ORG.CN
      注册:2004/6/1

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给huyanlin发送一个短消息 把huyanlin加入好友 查看huyanlin的个人资料 搜索huyanlin在『 XSL/XSLT/XSL-FO/CSS 』的所有贴子 引用回复这个贴子 回复这个贴子 查看huyanlin的博客2
    发贴心情 
    关于两个XSL的问题如下:
    如果加上<xsl:template match="CENTER-ORDER/FRAMES">
    <fo:block-container  left="10.2mm" top="1.06mm" width="73.12mm" height="7mm" position="absolute">
      <fo:block text-align="left" font-size="12pt" font-weight="bold">
       HELLO1
      </fo:block>
    </fo:block-container>
    </xsl:template>
    表格就不显示,这是为什么啊 只显示两个hello1
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2004/6/4 16:00:00
     
     huyanlin 美女呀,离线,快来找我吧!
      
      
      等级:大一新生
      文章:13
      积分:91
      门派:XML.ORG.CN
      注册:2004/6/1

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给huyanlin发送一个短消息 把huyanlin加入好友 查看huyanlin的个人资料 搜索huyanlin在『 XSL/XSLT/XSL-FO/CSS 』的所有贴子 引用回复这个贴子 回复这个贴子 查看huyanlin的博客3
    发贴心情 
    关于两个XSL的问题如下:
    如果加上<xsl:template match="CENTER-ORDER/FRAMES">
    <fo:block-container  left="10.2mm" top="1.06mm" width="73.12mm" height="7mm" position="absolute">
      <fo:block text-align="left" font-size="12pt" font-weight="bold">
       HELLO1
      </fo:block>
    </fo:block-container>
    </xsl:template>
    表格就不显示,这是为什么啊 只显示两个hello1
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2004/6/4 16:00:00
     
     GoogleAdSense
      
      
      等级:大一新生
      文章:1
      积分:50
      门派:无门无派
      院校:未填写
      注册:2007-01-01
    给Google AdSense发送一个短消息 把Google AdSense加入好友 查看Google AdSense的个人资料 搜索Google AdSense在『 XSL/XSLT/XSL-FO/CSS 』的所有贴子 访问Google AdSense的主页 引用回复这个贴子 回复这个贴子 查看Google AdSense的博客广告
    2024/5/13 22:34:24

    本主题贴数3,分页: [1]

    管理选项修改tag | 锁定 | 解锁 | 提升 | 删除 | 移动 | 固顶 | 总固顶 | 奖励 | 惩罚 | 发布公告
    W3C Contributing Supporter! W 3 C h i n a ( since 2003 ) 旗 下 站 点
    苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
    78.125ms