CVS: jfor/samples/cocoon/tests/templates simple-stylesheet-and-template.fo.xml,1.1,1.2 template.dot,1.1,1.2
Bertrand Delacretaz <[email protected]> Wed, 05 Jun 2002 09:39:38 -0700
| Newsgroups | gmane.text.xml.jfor.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/jfor/jfor/samples/cocoon/tests/templates
In directory usw-pr-cvs1:/tmp/cvs-serv10171/samples/cocoon/tests/templates
Modified Files:
simple-stylesheet-and-template.fo.xml template.dot
Log Message:
template sample made more explicit
Index: simple-stylesheet-and-template.fo.xml
===================================================================
RCS file: /cvsroot/jfor/jfor/samples/cocoon/tests/templates/simple-stylesheet-and-template.fo.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** simple-stylesheet-and-template.fo.xml 5 Jun 2002 14:36:21 -0000 1.1
--- simple-stylesheet-and-template.fo.xml 5 Jun 2002 16:39:36 -0000 1.2
***************
*** 1,9 ****
<?xml version="1.0" encoding="utf-8"?>
<!-- tell cocoon to use jfor to convert this to RTF format -->
<?cocoon-format type="xslfo/rtf"?>
-
-
<fo:root
xmlns:fo="http://www.w3.org/1999/XSL/Format"
--- 1,11 ----
<?xml version="1.0" encoding="utf-8"?>
+ <!DOCTYPE template-name [
+ <!ENTITY template "/tmp/template.dot">
+ ]>
+
<!-- tell cocoon to use jfor to convert this to RTF format -->
<?cocoon-format type="xslfo/rtf"?>
<fo:root
xmlns:fo="http://www.w3.org/1999/XSL/Format"
***************
*** 14,24 ****
<jfor:stylesheet default="Normal">
<jfor:style name="Normal" font-size="10pt" font-family="Courier"/>
- <jfor:style name="helv-24-bold" font-size="24pt" font-family="Helvetica" font-weight="bold"/>
<jfor:style name="arial-22-centered" text-align="center" margin-left="2pt" line-height="24pt" font-family="Arial" font-size="22pt"/>
<jfor:style name="sourceCode" text-align="left" margin-left="25mm" font-family="Courier" font-size="12pt"/>
</jfor:stylesheet>
! <jfor:style-template src="R:\CVS\jfor\samples\cocoon\tests\template\template.dot"/>
!
<fo:layout-master-set>
--- 16,25 ----
<jfor:stylesheet default="Normal">
<jfor:style name="Normal" font-size="10pt" font-family="Courier"/>
<jfor:style name="arial-22-centered" text-align="center" margin-left="2pt" line-height="24pt" font-family="Arial" font-size="22pt"/>
<jfor:style name="sourceCode" text-align="left" margin-left="25mm" font-family="Courier" font-size="12pt"/>
</jfor:stylesheet>
! <!-- jfor:style-template extension, selects a document template -->
! <jfor:style-template src="&template;"/>
<fo:layout-master-set>
***************
*** 39,63 ****
<fo:page-sequence master-name="simple">
<fo:flow flow-name="xsl-region-body">
!
! <fo:block font-size="26pt" font-weight="bold">
! Warning for this test, the file template.dot must be on the same directory as this file.
!
! Normally all stlyes of the template must be visible from the list of the styles.
! All template styles starts with template_xxx.
! </fo:block>
!
! <fo:block font-size="26pt">jfor:stylesheet extensions - basic test</fo:block>
!
!
! <fo:block>
! With jfor V0.4.2, Word 97 crashes when exiting after having opened the RTF version of this file.
! </fo:block>
!
! <fo:block jfor-class="arial-22-centered">This block should have the arial-22-centered style.</fo:block>
! <fo:block jfor-class="helv-24-bold">This block should have the helv-24-bold style</fo:block>
<fo:block>This block should have the default style (courier 10??)</fo:block>
<fo:block jfor-class="sourceCode">
! This block should have the sourceCode style.
This block should have the sourceCode style.
This block should have the sourceCode style.
--- 40,64 ----
<fo:page-sequence master-name="simple">
<fo:flow flow-name="xsl-region-body">
+ <fo:block font-size="24pt" font-family="arial" font-weight="bold">
+ In this document the RTF template name is set to
+ <fo:inline font-color="red">&template;</fo:inline>
+ (but is the path taken into account by wordprocessors?).
+ </fo:block>
+ <fo:block font-size="24pt" font-family="arial" font-weight="bold">
+ If this template file (found in the jfor samples directory)
+ is available to your wordprocessor, your should see lots of blue
+ and red text below.
+ </fo:block>
! <fo:block jfor-class="arial-22-centered">
! This block should have the arial-22-centered style.
! </fo:block>
! <fo:block jfor-class="helv-24-bold">
! This block should have the helv-24-bold style, which is set to blue in template.dot
! and is not defined in the xsl-fo document.
! </fo:block>
<fo:block>This block should have the default style (courier 10??)</fo:block>
<fo:block jfor-class="sourceCode">
! This block should have the sourceCode style (red in template.dot).
This block should have the sourceCode style.
This block should have the sourceCode style.
***************
*** 67,71 ****
</fo:block>
-
<fo:block break-before="page" jfor-class="sourceCode">
More text in the sourceCode style. More text in the sourceCode style. More text in the sourceCode style.
--- 68,71 ----
Index: template.dot
===================================================================
RCS file: /cvsroot/jfor/jfor/samples/cocoon/tests/templates/template.dot,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
Binary files /tmp/cvsa47V5m and /tmp/cvsk7zidC differ
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm