Internal Hyperlink

2004-11-26 Thread Sven Waibel
Hi,


i need in my xsl an expression like that: id={concat(@id,../@id)}
because i must combine the unique one with not unique one, so i get a unique 
combination.

I hope i expressed myself not so confused.

Thanks and best regards,
Sven


So looks my xml/xsl at the moment:

XML:

case id is always unique.
auto id is not always unique.
--
case id=1
auto id=91
/auto
auto id=92
/auto
auto id=91
/auto
/case



case id=2
auto id=81
/auto
/case


XSL:
--
template match=case
..
fo:block id=[EMAIL PROTECTED]auto/fo:block
...
...
fo:basic-link internal-destination=[EMAIL PROTECTED]
Hyperlink: Jump with this link to auto...
/fo:basic-link
...
...


/template


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: References on same page

2004-11-23 Thread Sven Waibel
Hi,
i got it.

So it works: ../../../tables/tb/@id

Thanks!

Sven


Andreas L. Delmelle wrote:

-Original Message-
From: Sven Waibel [mailto:[EMAIL PROTECTED]

 
 
 Hi,
 
 snip /
 
But i get this error:

internal-destination or external-destination must be specified in
basic-link
 
 
 This would mean that the attribute in question is empty, so the sketched
 expression as I wrote it
 
 ../../../tables/tb[description=current()]/@id
 
 returns an empty string.
 
 You have to figure out where the 'tables' node is in relation to the
 'combination' node in your source XML in order to get the correct results.
 We really *have* to see the structure of the source XML to be of any help
 here... (not as two separate fragments, but as a whole; or maybe they are
 even in two different source files?)
 
 
So i tried it with the extension fox, but i also get an error:

fox:destination requires an internal-destination
 
 
 This error occurs for the exact same reason.
 
 Maybe it's best to perform the XSL transform to a FO-file standalone first,
 and make sure the fo:basic-link elements are generated with a valid
 internal-destination property/attribute.
 
 Greetz,
 
 Andreas
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: References on same page

2004-11-22 Thread Sven Waibel
Hi,
i did it , how you said.

But i get this error:

internal-destination or external-destination must be specified in basic-link

So i tried it with the extension fox, but i also get an error:

fox:destination requires an internal-destination

Does anybody know the reason for this?

Thanks

Sven



Andreas L. Delmelle wrote:

-Original Message-
From: Sven Waibel [mailto:[EMAIL PROTECTED]

 
 
 Hi,
 
 Oh, but you already have id attributes you can use... I think the following
 would do it (rough sketch, supposing that the combination nodes are on the
 same level as the tables node)
 
 xsl:template match=combination/parameter/equival
   fo:basic-link internal-destination={../../../tables/tb[
description=current()]/@id}
 fo:block
   xsl:apply-templates /
 /fo:block
   /fo:basic-link
 /xsl:template
 
 xsl:template match=tables/tb
   fo:block id=[EMAIL PROTECTED]
 xsl:apply-templates /
   /fo:block
 /xsl:template
 
 
 HTH!
 
 Greetz,
 
 Andreas
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: stylesheet creation - visual editor or text editor?

2004-11-22 Thread Sven Waibel
Hi,

i think for quick creation of stylesheets you could use a WYSIWYG editor, e.g. 
Altova StyleVision (problem is here, you
can't reuse your old stylesheets).
I use an text editor, but it's quite uncomfortable when you have large and 
complex stylesheets.


Regards
Sven

Chizzolini Stefano wrote:

 Hi all
 
 We are approaching the XSL-FO standard, but my boss is quite skeptical about
 the way to define XSL stylesheets to get formatted contents out of our XML
 files. He's especially worried about the time-consuming translation of
 graphics (e.g. tables, boxes, labels...) in XSL-FO language.
 
 I am curious to know how you solved this primary issue: do you use a visual
 WYSIWYG editor or just an essential text editor?
 
 Thanks for the tips!
 
 Stefano
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: stylesheet creation - visual editor or text editor?

2004-11-22 Thread Sven Waibel
Hi,
it's possible.
You have to create different headers for first and rest pages.


Regards
Sven


Example:

fo:page-sequence master-reference=firstmaster
!-- Header --
fo:static-content flow-name=xsl-region-before
xsl:copy-of select=$header_first /
/fo:static-content
!-- Header-End --
!-- Footer --
xsl:copy-of select=$footer /
!-- Footer-End --
fo:flow flow-name=xsl-region-body
fo:block 
xsl:call-template name=first /
/fo:block
/fo:flow
/fo:page-sequence

fo:page-sequence master-reference=master
!-- Header --
fo:static-content flow-name=xsl-region-before
xsl:copy-of select=$header /
/fo:static-content
!-- Header-End --
!-- Footer --
xsl:copy-of select=$footer /
!-- Footer-End --
fo:flow flow-name=xsl-region-body
fo:block 
xsl:call-template name=first /
/fo:block
/fo:flow
/fo:page-sequence

xsl:variable name=header_first
!-- Header --
/xsl:variable

xsl:variable name=header
!-- Header --
/xsl:variable





[EMAIL PROTECTED] wrote:

 Hi ,
 I am trying to create a style sheet so that the Header info appears only on
 page one.
 I want to know whether is it possible ?  Appreciate your reply.
 Thanks and Regards
 Rohit
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: stylesheet creation - visual editor or text editor?

2004-11-22 Thread Sven Waibel
fo:page-sequence master-reference=firstpage

 fo:static-content flow-name=firstheader
   fo:block font-size={fontsize}pt
 font-family=serif line-height=10pt color=red
   xsl:apply-templates select=html:header/
---


xsl:apply-templates select=html:header/




---
   /fo:block
 /fo:static-content
 fo:flow flow-name=xsl-region-body font-family
 =Times font-size=12pt
fo:block
  xsl:apply-templates select
 =html:body-content/
/fo:block
 /fo:flow
   /fo:page-sequence
   fo:page-sequence master-reference=restpages

 fo:static-content flow-name=region-before
   fo:block font-size={fontsize}pt
 font-family=serif line-height=10pt color=red
   xsl:apply-templates select=html:header/
---



xsl:apply-templates select=html:header/

No wonder that you have same content on all pages.
You apply same template like above. You have to match different content for 
different headers on pages.




---
   /fo:block
 /fo:static-content
 fo:flow flow-name=xsl-region-body font-family
 =Times font-size=12pt
fo:block
  xsl:apply-templates select
 =html:body-content/
/fo:block
 /fo:flow
   /fo:page-sequence

[EMAIL PROTECTED] wrote:

 Thanks Sven for the quick reply. I am trying to create a style sheet for
 XHMTL Content conversion to PDF.
 I am new at xsl and fop , hence finding it little difficult . Would
 appreciate if you help me out in finding where I am going wrong .
 Thanks and Regards
 Rohit
 
 !--Here is the code
 ---
 
 ?xml version=1.0 encoding=UTF-8?
 xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo
 =http://www.w3.org/1999/XSL/Format; xmlns:html
 =http://www.w3.org/1999/xhtml; version=1.0
   xsl:output indent=yes/
   !-- # --
   xsl:template match=/
 fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
   fo:layout-master-set
 !-- MAJOR CHANGES START --
   fo:simple-page-master master-name
 =firstpage page-height=11in page-width=8.5in margin-top=1.25in
 margin-bottom=1.0in margin-left=1.25in margin-right=1.25in
 fo:region-before region-name
 =firstheader extent=2.0in margin-left=0.5in margin-right=0.5in/
 fo:region-after extent=2.0in
 margin-left=0.5in margin-right=0.5in/
 fo:region-body margin-top=2.5cm
 margin-bottom=2.5cm /
   /fo:simple-page-master
   fo:simple-page-master master-name
 =restpages page-height=11in page-width=8.5in margin-top=1.25in
 margin-bottom=1.0in margin-left=1.25in margin-right=1.25in
 fo:region-before extent=2.0in
 margin-left=0.5in margin-right=0.5in/
 fo:region-after extent=2.0in
 margin-left=0.5in margin-right=0.5in/
 fo:region-body margin-top=2.5cm
 margin-bottom=2.5cm /
   /fo:simple-page-master
 
 !-- MAJOR CHANGES END --
   fo:page-sequence-master master-name=all
   fo:repeatable-page-master-alternatives
 fo:conditional-page-master-reference page-position
 =first
   master-reference=firstpage/
 fo:conditional-page-master-reference page-position
 =rest
 master-reference=restpages/
   /fo:repeatable-page-master-alternatives
   /fo:page-sequence-master
   /fo:layout-master-set
 
   fo:page-sequence master-reference=firstpage
 
 fo:static-content flow-name=firstheader
   fo:block font-size={fontsize}pt
 font-family=serif line-height=10pt color=red
   xsl:apply-templates select
 =html:header/
   /fo:block
 /fo:static-content
 fo:flow flow-name=xsl-region-body font-family
 =Times font-size=12pt
  

Re: References on same page

2004-11-19 Thread Sven Waibel
Hi,

that's a part of my xml file:
--
Here it's my origin from where i want to jump:

   combination id=103
parameter
equival
![CDATA[detail1]]
/equival
/parameter
   /combination
   combination id=101
parameter
equival
![CDATA[detail2]]
/equival
/parameter
   /combination


---
That should the destination of the jump:

tables
tb id=1
description![CDATA[detail1]]/description
parameter 
name=value![CDATA[0,1,2,3,4,5,6,7,8,9]]/value/parameter
parameter 
name=value![CDATA[a,b,c,d,e,f]]/value/parameter
/tb
tb id=2
description![CDATA[detail2]]/description
parameter 
name=value![CDATA[a,b,c,d,e,f]]/value/parameter
parameter name=value![CDATA[ö,ä,ü]]/value/parameter
 /tb
/tables


Sven


Andreas L. Delmelle wrote:
-Original Message-
From: Sven Waibel [mailto:[EMAIL PROTECTED]


 
 
 Hi Sven,
 
 snip /
 
My problem is that i don't know how many details i will have, so
i can't say id=detail1, id=detail2.

 
 
 The way I see it, the simplest solution would be to add a unique identifier
 to each detail-node in the source XML. That way, you can simply copy them
 from there without needing to know how much there are.
 
 Don't know of this makes sense. If it doesn't, don't hesitate to ask again
 (and if possible, add a small sample of your source XML --that will allow us
 to answer a bit more to the point maybe...)
 
 
 Greetz,
 
 Andreas
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



References on same page

2004-11-18 Thread Sven Waibel
Hello,

how can i achieve following:

PDF page:

...
...
Here are the details_no1 (click on it to jump to details number 1)
...
...
Here are the details_no2 (click on it to jump to details number 2)
...
...
...
...
details_no1 (now you will end here)
...
...
...
...
details_no2 (now you will end here)
...
...
...
...

My problem is that i don't know how many details i will have, so i can't say 
id=detail1, id=detail2.

I hope i expressed myself clearly.

Thanks and best regards,
Sven

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Font colour

2004-09-29 Thread Sven Waibel
Just use color instead of font-color!

Sven

Mark Donnelly wrote:

 Using the following fop:
 
 fo:table-header background-color=blue
   fo:table-row
   fo:table-cellfo:block font-color=whiteAccount
 No/fo:block/fo:table-cell
   fo:table-cellfo:block
 font-color=whiteCurrency/fo:block/fo:table-cell
   fo:table-cellfo:block
 font-color=whiteDate/fo:block/fo:table-cell
/fo:table-row
 /fo:table-header
 
 ...  Im getting the following output from the fop parser:
 
 
 [ERROR] property 'font-color' ignored
 [ERROR] property 'font-color' ignored
 [ERROR] property 'font-color' ignored
 
 Any ideas on changing the font colour? Ive set my table header background to
 be blue. Now I'd like my text to be white over it.
 
 
 Mark
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Avoid empty pages

2004-09-27 Thread Sven Waibel
My page breaks are right, i had another problem so it generates a emtpy page.
Thanks nevertheless.

Sven

J.Pietschmann wrote:
 Sven Waibel wrote:
 
 Yes, but how can i create a page break only if content follows?
 
 
 It depends on your source XML and/or how you generate the
 FO document. There is really no way to tell without you
 giving a few more details.
 
 J.Pietschmann
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



2 images with different sizes in a table row

2004-09-03 Thread Sven Waibel
Hello,

i've two images with different sizes, one 2cm the other one max. 2cm.

Table-row
---
| Image1  |Image2 |
---


So should be the height 2cm, but it doesn't work:
fo:external-graphic src=y:\bilder\im_2cm.jpg content-height=2cm/

I also tried to limit the height of the table row with
fo:table-row height=2cm
but this doesn't work, too.

Does anybody know a solution?

Thanks in advance

Sven

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: 2 images with different sizes in a table row

2004-09-03 Thread Sven Waibel
It doesn't work.

I don't understand it.

Sven

Chris Bowditch wrote:

 Sven Waibel wrote:
 
 Hello,

 i've two images with different sizes, one 2cm the other one max. 2cm.

 Table-row
 ---
 | Image1  |Image2 |
 ---


 So should be the height 2cm, but it doesn't work:
 fo:external-graphic src=y:\bilder\im_2cm.jpg content-height=2cm/
 
 
 content-height attribute hasnt been implemented. Try height instead.
 
 snip/
 
 Chris
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: 2 images with different sizes in a table row

2004-09-03 Thread Sven Waibel
That's it.
The first image was 72dpi but the other not.
Now i changed it to 72dpi and it works.

Thanks
Sven

Chris Bowditch wrote:

 Sven Waibel wrote:
 
 It doesn't work.

 I don't understand it.
 
 
 What behaviour are you observing? What is the dpi of your image? Without
 width/height specified, FOP defaults to 72dpi and sizes the image
 accordingly.  To scale your image to a particular size, I find that
 specifying both width and height on fo:external-graphic works for me.
 
 snip/
 
 Chris
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: use already existing PDF for XSL:FO

2004-09-02 Thread Sven Waibel
Hello Peter,

i don't think that's possible to get a xsl-fo file of a pdf.

Sven

Peter wrote:

 Hello lists,
 
 I know it's probably not the right list.
 
 situation: on a client i have a C++ application that creates a pdf by list 
 labels. the data from the client application ist transferd by webservice to
 a server, the server make out of the object an xml file.
 problem: Can I make a XSL:FO out of the PDF that already exists? otherwise I
 have to recreate the layout, structure and design of the document.
 
 thanks for your help
 
 
 with kind regards
 Peter Reiner
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Count with conditions

2004-09-01 Thread Sven Waibel
This could be possible, but i solved it another way.

if test something = run
  if test something1 = ok
count(.)
  /if
/if

Sven

Chris Pratt wrote:
 How about adding the counts together?  i.e. count(something = run) +
 count(something1 = ok)
   (*Chris*)
 
 -Original Message-
 From: Sven Waibel [mailto:[EMAIL PROTECTED] 
 Sent: Monday, August 30, 2004 4:02 am
 To: [EMAIL PROTECTED]
 Subject: Count with conditions
 
 Hello,
 
 i'd like to do a query like this one here
 
 count(something = run  something1 = ok)
 
 How can i do this?
 
 One condition is no simple: count(@activity[.='performed'])
 But how can i append the second condition?
 
 Thanks and regards
 Sven
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
**
* Sven Waibel   imbus AG *  
* Tel: 09131/7518-36Kleinseebacher Str.9 *
* Fax: 09131/7518-5091096 Möhrendorf *
* EMail:   [EMAIL PROTECTED]WWW: http://www.imbus.de *
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Pagebreak

2004-09-01 Thread Sven Waibel
Thanks Holger,
that's working for me.

Sven

Holger Dehnhardt wrote:

 Sven,
 
 xsl:if test=position()  1
   fo:block break-before=page/
 /xsl:if
 
 should do the trick. If anyone has a better solution, I would appreciate it.
 
 Holger
 
 Am Mittwoch, 1. September 2004 10:48 schrieb Sven Waibel:
 
Hello,

i've a problem with break-after=page respectively break-before=page.

I always get an empty page either before my content starts or after the
content.

first page | empty page | content | content | last page
or
first page | content | content | empty page |last page

That's consistent, but how can i achieve that no empty pages exist?

Regards
Sven

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
**
* Sven Waibel   imbus AG *  
* Tel: 09131/7518-36Kleinseebacher Str.9 *
* Fax: 09131/7518-5091096 Möhrendorf *
* EMail:   [EMAIL PROTECTED]WWW: http://www.imbus.de *
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Pagebreak

2004-09-01 Thread Sven Waibel
Hello,

i've a problem with break-after=page respectively break-before=page.

I always get an empty page either before my content starts or after the content.

first page | empty page | content | content | last page
or
first page | content | content | empty page |last page

That's consistent, but how can i achieve that no empty pages exist?

Regards
Sven

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Count with conditions

2004-08-30 Thread Sven Waibel
Hello,

i'd like to do a query like this one here

count(something = run  something1 = ok)

How can i do this?

One condition is no simple: count(@activity[.='performed'])
But how can i append the second condition?

Thanks and regards
Sven


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems with tables and templates

2004-08-27 Thread Sven Waibel
Hi,

the problem is that you can't create some elements of a table without ending it.
In html you can begin a table and in the next template you can add rows and 
cells and in another template you can close
the table, that's not possible in pdf. Or am i on the wrong way?

In the meantime i changed my xsl script completely, so it works in a completely 
other way.
It's rather a problem of xsl.

Thanks

Sven



Chris Pratt wrote:
 How about something like this:
 
 xsl:template match=theme
   table border=0
 tr
   td colspan=3xsl:value-of select=name//td
 /tr
 xsl:apply-templates select=test/
   /table
 /xsl:template
 
 xsl:template match=test
   tr
 tdxsl:apply-templates select=name//td
 tdxsl:apply-templates select=status//td
 tdxsl:apply-templates select=prio//td
   /tr
 /xsl:template
 
 That's obviously an HTML example, but it should be easy to change to FO table 
 layout if you need.
   (*Chris*)
 
 
 Original Message ---
 Hi,
 
 i have a table with 3 columns.
 
 Example:
 
 Table:TestStatus  Priority
   Theme1
   Test1   ok  1
   Test2   fail1
   
   Theme2
   Test1   ok  3
   Test2   ok  2
 
 
 The xml file:
   root
  theme
   name/name
   test
   name/name
   status/status
   prio/prio
   /test
  /theme
   /root
 
 
 
 Now my problem is the following:
 
 How can i achieve that the table will be filled up correctly?
 
 In my xsl-fo file i have a template that matches theme and calls template 
 matching test.
 
 So looks the table after filling it up with my solution:
 
 
 
 Table:TestStatus  Priority
   
   Test1   
   ok  1
   Test2   
   fail1
   
   
   Test1
   ok  3
   Test2   
   ok  2
 
 
 Thanks in advance
 
 Sven
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Create special Last Page

2004-08-27 Thread Sven Waibel
Hi,

i have a last page too and i use page-position=last  and it works.

Sven



[EMAIL PROTECTED] wrote:

 
 Hello,
  
 i need to create a special last page which is different to the other ones.
 So i want to use page-position=last and page-position=any within the
 conditional-page-master.
 Now i read in the list that page-position=last is not really implemented.
  
 Has anyone a workaround for this issue?
 How is it possible to create a separate last page?
  
 Best regards
 Martin
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: Create special Last Page

2004-08-27 Thread Sven Waibel
Oh yes, that's right.
I'm using 0.20.5.

regards
Sven

[EMAIL PROTECTED] wrote:
 Hi Sven,
 
 i´m using FOP version 0.20.1 and there it seems to be not implemented. Which 
 version are you using?
 
 Regards
 Martin
 
 -Ursprüngliche Nachricht-
 Von: Sven Waibel [mailto:[EMAIL PROTECTED]
 Gesendet: Freitag, 27. August 2004 11:33
 An: [EMAIL PROTECTED]
 Betreff: Re: Create special Last Page
 
 
 Hi,
 
 i have a last page too and i use page-position=last  and it works.
 
 Sven
 
 
 
 [EMAIL PROTECTED] wrote:
 
 
Hello,
 
i need to create a special last page which is different to the other ones.
So i want to use page-position=last and page-position=any within the
conditional-page-master.
Now i read in the list that page-position=last is not really implemented.
 
Has anyone a workaround for this issue?
How is it possible to create a separate last page?
 
Best regards
Martin
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
**
* Sven Waibel   imbus AG *  
* Tel: 09131/7518-36Kleinseebacher Str.9 *
* Fax: 09131/7518-5091096 Möhrendorf *
* EMail:   [EMAIL PROTECTED]WWW: http://www.imbus.de *
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Create special Last Page

2004-08-27 Thread Sven Waibel
Hi,
a shortend example(without indents):

fo:root
fo:layout-master-set
fo:simple-page-master master-name=firstmaster
page-height=29.7cm
page-width=21cm
margin-top=1.25cm
margin-left=2cm
margin-right=1.75cm
fo:region-body margin-top=4cm margin-bottom=2cm/
fo:region-before extent=3.5cm/
fo:region-after extent=1.5cm/
/fo:simple-page-master
fo:simple-page-master master-name=middlemaster
page-height=29.7cm
page-width=21cm
margin-top=1.25cm
margin-left=2cm
margin-right=1.75cm
fo:region-body margin-top=5.5cm margin-bottom=2cm/
fo:region-before extent=5.5cm/
fo:region-after extent=1.5cm/
/fo:simple-page-master
fo:simple-page-master master-name=lastmaster
page-height=29.7cm
page-width=21cm
margin-top=1.25cm
margin-left=2cm
margin-right=1.75cm
fo:region-body margin-top=4cm margin-bottom=2cm/
fo:region-before extent=3.5cm/
fo:region-after extent=1.5cm/
/fo:simple-page-master
fo:page-sequence-master master-name=all
fo:repeatable-page-master-alternatives
fo:conditional-page-master-reference master-reference=firstmaster 
page-position=first /
fo:conditional-page-master-reference master-reference=middlemaster 
page-position=rest /
fo:conditional-page-master-reference master-reference=lastmaster 
page-position=last /
/fo:repeatable-page-master-alternatives
/fo:page-sequence-master
/fo:layout-master-set
!-- ### --
!-- ### first  --
fo:page-sequence master-reference=firstmaster
!-- Header --
...
!-- Header-Ende --
!-- Footer --
fo:static-content flow-name=xsl-region-after
fo:table width=17.25cm font-size=8pt table-layout=fixed
fo:table-column column-width=4cm/
fo:table-column column-width=10cm/
fo:table-column column-width=3cm/
fo:table-body
fo:table-row
fo:table-cell
...
/fo:table-cell
fo:table-cell
...
/fo:table-cell
fo:table-cell
fo:block text-align=rightSeite
fo:page-number/ von
fo:page-number-citation ref-id=LastPage/
/fo:block
/fo:table-cell
/fo:table-row
fo:table-row
fo:table-cell
fo:block Alle Rechte vorbehalten./fo:block
/fo:table-cell
/fo:table-row
fo:table-row
fo:table-cell
fo:block All rights reserved./fo:block
/fo:table-cell
/fo:table-row
/fo:table-body
/fo:table
/fo:static-content
!-- Footer-Ende --
fo:flow flow-name=xsl-region-body
fo:block 
xsl:call-template name=first /
/fo:block
/fo:flow
/fo:page-sequence

!-- ###   --
fo:page-sequence master-reference=middlemaster
!-- Header --
...
!-- Header-Ende --
!-- Footer --
...
!-- Footer-Ende --
fo:flow flow-name=xsl-region-body
xsl:apply-templates select=test /
/fo:flow
/fo:page-sequence
!-- ###   --
!-- ###   --
fo:page-sequence master-reference=lastmaster
!-- Header --
...
!-- Header-Ende --
!-- Footer --
fo:static-content flow-name=xsl-region-after
fo:table width=17.25cm font-size=8pt table-layout=fixed
fo:table-column column-width=4cm/
fo:table-column column-width=10cm/
fo:table-column column-width=3cm/
fo:table-body
fo:table-row
fo:table-cell
...
/fo:table-cell
fo:table-cell
...
/fo:table-cell
fo:table-cell
fo:block text-align=rightSeite
fo:page-number/ von
fo:page-number-citation ref-id=LastPage/
/fo:block
/fo:table-cell
/fo:table-row
fo:table-row
fo:table-cell
fo:block Alle Rechte vorbehalten./fo:block
/fo:table-cell
/fo:table-row
fo:table-row
fo:table-cell
fo:block All rights reserved./fo:block
/fo:table-cell
/fo:table-row
/fo:table-body
/fo:table
/fo:static-content
!-- Footer-Ende --
fo:flow flow-name=xsl-region-body
fo:block 
xsl:call-template name=last /
/fo:block
fo:block id=LastPage /
/fo:flow
/fo:page-sequence
!-- ###   --
/fo:root

Regards
Sven

A. ROY wrote:

 Hi,
 I remember having tried page-position=last 2 months ago with FOP 0.20.5, 
 and it didn't work. The last page footer was identical as the 
 page-position=rest footer.
 Do you have a working example ? I use a workaround but if 
 page-position=last works, it interests me.
 
 Regards
 
 - Original Message -
 From: Sven Waibel [EMAIL PROTECTED]
 Date: Fri, 27 Aug 2004 11:32:37 +0200
 To: [EMAIL PROTECTED]
 Subject: Re: Create special Last Page
 
 
Hi,

i have a last page too and i use page-position=last  and it works.

Sven



[EMAIL PROTECTED] wrote:


Hello,
 
i need to create a special last page which is different to the other ones.
So i want to use page-position=last and page-position=any within the
conditional-page-master.
Now i read in the list that page-position=last is not really implemented.
 
Has anyone a workaround for this issue?
How is it possible to create a separate last page?
 
Best regards
Martin
 


-
To unsubscribe, e

Problems with tables and templates

2004-08-26 Thread Sven Waibel
Hi,

i have a table with 3 columns.

Example:

Table:  TestStatus  Priority
Theme1
Test1   ok  1
Test2   fail1

Theme2
Test1   ok  3
Test2   ok  2


The xml file:
root
   theme
name/name
test
name/name
status/status
prio/prio
/test
   /theme
/root



Now my problem is the following:

How can i achieve that the table will be filled up correctly?

In my xsl-fo file i have a template that matches theme and calls template 
matching test.

So looks the table after filling it up with my solution:



Table:  TestStatus  Priority

Test1   
ok  1
Test2   
fail1


Test1
ok  3
Test2   
ok  2


Thanks in advance

Sven


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Different Pages with different content

2004-08-25 Thread Sven Waibel
Hi,

i've got a first page, several pages and a last page.

First page should have certain data, several pages other data and the last page 
completely other data.

Where/How can i insert a statement like xsl:apply-templates select=last/ in 
my fo:page-sequence master-reference ...

It's hard to explain.

Short: I need for every page another content.

Thanks

Sven

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Different Pages with different content

2004-08-25 Thread Sven Waibel
Thanks a lot!

That's it.

Sven

Chris Bowditch wrote:

 Sven Waibel wrote:
 
 Hi,

 i've got a first page, several pages and a last page.

 First page should have certain data, several pages other data and the
 last page completely other data.

 Where/How can i insert a statement like xsl:apply-templates
 select=last/ in my fo:page-sequence master-reference ...
 
 
 The way to achieve this in XSL-FO is to define a page-sequence-master, e.g.
 
 fo:page-sequence-master master-name=all
 fo:repeatable-page-master-alternatives
 fo:conditional-page-master-reference master-reference=firstmaster
 page-position=first
 fo:conditional-page-master-reference master-reference=middlemaster
 page-position=rest
 fo:conditional-page-master-reference master-reference=lastmaster
 page-position=last
 /fo:repeatable-page-master-alternatives
 /fo:page-sequence-master
 
 then reference the page-sequence-master from the page-sequence, e.g.
 
 fo:page-sequence master-reference=all
 !-- content --
 /fo:page-sequence
 
 snip/
 
 The only problem is that in FOP, page-position=last has not been
 implemented! Depending on what differences you need, you can work around
 this to a limited extent using fo:marker.
 
 Chris
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
**
* Sven Waibel   imbus AG *  
* Tel: 09131/7518-36Kleinseebacher Str.9 *
* Fax: 09131/7518-5091096 Möhrendorf *
* EMail:   [EMAIL PROTECTED]WWW: http://www.imbus.de *
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Question about fo:leader

2004-08-25 Thread Sven Waibel
Hi,
so it works, but i don't know if it is what you want.

fo:block
This is a test department to test
/fo:block
fo:block text-align-last=justify
wrapping
fo:leader leader-pattern=dots/
(123) 457-2342 Ext. 123
/fo:block

Sven


Abney, Robby wrote:

 Getting rid of the white-space before and after the leader did not
 change the result...the PDF still generates with This is a test
 department to test wrapping... on the first line and then the phone
 number on the second line.
 
 I've also tried surrounding the dept name and phone number with
 fo:inline and using keep-with-next.within-line=always and
 keep-with-previous.within-line=always but could not get that to work.
 
 Any more ideas? :)
 
 Thanks again for everyone's help!
 
 -Robby
 -Original Message-
 From: J.Pietschmann [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, August 24, 2004 2:26 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Question about fo:leader
 
 [repost]
 Abney, Robby wrote:
 
   fo:block text-align-last=justify
   This is a test department to test wrapping
   fo:leader leader-pattern=dots/
   (123) 457-2342 Ext. 123
   /fo:block
  
   Ideally...I would like the PDF to display something like the
 following:
  
   This is a test department to test
   wrapping..(123) 457-2342 Ext. 123
  
   I have attached a PDF document to show how it currently is displayed.
  
   Is the attached format a result of FOP's implementation of leader, or
 is
   there something I'm missing from the FO snippet?
 
 
 You must get rid of the spaces before and after the leader
 if you want to avoid line breaks there. Use non-breaking spaces
 if necessary.
 
   fo:block text-align-last=justify
This is a test department to test wrappingfo:leader
 leader-pattern=dots/(123) 457-2342 Ext. 123
   /fo:block
 
 
 J.Pietschmann
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
**
* Sven Waibel   imbus AG *  
* Tel: 09131/7518-36Kleinseebacher Str.9 *
* Fax: 09131/7518-5091096 Möhrendorf *
* EMail:   [EMAIL PROTECTED]WWW: http://www.imbus.de *
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]