RE: Example extension

2002-03-06 Thread Adrian Edwards

Thanks Keiron.  Look forward to seeing the example.

Can you please announce the commit on this thread for completeness of
the archive?

-Original Message-
From: Keiron Liddle [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 5 March 2002 9:24 PM
To: [EMAIL PROTECTED]
Subject: Re: Example extension


Hi,

I will note the type of extension you are considering.

I am going to commit an example extension of a different type to the cvs

trunk. This works in a slightly different way but demonstrates the
concept.



On 2002.03.04 03:00 Adrian Edwards wrote:
 Hi Keiron,
 
 Fair question, although it is not so much which classes to modify that
I
 am having trouble with, but just the mechanics of constructing and
 referencing an extension jar file that I would like to see.  Perhaps
it
 is my lack of experience with the Apache project, but the current
 documentation appears to assume some knowledge that I just do not
have.
 I am confident that seeing _any_ example extension at all, regardless
of
 its purpose, would clear up my confusion.
 
 There are a number of extensions I am considering, but each of them
 shares the common requirement of leveraging PDF functionality
 (understandably) not supported by XSL-FO.  So the basic model is that
 some custom elements in the FO tree need to produce layout objects
that
 result in some specific PDF syntax.
 
 I guess the simplest example would be that we would like something
like:
 
   my:script-link
 script=app.execMenuItem('AcroSrch:Query');
   Search/my:script-link
 
 to result in a text box referencing the following PDF action:
 
/S /JavaScript /JS (app.execMenuItem(AcroSrch:Query);) 
 
 Pretty simple stuff, and I can easily follow the processing of
 fo:basic-link to create the code I need, but how do I package that
code
 (or any other) so that FOP recognises script-link and processes it
with
 my code?
 
 I look forward to your response (and to the new way of doing things
 ;-)
 
 -Original Message-
 From: Keiron Liddle [mailto:[EMAIL PROTECTED]]
 Sent: Friday, 1 March 2002 8:13 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Example extension
 
 
 Hi,
 
 It really depends on what type of extension you want to do.
 This is an area that will change and become much easier in the future
 (in
 theory). Examples and help will be available for the new way of doing
 things.
 
 Could you tell us what you want your extension to do so that we have
 more
 ideas on what type of extensions people are thinking about. Then we
can
 work out how they should be handled if possible.
 
 So to answer your question, there are some extensions but it really
 depends on what you want to do.
 
 On 2002.03.01 08:33 Adrian Edwards wrote:
  Hi fop-dev,
 
  Has anyone written a simple(ish) FOP extension that they would be
  willing to share with the list (or even just me) as an example?  I'm
  talking full jar file here.  The lack of examples (other than the
 quite
  complicated SVG extension) in the docs and on the mailing lists is
 quite
  frustrating.
 
  We don't have to go through the work of writing it up for
publication
  (yet).  Just seeing the mechanics of someone else's jar would be
great
  for beginners.
 
  Thanks in advance.

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


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




Re: Example extension

2002-03-05 Thread Keiron Liddle

Hi,

I will note the type of extension you are considering.

I am going to commit an example extension of a different type to the cvs 
trunk. This works in a slightly different way but demonstrates the concept.



On 2002.03.04 03:00 Adrian Edwards wrote:
 Hi Keiron,
 
 Fair question, although it is not so much which classes to modify that I
 am having trouble with, but just the mechanics of constructing and
 referencing an extension jar file that I would like to see.  Perhaps it
 is my lack of experience with the Apache project, but the current
 documentation appears to assume some knowledge that I just do not have.
 I am confident that seeing _any_ example extension at all, regardless of
 its purpose, would clear up my confusion.
 
 There are a number of extensions I am considering, but each of them
 shares the common requirement of leveraging PDF functionality
 (understandably) not supported by XSL-FO.  So the basic model is that
 some custom elements in the FO tree need to produce layout objects that
 result in some specific PDF syntax.
 
 I guess the simplest example would be that we would like something like:
 
   my:script-link
 script=app.execMenuItem('AcroSrch:Query');
   Search/my:script-link
 
 to result in a text box referencing the following PDF action:
 
/S /JavaScript /JS (app.execMenuItem(AcroSrch:Query);) 
 
 Pretty simple stuff, and I can easily follow the processing of
 fo:basic-link to create the code I need, but how do I package that code
 (or any other) so that FOP recognises script-link and processes it with
 my code?
 
 I look forward to your response (and to the new way of doing things
 ;-)
 
 -Original Message-
 From: Keiron Liddle [mailto:[EMAIL PROTECTED]]
 Sent: Friday, 1 March 2002 8:13 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Example extension
 
 
 Hi,
 
 It really depends on what type of extension you want to do.
 This is an area that will change and become much easier in the future
 (in
 theory). Examples and help will be available for the new way of doing
 things.
 
 Could you tell us what you want your extension to do so that we have
 more
 ideas on what type of extensions people are thinking about. Then we can
 work out how they should be handled if possible.
 
 So to answer your question, there are some extensions but it really
 depends on what you want to do.
 
 On 2002.03.01 08:33 Adrian Edwards wrote:
  Hi fop-dev,
 
  Has anyone written a simple(ish) FOP extension that they would be
  willing to share with the list (or even just me) as an example?  I'm
  talking full jar file here.  The lack of examples (other than the
 quite
  complicated SVG extension) in the docs and on the mailing lists is
 quite
  frustrating.
 
  We don't have to go through the work of writing it up for publication
  (yet).  Just seeing the mechanics of someone else's jar would be great
  for beginners.
 
  Thanks in advance.

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




Re: Example extension

2002-03-05 Thread Chuck Paussa

Matt,


I've written the following sample fo document that puts in continued on 
following pages. Unfortunately fo:retrieve-marker does not work within 
the fo:flow so it cannot be implemented in the fo:table-header but 
instead in a table palced in the region-before. This is not a problem if 
you are starting a new page sequence for pages that will not have table 
elements that need a header.

Also, you can use this open-source product for watermarks 
http://www.etymon.com/pj/index.html

Chuck Paussa

Matt Savino wrote
 I've been told than an extension is the way to go for these two needed
 features:
 
 1. Add a string ['(Continued)'] to a table header if the table spans
 multiple pages. Note these tables are part of the content and 
 can start
 anywhere in the page. They could be seen more like paragraphs 
 or blocks
 with a title. Any other solution to this problem is acceptable. 
 
 2. Separate page number display for a subsection. IE - master document
 is page 4 of 7, but subsection is page 2 of 3.
 
 Please let me know if I'm missing any existing functionality 
 that solves
 these problems. I am planning to look into writing an extension some
 day. An example would certainly help.
 




?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
	fo:layout-master-set
		fo:simple-page-master master-name=simplet page-width=240mm page-height=100mm margin-top=1in margin-right=1in margin-left=1in margin-bottom=1in
			fo:region-before extent=1in/
			fo:region-body margin-top=1in/
		/fo:simple-page-master
	/fo:layout-master-set
	fo:page-sequence master-name=simplet
		fo:static-content flow-name=xsl-region-before
			fo:table padding=2pt table-layout=fixed
fo:table-column column-width=90mm/
fo:table-column column-width=90mm/
fo:table-body
	fo:table-row
		fo:table-cell
			fo:block border=0.5mm solid blackProject/fo:block
		/fo:table-cell
		fo:table-cell
			fo:block border=0.5mm solid blackAC/Seriesfo:retrieve-marker retrieve-class-name=test retrieve-position=first-starting-within-page//fo:block
		/fo:table-cell
	/fo:table-row
/fo:table-body
			/fo:table
		/fo:static-content
		fo:flow flow-name=xsl-region-body
	fo:table padding=2pt table-layout=fixed
		fo:table-column column-width=90mm/
		fo:table-column column-width=90mm/
		fo:table-body
	fo:table-row
		fo:table-cell
			fo:block border=0.5mm solid blackfo:marker marker-class-name=test/Blah Blah /fo:block
		/fo:table-cell
		fo:table-cell
			fo:block border=0.5mm solid blackBlah Blah  /fo:block
		/fo:table-cell
	/fo:table-row
	fo:table-row
		fo:table-cell
			fo:block border=0.5mm solid blackfo:marker marker-class-name=testContinued/fo:markerBlah Blah /fo:block
		/fo:table-cell
		fo:table-cell
			fo:block border=0.5mm solid blackBlah Blah  /fo:block
		/fo:table-cell
	/fo:table-row
	fo:table-row
		fo:table-cell
			fo:block border=0.5mm solid blackfo:marker marker-class-name=testContinued/fo:markerBlah Blah /fo:block
		/fo:table-cell
		fo:table-cell
			fo:block border=0.5mm solid blackBlah Blah  /fo:block
		/fo:table-cell
	/fo:table-row
	fo:table-row
		fo:table-cell
			fo:block border=0.5mm solid blackfo:marker marker-class-name=testContinued/fo:markerBlah Blah /fo:block
		/fo:table-cell
		fo:table-cell
			fo:block border=0.5mm solid blackBlah Blah  /fo:block
		/fo:table-cell
	/fo:table-row
	fo:table-row
		fo:table-cell
			fo:block border=0.5mm solid blackfo:marker marker-class-name=testContinued/fo:markerBlah Blah /fo:block
		/fo:table-cell
		fo:table-cell
			fo:block border=0.5mm solid blackBlah Blah  /fo:block
		/fo:table-cell
	/fo:table-row
	fo:table-row
		fo:table-cell
			fo:block border=0.5mm solid blackfo:marker marker-class-name=testContinued/fo:markerBlah Blah /fo:block
		/fo:table-cell
		fo:table-cell
			fo:block border=0.5mm solid blackBlah Blah  /fo:block
		/fo:table-cell
	/fo:table-row
	fo:table-row
		fo:table-cell
			fo:block border=0.5mm solid blackfo:marker marker-class-name=testContinued/fo:markerBlah Blah /fo:block
		/fo:table-cell
		fo:table-cell
			fo:block border=0.5mm solid blackBlah Blah  /fo:block
		/fo:table-cell
	/fo:table-row
		/fo:table-body
	/fo:table
		/fo:flow
	/fo:page-sequence
/fo:root



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


RE: Example extension

2002-03-05 Thread Savino, Matt C

Thanks Chuck. I think I can actually get this to work if I move my current
table header into a separate mirror table in the region-before. 

But at least on my lab report, it's going to involve moving a whole lot of
the nested table structure into static-content. Also the table headers will
stop lining up if we ever implement dynamic column sizing. Seems like a lot
of work for one little word, but if it's the only way I may have to do it.

Thanks again, I appreciate the example.


Matt Savino



 -Original Message-
 From: Chuck Paussa [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 05, 2002 11:02 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Example extension
 
 
 Matt,
 
 
 I've written the following sample fo document that puts in 
 continued on 
 following pages. Unfortunately fo:retrieve-marker does not 
 work within 
 the fo:flow so it cannot be implemented in the 
 fo:table-header but 
 instead in a table palced in the region-before. This is not a 
 problem if 
 you are starting a new page sequence for pages that will not 
 have table 
 elements that need a header.
 
 Also, you can use this open-source product for watermarks 
 http://www.etymon.com/pj/index.html
 
 Chuck Paussa
 
 Matt Savino wrote
  I've been told than an extension is the way to go for these 
 two needed
  features:
  
  1. Add a string ['(Continued)'] to a table header if the table spans
  multiple pages. Note these tables are part of the content and 
  can start
  anywhere in the page. They could be seen more like paragraphs 
  or blocks
  with a title. Any other solution to this problem is acceptable. 
  
  2. Separate page number display for a subsection. IE - 
 master document
  is page 4 of 7, but subsection is page 2 of 3.
  
  Please let me know if I'm missing any existing functionality 
  that solves
  these problems. I am planning to look into writing an extension some
  day. An example would certainly help.
  
 
 
 


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




RE: Example extension

2002-03-03 Thread Adrian Edwards

Hi Keiron,

Fair question, although it is not so much which classes to modify that I
am having trouble with, but just the mechanics of constructing and
referencing an extension jar file that I would like to see.  Perhaps it
is my lack of experience with the Apache project, but the current
documentation appears to assume some knowledge that I just do not have.
I am confident that seeing _any_ example extension at all, regardless of
its purpose, would clear up my confusion.

There are a number of extensions I am considering, but each of them
shares the common requirement of leveraging PDF functionality
(understandably) not supported by XSL-FO.  So the basic model is that
some custom elements in the FO tree need to produce layout objects that
result in some specific PDF syntax.

I guess the simplest example would be that we would like something like:

  my:script-link
script=app.execMenuItem('AcroSrch:Query');
  Search/my:script-link

to result in a text box referencing the following PDF action:

   /S /JavaScript /JS (app.execMenuItem(AcroSrch:Query);) 

Pretty simple stuff, and I can easily follow the processing of
fo:basic-link to create the code I need, but how do I package that code
(or any other) so that FOP recognises script-link and processes it with
my code?

I look forward to your response (and to the new way of doing things
;-)

-Original Message-
From: Keiron Liddle [mailto:[EMAIL PROTECTED]]
Sent: Friday, 1 March 2002 8:13 PM
To: [EMAIL PROTECTED]
Subject: Re: Example extension


Hi,

It really depends on what type of extension you want to do.
This is an area that will change and become much easier in the future
(in 
theory). Examples and help will be available for the new way of doing 
things.

Could you tell us what you want your extension to do so that we have
more 
ideas on what type of extensions people are thinking about. Then we can 
work out how they should be handled if possible.

So to answer your question, there are some extensions but it really 
depends on what you want to do.

On 2002.03.01 08:33 Adrian Edwards wrote:
 Hi fop-dev,
 
 Has anyone written a simple(ish) FOP extension that they would be
 willing to share with the list (or even just me) as an example?  I'm
 talking full jar file here.  The lack of examples (other than the
quite
 complicated SVG extension) in the docs and on the mailing lists is
quite
 frustrating.
 
 We don't have to go through the work of writing it up for publication
 (yet).  Just seeing the mechanics of someone else's jar would be great
 for beginners.
 
 Thanks in advance.

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


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




Re: Example extension

2002-03-01 Thread Jeremias Maerki

 Have a look at: http://www.exslt.org/

That's an XSLT extension, not a FOP extension. Right?

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch


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




Re: Example extension

2002-03-01 Thread Matt Savino

I've been told than an extension is the way to go for these two needed
features:

1. Add a string ['(Continued)'] to a table header if the table spans
multiple pages. Note these tables are part of the content and can start
anywhere in the page. They could be seen more like paragraphs or blocks
with a title. Any other solution to this problem is acceptable. 

2. Separate page number display for a subsection. IE - master document
is page 4 of 7, but subsection is page 2 of 3.

Please let me know if I'm missing any existing functionality that solves
these problems. I am planning to look into writing an extension some
day. An example would certainly help.


In the meantime, someone mentioned using iText for final stage add-on
functionality like this. Does that make any sense here?

Thanks a lot,
Matt


BTW, if anyone is in there poking around with the redesign, and feels
like creating a table-add-something-different-to-header-after-break
property, or even table-omit-header-before-break, I'd certainly love you
for it.



Keiron Liddle wrote:
 
 Hi,
 
 It really depends on what type of extension you want to do.
 This is an area that will change and become much easier in the future (in
 theory). Examples and help will be available for the new way of doing
 things.
 
 Could you tell us what you want your extension to do so that we have more
 ideas on what type of extensions people are thinking about. Then we can
 work out how they should be handled if possible.
 
 So to answer your question, there are some extensions but it really
 depends on what you want to do.
 
 On 2002.03.01 08:33 Adrian Edwards wrote:
  Hi fop-dev,
 
  Has anyone written a simple(ish) FOP extension that they would be
  willing to share with the list (or even just me) as an example?  I'm
  talking full jar file here.  The lack of examples (other than the quite
  complicated SVG extension) in the docs and on the mailing lists is quite
  frustrating.
 
  We don't have to go through the work of writing it up for publication
  (yet).  Just seeing the mechanics of someone else's jar would be great
  for beginners.
 
  Thanks in advance.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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




Example extension

2002-02-28 Thread Adrian Edwards

Hi fop-dev,

Has anyone written a simple(ish) FOP extension that they would be
willing to share with the list (or even just me) as an example?  I'm
talking full jar file here.  The lack of examples (other than the quite
complicated SVG extension) in the docs and on the mailing lists is quite
frustrating.

We don't have to go through the work of writing it up for publication
(yet).  Just seeing the mechanics of someone else's jar would be great
for beginners.

Thanks in advance.

Regards,

Adrian Edwards
Application Developer
Netimpact Online Publishing
http://www.netimpact.com.au


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




RE: Example extension

2002-02-28 Thread Adrian Edwards

Thanks for that very interesting link Michiel.  But I couldn't find any
information on extending fop there, just extending XSLT.  Of course, I
may have missed it...

I have no trouble with including elements from a custom namespace in an
XSL-FO document, it's just the Java code to get FOP to handle my
extension elements that I cannot find any good examples for.

Once again, I appreciate your attempt at help.

Anyone else?

- Adrian

-Original Message-
From: Michiel Verhoef [mailto:[EMAIL PROTECTED]]
Sent: Friday, 1 March 2002 6:36 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Example extension


Have a look at: http://www.exslt.org/

HTH,

Michiel

$ -Original Message-
$ From: Adrian Edwards [mailto:[EMAIL PROTECTED]]
$ Sent: vrijdag 1 maart 2002 8:34
$ To: [EMAIL PROTECTED]
$ Subject: Example extension
$ 
$ 
$ Hi fop-dev,
$ 
$ Has anyone written a simple(ish) FOP extension that they would be
$ willing to share with the list (or even just me) as an example?  I'm
$ talking full jar file here.  The lack of examples (other than 
$ the quite
$ complicated SVG extension) in the docs and on the mailing 
$ lists is quite
$ frustrating.
$ 
$ We don't have to go through the work of writing it up for publication
$ (yet).  Just seeing the mechanics of someone else's jar would be great
$ for beginners.
$ 
$ Thanks in advance.
$ 
$ Regards,
$ 
$ Adrian Edwards
$ Application Developer
$ Netimpact Online Publishing
$ http://www.netimpact.com.au
$ 
$ 
$ -
$ To unsubscribe, e-mail: [EMAIL PROTECTED]
$ For additional commands, email: [EMAIL PROTECTED]
$ 

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


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