在XSL FO文档中编写XSL-t

问题描述

| 我是XSL FO的初学者。 我有一个非常简单的XML文档:
<?xml version= \"1.0\" ?>
<test>
TEST
</test>
我想在标签“ 1”之间打印内容 我编写了以下XLS FO文档,以供FOP处理。
<fo:root xmlns:yt=\"http://www.yseop.com/text/2\" 
xmlns:y=\"http://www.yseop.com/engine/3\" 
xmlns:fo=\"http://www.w3.org/1999/XSL/Format\"
xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">


   <fo:layout-master-set>
      <fo:simple-page-master master-name=\"rapport\">
         <fo:region-body margin-top=\"0.75in\" margin-left=\"0.75in\" margin-right=\"0.75in\" margin-bottom=\"0.75in\"/>
         <fo:region-after extent=\"0.25in\"/>
         <fo:region-start/>
      </fo:simple-page-master>
   </fo:layout-master-set>

   <fo:page-sequence master-reference=\"rapport\">

       <fo:flow flow-name=\"xsl-region-body\">
            <fo:block>
            XXX
                <xsl:apply-templates select=\"document(\'D:\\XXX-conseilVente\\xmlBatch\\input_test1.xml\')/test\"/>
            </fo:block>
      </fo:flow>
   </fo:page-sequence>



</fo:root>
我收到以下警告:
      [fop] 25 mai 2011 12:05:10 org.apache.fop.events.LoggingEventListener processEvent
      [fop] ATTENTION: Unknown formatting object \"{http://www.w3.org/1999/XSL/Transform}apply-templates\" encountered (a child of fo:block}. (See position 22:99)
而且我的输出pdf上没有任何内容。 我想我没有使用正确的功能来用xsl-t解析文档 您能告诉我使用什么功能吗? 提前致谢     

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)