RE: Error

2002-03-21 Thread Woods, John T.
To all the fop-users. I want to apologize for sending the large files over
the internet. I am new to the whole user group thing and am learning how
this net ettiquete works. Please accept my apologies and I look forward to
working more profesionally with you guys in the future. :-)


John Woods

-Original Message-
From: Arved Sandstrom [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 20, 2002 2:12 PM
To: [EMAIL PROTECTED]
Subject: RE: Error


Hey, Ken, those of us on _cable_ connections aren't exactly impressed by
giant emails either. :-)

Arved

-Original Message-
From: G. Ken Holman [mailto:[EMAIL PROTECTED]
Sent: March 20, 2002 12:37 PM
To: [EMAIL PROTECTED]
Subject: Re: Error

Would you please *stop* sending 1Mb files over email?  Those of us on
dial-up connections and small ISP mail boxes can really get burned and it
isn't netiquette to almost wipe us out with repeated mailings of this size.

Thanks.

. Ken


RE: Error

2002-03-21 Thread Arved Sandstrom
Apache mailing lists are populated by pretty friendly people. Like Ken said,
not all of our mailboxes can easily absorb the hit of monster files and the
download time for dialup folks is significant; that being said, you're
reacting pretty well to the outcry and that'll stand you in good stead. :-)

Small snippets of source (FO and/or XML + XSLT, up to complete files as long
as they're not more than a few K in size) are cool. We welcome those because
they help us reproduce problems.

As far as the rest of the net etiquette goes, you may get pointed to various
sources. All of them boil down to this - most of us are volunteers with real
jobs doing other things, typically in software development. We have FAQs
(Frequently Asked Questions) available, there are mailing list archives,
there is the XSL specification, and there is the rest of the Web with lots
of resources, so what we really like to see are well-posed questions that
say: "OK, I've tried this, and this, and this, already...here's where I'm at
now, and here's the output showing what actually happened, and this is how
it is different from what I expected...can you help?"

You do that and by and large, maybe not right away, we'll address your
question. Cheerfully.

Regards,
Arved Sandstrom

-Original Message-
From: Woods, John T. [mailto:[EMAIL PROTECTED]
Sent: March 20, 2002 8:08 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Error


To all the fop-users. I want to apologize for sending the large files over
the internet. I am new to the whole user group thing and am learning how
this net ettiquete works. Please accept my apologies and I look forward to
working more profesionally with you guys in the future. :-)


John Woods

-Original Message-
From: Arved Sandstrom [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 20, 2002 2:12 PM
To: [EMAIL PROTECTED]
Subject: RE: Error


Hey, Ken, those of us on _cable_ connections aren't exactly impressed by
giant emails either. :-)

Arved

-Original Message-
From: G. Ken Holman [mailto:[EMAIL PROTECTED]
Sent: March 20, 2002 12:37 PM
To: [EMAIL PROTECTED]
Subject: Re: Error

Would you please *stop* sending 1Mb files over email?  Those of us on
dial-up connections and small ISP mail boxes can really get burned and it
isn't netiquette to almost wipe us out with repeated mailings of this size.

Thanks.

. Ken



feature and limitation lists

2002-03-21 Thread Fries, Markus, fiscus GmbH, Bonn
Hi,

a lot of questions on this list are caused by properties which are not
implemented.  Often there are workarounds though.  I think it would make
sense to put some real effort into
http://xml.apache.org/fop/limitations.html and
http://xml.apache.org/fop/implemented.html.  Or maybe there is such a
collection already of which I don't know?

Regards,

Markus Fries


Reporting Engine !!

2002-03-21 Thread @Basebeans.com
Subject: Reporting Engine !!
From: "Mathias Bogaert" <[EMAIL PROTECTED]>
 ===
Hi,

I'm looking for a decent report engine that can produce results in FO.
Anyone aware of such an engine (or any decent report engine that can nativly
write pdf)? Open source solution preferred!

Kind regards,

Mathias Bogaert






RE: Reporting Engine !!

2002-03-21 Thread j.pilgrim
Title: RE:  Reporting Engine !!






Hello,


Mathias wrote:

> I'm looking for a decent report engine that can produce results in FO.

> Anyone aware of such an engine (or any decent report engine 

> that can nativly

> write pdf)? Open source solution preferred!


Write a DOM (or JDOM or SAX) adatper for your object model resp. database (or an XSLT extension in the later case), query this DOM using XALAN producing some specific XML format (e.g. some simlified HTML) and transform this HTML for FO.

An example of a nice HTML to FO XSL can be found at 

        http://www.antennahouse.com/axf11sampleEN.htm

(Note that this example doesn't work 100% with FOP, since FOP doesn't implement 100% FO yet)


Regard,


Jens





Re: feature and limitation lists

2002-03-21 Thread Keiron Liddle
Hi,
If you have any suggestions about how to do this easily then share your 
ideas with us.

Do you have some volunteers in mind to put the real effort into getting 
this done?

On 2002.03.21 09:47 "Fries, Markus, fiscus GmbH, Bonn" wrote:
Hi,
a lot of questions on this list are caused by properties which are not
implemented.  Often there are workarounds though.  I think it would make
sense to put some real effort into
http://xml.apache.org/fop/limitations.html and
http://xml.apache.org/fop/implemented.html.  Or maybe there is such a
collection already of which I don't know?
Regards,
Markus Fries


RE: feature and limitation lists

2002-03-21 Thread j.pilgrim
Title: RE: feature and limitation lists






Hello,


Markus wrote:

> If you have any suggestions about how to do this easily then 

> share your ideas with us.


I've suggested (or asked) to create a special fop.dtd (not a fo.dtd).

This wouldn't regard all limitation and no workarounds, but it would be a very good tool for imlementing applications using FOP.

E.g.:

fo.dtd" (I know that there's no official fo.dtd, I took the one created by 

Nikolai Grigoriev <[EMAIL PROTECTED]>):


-8X8X---




  clip  CDATA  #IMPLIED

  [..]

">

[ ... block-properties is an entity based (indirectly) on area-properties ... ]






  %block-properties; 

>


-8X8X---



FOP.dtd:

-8X8X---



  

   [..]

">

[ ... block-properties is an entity based (indirectly) on area-properties ... ]






  %block-properties; 

>

-8X8X---


I don't know how FOP is implementing these features, maybe it would be easier to remove these entities and list all attributes and content elements explicit. But maybe these entities represent the internal implementation structure...

A fop.dtd will answer all these question like: Feature XYZ is not working, is it a bug in my FO document or a missing FOP feature. Maybe workarounds can be mentioned in the fop.dtd, too.

Since fo.dtd exists, it wouldn't be too much work to add these comments.


Regards,


Jens





Off-Topic: german "umlaute"

2002-03-21 Thread Mihael Knezevic
hi,

i know that this is off-topic, but perhaps someone knows an answer to my
question.

how can i render the german "umlaute" (characters like ä or ö) in an
pdf-document created with fop.

thanx in advance.

mk


Re: Off-Topic: german "umlaute"

2002-03-21 Thread Mihael Knezevic
sorry to have bothered you with my little question. after another session
of testing i finally got it.

i just changed the encoding to ISO-8859-1

thanx

mk


RE: feature and limitation lists

2002-03-21 Thread MAISONNY Benoit
Say we have an FO schema (possibly converted from that fo.dtd) and from that
we remove what FOP doesn't do yet. Then we can easily compare both schemas
with XSLT and generate a nice report. (I would volunteer to try and write
that XSLT/report if people think it can be useful).

Then we can add comments or annotations to tell about workarounds and about
what is implemented BUT still is not working as expected.

However, I suppose it would be a lot of work to remove unimplemented things
from fo.dtd or fo.xsd. What do you think?

Benoit


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 21, 2002 1:33 PM
To: [EMAIL PROTECTED]
Subject: RE: feature and limitation lists


Hello, 
Markus wrote: 
> If you have any suggestions about how to do this easily then 
> share your ideas with us. 
I've suggested (or asked) to create a special fop.dtd (not a fo.dtd). 
This wouldn't regard all limitation and no workarounds, but it would be a
very good tool for imlementing applications using FOP.
E.g.: 
fo.dtd" (I know that there's no official fo.dtd, I took the one created by 
Nikolai Grigoriev <[EMAIL PROTECTED]>): 
-8X8X--- 
 
[ ... block-properties is an entity based (indirectly) on area-properties
... ] 

 
-8X8X--- 


FOP.dtd: 
-8X8X--- 
 
   [..] 
"> 
[ ... block-properties is an entity based (indirectly) on area-properties
... ] 

 
-8X8X--- 
I don't know how FOP is implementing these features, maybe it would be
easier to remove these entities and list all attributes and content elements
explicit. But maybe these entities represent the internal implementation
structure...
A fop.dtd will answer all these question like: Feature XYZ is not working,
is it a bug in my FO document or a missing FOP feature. Maybe workarounds
can be mentioned in the fop.dtd, too.
Since fo.dtd exists, it wouldn't be too much work to add these comments. 
Regards, 
Jens 


AW: feature and limitation lists

2002-03-21 Thread Fries, Markus, fiscus GmbH, Bonn
>>On 2002.03.21 09:47 "Fries, Markus, fiscus GmbH, Bonn" wrote:
>> Hi,
>> 
>> a lot of questions on this list are caused by properties which are not
>> implemented.  Often there are workarounds though.  I think it would make
>> sense to put some real effort into
>> http://xml.apache.org/fop/limitations.html and
>> http://xml.apache.org/fop/implemented.html.  Or maybe there is such a
>> collection already of which I don't know?
>> 
>> Regards,
>> 
>> Markus Fries
>> 
>
>Hi,
>
>If you have any suggestions about how to do this easily then share your 
>ideas with us.
>
>Do you have some volunteers in mind to put the real effort into getting 
>this done?

Hi,

I can think of one volunteer so far :).  I have to do some documentation on
that stuff for my project anyway and if my supervisor does not mind I can
share that.  



