CVS: jfor/samples/cocoon/tests/templates jfor-rtf-template-test.dot,1.1,1.2 simple-stylesheet-and-template.fo.xml,1.5,1.6
Bertrand Delacretaz <[email protected]> Tue, 25 Jun 2002 01:08:14 -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-serv30606/samples/cocoon/tests/templates
Modified Files:
jfor-rtf-template-test.dot
simple-stylesheet-and-template.fo.xml
Log Message:
template test improved, comments about the presence of style names in XSL-FO added
Index: jfor-rtf-template-test.dot
===================================================================
RCS file: /cvsroot/jfor/jfor/samples/cocoon/tests/templates/jfor-rtf-template-test.dot,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
Binary files /tmp/cvs3GW1ey and /tmp/cvsGvwA8V differ
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.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** simple-stylesheet-and-template.fo.xml 24 Jun 2002 21:38:12 -0000 1.5
--- simple-stylesheet-and-template.fo.xml 25 Jun 2002 08:08:12 -0000 1.6
***************
*** 22,28 ****
<!--In order to use font style from the template, the style name must be listed here -->
! <!--The font-size and font-family attributes are custom but need to be present into this declaration -->
! <!--Word will use font property from the template -->
! <jfor:style name="arial-22-centered" font-size="99pt" font-family="Times New Roman"/>
</jfor:stylesheet>
--- 22,29 ----
<!--In order to use font style from the template, the style name must be listed here -->
! <!--The font-size and font-family attributes will be replaced by those from the stylesheet -->
! <!--but need to be present into this declaration, otherwise strange things happen when -->
! <!--loading the document into word 2000 for example (styles merging problem?) -->
! <jfor:style name="arial-22-darkblue" font-size="99pt" font-family="Times New Roman"/>
</jfor:stylesheet>
***************
*** 50,54 ****
jfor:style-template extension test
</fo:block>
! <fo:block>
In this document the RTF template filename is set to
<fo:inline color="red">&template;</fo:inline>
--- 51,62 ----
jfor:style-template extension test
</fo:block>
!
! <fo:block> </fo:block>
! <fo:block font-size="28pt" font-family="arial" font-weight="bold">
! important notes:
! </fo:block>
!
! <fo:block> </fo:block>
! <fo:block font-family="arial">
In this document the RTF template filename is set to
<fo:inline color="red">&template;</fo:inline>
***************
*** 56,60 ****
winword requires .dot files to be stored in known locations).
</fo:block>
! <fo:block>
If this template file (found in the jfor samples directory)
is available to your wordprocessor, you should see lots of blue
--- 64,70 ----
winword requires .dot files to be stored in known locations).
</fo:block>
!
! <fo:block> </fo:block>
! <fo:block font-family="arial">
If this template file (found in the jfor samples directory)
is available to your wordprocessor, you should see lots of blue
***************
*** 63,72 ****
<fo:block> </fo:block>
<fo:block font-size="28pt" font-family="arial" font-weight="bold">
test begins:
</fo:block>
! <fo:block jfor-class="arial-22-centered">
! This block should have the arial-22-centered style, but
! the style is defined only in the template, not in the XSL-FO document.
</fo:block>
<fo:block jfor-class="Courier-14-magenta">
--- 73,96 ----
<fo:block> </fo:block>
+ <fo:block font-family="arial">
+ Note that all style names must be defined in the XSL-FO document to avoid
+ problems (style merging?) when loading into some RTF readers. See
+ the arial-22-darkblue style example in this file for more info.
+ </fo:block>
+
+ <fo:block> </fo:block>
+ <fo:block font-family="arial">
+ As of V0.6.1, jfor only generates character styles; paragraph styles are not
+ supported yet.
+ </fo:block>
+
+ <fo:block> </fo:block>
<fo:block font-size="28pt" font-family="arial" font-weight="bold">
test begins:
</fo:block>
! <fo:block jfor-class="arial-22-darkblue">
! This block should have the arial-22-darkblue style (dark blue in the template):
! in the XSL-FO the style is set to Times New Roman 99pt but this should be
! overridden by the definition from the template.
</fo:block>
<fo:block jfor-class="Courier-14-magenta">
***************
*** 116,119 ****
--- 140,148 ----
More text in the sourceCode style. More text in the sourceCode style. More text in the sourceCode style.
More text in the sourceCode style. More text in the sourceCode style. More text in the sourceCode style.
+ </fo:block>
+
+ <fo:block> </fo:block>
+ <fo:block font-size="28pt" font-family="arial" font-weight="bold">
+ end of test document.
</fo:block>
</fo:flow>
-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/