CVS: jfor/samples/cocoon/tests/simple-tests block-attributes.fo.xml,1.2,1.3 fo-page-number-citation.xml,1.1,1.2
Bertrand Delacretaz <[email protected]> Mon, 29 Jul 2002 07:45:10 -0700
| Newsgroups | gmane.text.xml.jfor.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/jfor/jfor/samples/cocoon/tests/simple-tests
In directory usw-pr-cvs1:/tmp/cvs-serv25077/samples/cocoon/tests/simple-tests
Modified Files:
block-attributes.fo.xml fo-page-number-citation.xml
Log Message:
more detailed tests
Index: block-attributes.fo.xml
===================================================================
RCS file: /cvsroot/jfor/jfor/samples/cocoon/tests/simple-tests/block-attributes.fo.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** block-attributes.fo.xml 17 Jul 2002 18:13:32 -0000 1.2
--- block-attributes.fo.xml 29 Jul 2002 14:45:07 -0000 1.3
***************
*** 8,11 ****
--- 8,14 ----
$Id$
$Log$
+ Revision 1.3 2002/07/29 14:45:07 bdelacretaz
+ more detailed tests
+
Revision 1.2 2002/07/17 18:13:32 rmarra
Contributions for background-color processing and
***************
*** 40,57 ****
<fo:block font-size="24pt" font-weight="bold">This phrase must be all bold 24 pt with <fo:inline font-style="italic">four bold italic words</fo:inline> near the end.</fo:block>
<fo:block>This must have same style as phrase P1 above.</fo:block>
- <fo:block font-size="12pt" font-weight="bold">jfor block attributes test: end of document</fo:block>
-
! <fo:block> </fo:block>
!
! <fo:block background-color="#0000ff">Text with background color blue</fo:block>
! <fo:block space-before="20pt">This text contains 20pt as space-before attributre</fo:block>
! <fo:block space-after="20pt">This text contains 20pt as space-after attribute</fo:block>
! <fo:block>Simple text</fo:block>
! <fo:block> </fo:block>
!
!
!
</fo:flow>
</fo:page-sequence>
--- 43,71 ----
<fo:block font-size="24pt" font-weight="bold">This phrase must be all bold 24 pt with <fo:inline font-style="italic">four bold italic words</fo:inline> near the end.</fo:block>
<fo:block>This must have same style as phrase P1 above.</fo:block>
! <fo:block space-before="1cm" background-color="blue" color="white">
! This block must be white on blue
! <fo:inline font-weight="bold">including this bold text</fo:inline>
! and this text that ends the block.
! </fo:block>
!
! <fo:block color="red" font-weight="bold" space-before="20pt">This block has space-before="20pt"</fo:block>
! <fo:block>This block has no space-before or space-after</fo:block>
!
! <fo:block color="red" font-weight="bold" space-after="20pt">This block has space-after="20pt"</fo:block>
! <fo:block>This block has no space-before or space-after</fo:block>
! <fo:block color="red" font-weight="bold" space-before="10pt" space-after="20pt">
! This block has space-before="10pt" and space-after="20pt"
! </fo:block>
! <fo:block>This block has no space-before or space-after</fo:block>
!
! <fo:block color="red" font-weight="bold" space-before="1cm" space-after="2cm">
! This block has space-before="1cm" and space-after="2cm"
! </fo:block>
! <fo:block>This block has no space-before or space-after</fo:block>
!
! <fo:block space-before="1cm" font-size="12pt" font-weight="bold">jfor block attributes test: end of document</fo:block>
!
</fo:flow>
</fo:page-sequence>
Index: fo-page-number-citation.xml
===================================================================
RCS file: /cvsroot/jfor/jfor/samples/cocoon/tests/simple-tests/fo-page-number-citation.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** fo-page-number-citation.xml 29 Jul 2002 13:46:47 -0000 1.1
--- fo-page-number-citation.xml 29 Jul 2002 14:45:07 -0000 1.2
***************
*** 1,5 ****
<?xml version="1.0" encoding="utf-8"?>
! <fo:root>
<fo:layout-master-set>
<fo:simple-page-master master-name="page"
--- 1,17 ----
<?xml version="1.0" encoding="utf-8"?>
! <!-- tell cocoon 1.X to use jfor to convert this to RTF format -->
! <?cocoon-format type="xslfo/rtf"?>
!
! <!--
! Test jfor page-number-citation
! $Id$
! $Log$
! Revision 1.2 2002/07/29 14:45:07 bdelacretaz
! more detailed tests
!
! -->
!
! <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="page"
***************
*** 18,41 ****
</fo:static-content>
-
-
-
-
<fo:flow flow-name="xsl-region-body">
! <fo:block font-weight="bold">Jfor referencing pages test</fo:block>
! <fo:block>This example demonstrate the FO page-number-citation usage.</fo:block>
! <fo:block>There is still a problem with this functionnality the page references are not updated at document load.</fo:block>
! <fo:block>The properties of the page references can be view into Word. Use the right mouse buton after selecting the text between left and right parenthesis.</fo:block>
! <fo:block> </fo:block>
! <fo:block> </fo:block>
!
!
!
!
! <fo:block id="N5">1. Chapter</fo:block>
! <fo:block>Text</fo:block>
! <fo:block id="N13">2. Chapter</fo:block>
! <fo:block>For a description of X see page(<fo:page-number-citation ref-id="N5"/>)</fo:block>
</fo:flow>
</fo:page-sequence>
--- 30,58 ----
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
! <fo:block font-weight="bold">Jfor page-number-citation test</fo:block>
! <fo:block>This example demonstrates the FO page-number-citation usage.</fo:block>
!
! <fo:block color="red" background-color="yellow" font-weight="bold" font-size="14pt">
! Note that with jfor 0.7.0, page references are not updated by winword when it loads
! the document, they must be updated manually (using for example CTRL-A then F9).
! </fo:block>
!
! <fo:block space-before="1cm" font-weight="bold">Test starts.</fo:block>
! <fo:block id="N5">This block has id="N5" which is referenced later</fo:block>
! <fo:block>
! This should say "page 2" in red:
! <fo:inline color="red">page <fo:page-number-citation ref-id="P2"/></fo:inline>
! </fo:block>
!
! <fo:block break-before="page" id="P2">This block is on page 2 and has id="P2"</fo:block>
! <fo:block>
! This should say "page 1" in red:
! <fo:inline color="red">page <fo:page-number-citation ref-id="N5"/></fo:inline>
! </fo:block>
!
! <fo:block space-before="1cm" font-weight="bold">End of test.</fo:block>
!
</fo:flow>
</fo:page-sequence>
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31