Jens:
>I've suggested (or asked) to create a special fop.dtd (not a fo.dtd). 
>This wouldn't regard all limitation and no workarounds, but it would be a
very good tool for imlementing applications using FOP.
>
> ...
> A fop.dtd will answer all these question like: Feature XYZ is not working,
is it a bug in my FO 
> document or a missing FOP feature. Maybe workarounds can be mentioned in
the fop.dtd, too.
> Since fo.dtd exists, it wouldn't be too much work to add these comments. 

Yes, I think this would be very helpful.  But it has one drawback though.
You realize only after 
implementing that s.th. doesn't work and expensive rework is necessary.
Anyway the fop.dtd sounds 
like a very good start.  When it gets running we can think of rearranging
the collected information
in addiditional documentation.   

What do you think?

Best regards

Markus Fries


RE: feature and limitation lists

2002-03-21 Thread j.pilgrim
Title: RE: feature and limitation lists






Hello,


> Yes, I think this would be very helpful.  But it has one 

> drawback though.

> You realize only after 

> implementing that s.th. doesn't work and expensive rework is 

> necessary.


If you have a nice editor, you can use the DTD resp. XSchema while editing.

Benoit suggested to use an XSchema instead of a DTD for enabling nice reports.

So I change my suggestion: fop.xsd instead of fop.dtd (and fo.xsd instead of fo.dtd)

