選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?xml version="1.0"?>
  2. <!--
  3. Copyright 2001-2002,2004 The Apache Software Foundation
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. -->
  14. <!-- $Id$ -->
  15. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
  16. <xsl:output method="xml" indent="yes"/>
  17. <xsl:template match="test">
  18. <fo:root>
  19. <fo:layout-master-set>
  20. <fo:simple-page-master master-name="one" page-height="29.7cm" page-width="21cm" margin-top="0.5cm" margin-bottom="0.5cm" margin-left="1.5cm" margin-right="1.5cm">
  21. <fo:region-body margin-top="1.5cm" margin-bottom="2cm"/>
  22. <fo:region-before extent="1.5cm"/>
  23. <fo:region-after extent="1.5cm"/>
  24. </fo:simple-page-master>
  25. </fo:layout-master-set>
  26. <fo:page-sequence master-reference="one">
  27. <fo:flow font-size="10pt" line-height="10pt" flow-name="xsl-region-body">
  28. <xsl:apply-templates select="data"/>
  29. </fo:flow>
  30. </fo:page-sequence>
  31. </fo:root>
  32. </xsl:template>
  33. <xsl:template match="data">
  34. <xsl:apply-templates/>
  35. </xsl:template>
  36. <!-- note: this causes any node not otherwise defined to be copied -->
  37. <xsl:template match="@*|node()">
  38. <xsl:copy>
  39. <xsl:apply-templates select="@*|node()"/>
  40. </xsl:copy>
  41. </xsl:template>
  42. <xsl:template match="title">
  43. <xsl:apply-templates/>
  44. </xsl:template>
  45. </xsl:stylesheet>