;-)


Regards,


Jens







AW: feature and limitation lists

2002-03-21 Thread Fries, Markus, fiscus GmbH, Bonn
Title: RE: feature and limitation lists



 

  -Ursprüngliche Nachricht-Von: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 21. März 2002 
  14:44An: [EMAIL PROTECTED]Betreff: RE: feature and 
  limitation lists
  Hello, 
  > Yes, I think this would be very helpful.  But it has 
  one > drawback though. > 
  You realize only after > implementing that s.th. 
  doesn't work and expensive rework is > 
  necessary. 
  If you have a nice editor, you can use the DTD resp. XSchema 
  while editing. Benoit suggested to use an XSchema 
  instead of a DTD for enabling nice reports. So I 
  change my suggestion: fop.xsd instead of fop.dtd (and fo.xsd instead of 
  fo.dtd) ;-) 
  Regards, 
  Jens 
  [Fries, Markus, fiscus GmbH, Bonn] 
  Well, probably my Emacs can do that too.  But I usually write 
  rarely complete XSL-FO prototypes before doing the real XSL scripts.  And 
  when doing s.th. like implementing keeps in the very end, I have to touch a 
  lot of stuff again.  On the other hand, I had read the feature and 
  limitation list first, and did not find any restrictions on 
  that.
   
  Regards,
   
  Markus


Error: null

2002-03-21 Thread Ian Taylor

I constructed my first xsl document to render a pdf  using a single
template. This worked fine. However the form was rather large so I
decided to split certain parts of it into separate templates and now I am
getting a null error. Please help
I used fop -xml TIPS.xml -xsl TIPS.xsl -pdf TIPS.pdf 
and get
C:\dev\homelet2002\dist\lib>java -cp
c:\fop-0.20.1\build\fop.jar;c:\fop-0.20.1\lib\batik.jar;c:\fop-0.20.1\lib\xalan.jar;c:\fop-0.20.1\l
ib\xerces.jar;c:\fop-0.20.1\lib\jimi-1.0.jar org.apache.fop.apps.Fop -xml
TIPS.xml -xsl TIPS.xsl -pdf TIPS.pdf
FOP 0.20.1
ERROR: null

xml:


Please print clearly. State Mr/Mrs/Miss/Ms/OtherText> Your insurance covers you, your partner and all members of your/their family permanently living in your home. Tenants sharing a property should complete separate applications.CoverText>
Address> Details> Do you require a 6 month policyDuration> etc etc xsl: xsl:template> type="text/xslfo"xsl:processing-instruction> fo:simple-page-master> fo:layout-master-set> fo:flow> fo:page-sequence> fo:root> xsl:template> fo:block> fo:table-cell> fo:table-row> fo:table-body> fo:table> Old XSL: Re: Zip distribution files?
[EMAIL PROTECTED] (Carlos) wrote:
> The issue has to do with incompatible
> line endings. If you try to run a tar.gz file on Windows it is likely to
> cause problems because of the line endings.

As already mentioned WinZip and many other compression utilities
can extract files from .tar.gz archives fine. Many of them are
also willing to do the linefeed conversion for you if asked,
check the online help or the manual for how to enable this.

Apart from this, it is not really necessary to do the conversion,
except for viewing the files in Notepad. You browser will display
the HTML files delivered in the distribution just fine without any
conversion, and FOP will work on the examples.

If you are worried about displaying the text files, use an
editor smart enough to do the right thing even if the file uses
Unix instead of Windows line end conventions. MS VisualStudio
is sufficient. Famous shareware editors like UltraEdit will work
too. Any XML aware editor will also work, by specification. The
real thing is Emacs, of course :-)

J.Pietschmann


svg from string

hi,
i've got a java class with a method, what generates an svg object and 
returns it as string.
i need fop to generate the svg into pdf, from the string.

How?
Thanks
Fishy


Re: HELP????

"Woods, John T." <[EMAIL PROTECTED]> wrote:
> Has anyone seen the messages

Yes, i have. So what?

Lean back.
First, ask yourself whether you should continue to experiment
with a program which clearly states:
> CVS FOP DOES NOT WORK - DO NOT EXPECT ANYTHING

Someone provided you with an installation with code that
is not intended for public use and is not distributed by
default. And which doesn't work. Which doesn't matter
because whoever installed the stuff on your machine
fubar'd it anyway.

Try to locate a working distribution. Look around in your
directories whether you find something which looks like
useful information.
If this fails, use the Google internet search engine and
type "fop download" into the search form. If you don't 
know what Google is or you can't locate the distribution
within 30 seconds after the search engine answered, ask
your superior for a basic training course.

Choose a directory for your FOP installation. You seem to have
used D:\fop-0.20.3 in earlier tries. Delete all content of
the directory, including all subdirectories. 
After you've downloaded a file named fop-0.20.3-bin.tar.gz
unpack it into this directory. If you don't know how to unpack
the file, ask a local wizard, or take hints from recent posts
on this list. Unpacking .tar.gz files is supposed to be
generally available knowledge and will not be discussed
further on this list.

Make the directory the current directory and type in the
following command:
 fop docs\examples\fo\simple.fo simple.pdf
You should see something like this:
D:\fop-0.20.3>java -cp build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;
lib\xerces-1.2.3.jar;lib\avalon-framework-4.0.jar;lib\logkit-1.0.jar;li
b\jimi-1.0.jar org.apache.fop.apps.Fop docs\examples\fo\simple.fo simple.pdf
[INFO]: FOP 0.20.3
[INFO]: building formatting object tree
[INFO]: [1]
[INFO]: Parsing of document complete, stopping renderer

Afterwards, there should be a file simple.pdf in your directory.

If you still see a message containing
 Could not find org.apache.xerces.parsers.SAXParser
or 
 ClassNotFoundException
or 
 DOES NOT WORK
somewhere this means you screwed up. This is, however, not a problem
with FOP. Ask a local guru to fix it for you.

Furthermore:
> Has anyone seen the messages in bold. 

Do not assume everyone else uses the same mail client as you. In
particular, to many people it would be presented similar to this:
http://marc.theaimsgroup.com/?l=fop-user&m=101664483513565&w=2

You are advised to read the instructions you already got again.
Read them carefully. You are already on the brink of being
killfiled.

J.Pietschmann


New Problems runnig FOP

Hi Christian, your hint was good.
I executed the fop.bat but I got two new problems now.
I had to delete the Xalan.jar and xerces.jar from the classpath, so that the
changes took effect, now I can´t use xalan and xerces anymore (at least not, if
I want to use fop...), which is a minor problem but a little bit unnerving.

If I want to start fop from command line, it now comes up with the error
message: java.lang.NoClassDefFoundError: org/xml/sax/SAXException
Shouldn´t this be handled by the xerces-1.2.3.jar?

Can somebody help?...Please

Markus




Re: Subject: text colums

Lauren Commons <[EMAIL PROTECTED]> wrote:
> I am producing pdfs that will have a bullet list that
> I want to display in two columns, like newspaper
> columns.  I won't know in advance how many items will
> be in the list.

I suppose you have
...
  Item1
  Item2
  Item3
...
and want to display
  o Item1 o Item3
  o Item2
or perhaps
  o Item1 o Item2
  o Item3
(note the difference)

This is not easy to achieve. A first shot would be to use
a two column table distribute the list items equally between
the columns. You have also to decide whether you want to use
one row in the table or a row for every pair of items.
A sample XSLT snippet (untested):
  



  

  

  
  

  

  

  
This will generate the secont variant, with one row. If you want
multiple rows, move the  into the xsl:for-each
The first variant is a bit harder to get.

Whether the table solution matches your expectations is up to
you. Having two columns with items flowing from the first
to the second column to fill a minimal area seems to be much
harder unless you want to have the whole page in two columns.

Ask on the XSL list for more ideas.

J.Pietschmann


New Problems runnig FOP

[EMAIL PROTECTED] wrote:
> I had to delete the Xalan.jar and xerces.jar from the classpath, so tha=
> t the
> changes took effect, now I can=B4t use xalan and xerces anymore (at lea=
> st not, if
> I want to use fop...), which is a minor problem but a little bit unnerv=
> ing.

The common approach is the following.
1. Clear your gobal classpath.
2. For each Java application you want to use, write a batch file
 which invokes the JRE with the appropriate classpath in the -classpath
 command line parameter. Use absolute file path settings, this will
 allow you to invoke the batch file from every directory you like.
In fact, fop.bat does exactly that. It should not be necessary to
drop anything from your global CLASSPATH environment variable, because
the -classpath swith overrides it anyway.
If you want to call fop.bat from any directory, make the path names
therein absolute by prepending the path to the directory where fop.bat
resides.

The Xalan distribution contains a similar batch file for executing
Xalan. Use it. Perhaps edit it to fit your needs. You can also use
the Xalan jar distributed with FOP, without downloading the latest
Xalan. The instructions how to run it at
 http://xml.apache.org/xalan-j/getstarted.html
still apply.

> If I want to start fop from command line, it now comes up with the erro=
> r
> message: java.lang.NoClassDefFoundError: org/xml/sax/SAXException
> Shouldn=B4t this be handled by the xerces-1.2.3.jar?

The JRE doesn't find the jar. Back to field one.

J.Pietschmann


Re: Passing XML as String and XSL as File

"Shaikh, Mehmood" <[EMAIL PROTECTED]> wrote:
> How do I call FOP passing XML as a String (instead of file) and XSL as file?

Instantiate a transformer yourself and feed it a StringReader. Let
it generate a SAXResult and plumb it to a FOP Driver.
  StreamSource xslSource=new StreamSource(new File("foo.xsl"));
  StreamSource xmlSource=new StreamSource(new StringReader("

Re: Error compiling fop - CodePointMapping.java is empty

Sam Prokop wrote:
Hi, compiling fop-0.20.3 on win2k with java 1.4.0 i get the following
message  
[..]
<-->  
[echo] Compiling the sources
[javac] Compiling 328 source files to
C:\fop\src\fop-0.20.3\build\classes
[javac] Note: sun.tools.javac.Main has been deprecated.
[javac] error: File
C:\fop\src\fop-0.20.3\build\src\org\apache\fop\render\pd
f\CodePointMapping.java does not contain type
org.apache.fop.render.pdf.CodePoin
tMapping as expected. Please adjust the class path so that the file does
not app
ear in the package org\apache\fop\render\pdf.
[javac]
[..]
Has anyone an idea, what i did wrong?
Maybe using xerces2 ?
Please try compiling with the jars from the distribution.
Christian


Type 1 Font Embedding Problem / Postscript errors printing FOP PDFs

Does anyone have experience with postscript errors while printing FOP PDFs? 
I thought I had seen a similar thread on the list a while back, but can't 
find it in the archives.

The PDF looks perfect, prints on a variety of printers (both inkjet/PCL, 
and some SOHO postscript laser printers), but when I sent it to a service 
bureau to get it run off, all of their equipment (both a big xerox monster 
and several smaller more ordinary laser printers) generated postscript 
errors when trying to print it.

These guys can print non-FOP PDF's fine, and have experienced this failure 
with our FOP-output PDF from Acrobat Reader 5 and Acrobat 4.2 on both 
Windows and Mac.

My template is pretty ordinary but does use embedded fonts, both TrueType 
and Type 1. I'm wondering if that's the source of the problem. If I view 
the PDF in ghostscript/ghostview, I get the following warning messages in 
the output:

    Warning: Embedded Type1 font in PFB format is not valid PDF.
    Warning: Type 1 PFB segment length and Length 2 value do not match.
    Warning: Type 1 PFB segment length and Length 3 value do not match.
I am in the process of sending test PDFs to the printer without embedded 
fonts to see if that makes the difference. I have a hunch it will.

If anyone else has had a similar problem, or if anyone can offer guidance 
about possible issues with the Type 1 font handling in FOP, I'd love to 
hear it.

-David


workaround for white-space="pre"?

I'm new to this list -- pls advise if there's a better place to address
this question.

I'd like to use FOP to create PDFs of computer output, using XSL for
white-space="pre" to preserve line ends, spaces, and blank lines.  This is
producing a "not implemented yet" message:

[INFO]: FOP 0.20.3
[INFO]: building formatting object tree
[WARN]: property - "white-space-treatment" is not implemented yet.
[WARN]: property - "white-space" is not implemented yet.

Anyone know of a workaround?  Or if there is a general schedule or priority
for when this might be implemented?

Any direct help or direction to another source of info would be appreciated
-- thanks.




PDF Link getting submitted twice

Hi,

I am getting a strange problem. I have a link on a HTML page to get PDF
report. I generate the PDF on the fly using servlet. Everything is fine,
except the request is getting submitted twice. I checked the javascript
staff which submits the page on click of that link. It seems when the PDF
plug-in getting activated, its trying to open the URL once again. Any idea!!

Thanks,
Sumanta.


--
This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.




Re: Subject: text colums

I think this will probably work fine.  Thanks for the
ideas.


--- Joerg Pietschmann <[EMAIL PROTECTED]>
wrote:
> Lauren Commons <[EMAIL PROTECTED]> wrote:
> > I am producing pdfs that will have a bullet list
> that
> > I want to display in two columns, like newspaper
> > columns.  I won't know in advance how many items
> will
> > be in the list.
> 
> I suppose you have
> ...
>   Item1
>   Item2
>   Item3
> ...
> and want to display
>   o Item1 o Item3
>   o Item2
> or perhaps
>   o Item1 o Item2
>   o Item3
> (note the difference)
> 
> This is not easy to achieve. A first shot would be
> to use
> a two column table distribute the list items equally
> between
> the columns. You have also to decide whether you
> want to use
> one row in the table or a row for every pair of
> items.
> A sample XSLT snippet (untested):
>   
>  column-width="proportional-column-width()"/>
>  column-width="proportional-column-width()"/>
> 
>   
> 
>   
> 
>   
>   
>  select="following-sibling:li">
>   
> 
>   
> 
>   
> This will generate the secont variant, with one row.
> If you want
> multiple rows, move the  into the
> xsl:for-each
> The first variant is a bit harder to get.
> 
> Whether the table solution matches your expectations
> is up to
> you. Having two columns with items flowing from the
> first
> to the second column to fill a minimal area seems to
> be much
> harder unless you want to have the whole page in two
> columns.
> 
> Ask on the XSL list for more ideas.
> 
> J.Pietschmann


=
-
Mr Lauren Commons
DISCLAIMER: The opinions expressed 
ARE in fact those of my employer.

__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/