[docbook-apps] Image manipulation via XSLT extensions

2007-08-17 Thread Colin Shapiro
Hello, Unfortunately, there is no single graphics file format that meets all needs. - Bob Bob is right. One of the biggest annoyances I have when writing documents is that, when I want to insert a graphic, I must reference and maintain multiple versions of the image file in order to

Re: [docbook-apps] Image manipulation via XSLT extensions

2007-08-17 Thread Colin Shapiro
the command line, but I haven't tried it. David -- *From:* Colin Shapiro [mailto:[EMAIL PROTECTED] *Sent:* Friday, August 17, 2007 10:24 AM *To:* docbook-apps@lists.oasis-open.org *Subject:* [docbook-apps] Image manipulation via XSLT extensions Hello, Unfortunately

Re: [docbook-apps] Image manipulation via XSLT extensions

2007-08-17 Thread Colin Shapiro
On 8/17/07, Tony Graham [EMAIL PROTECTED] wrote: An XSLT transform to read XML and generate a batch file or shell script is probably a common occurrence: I do it quite often. You know, that's something I've never actually thought of before. Just have a stylesheet generate a shell script...

Re: [docbook-apps] Any source of Plain-text stylesheets?

2007-08-13 Thread Colin Shapiro
Hi, I'm not quite sure what you're asking for. If you want a stylesheet that simply returns the text from an XML document and does nothing else, then I believe something as simple as: xsl:template match=/ xsl:apply-templates/ /xsl:template ...would suffice. Unless you want it in some

Re: [docbook-apps] Balanced last page in two column output

2007-08-01 Thread Colin Shapiro
I can confirm that Ken's solution works with FOP (I accidentally discovered this myself): Yes, include an empty spanned block at the end of your flow. The formatter will try to balance all of your columns on top of this empty block. Modulo keeps, breaks, widows, orphans, etc. With XEP, you can

Re: [docbook-apps] Set an image as a full-page background

2007-07-27 Thread Colin Shapiro
Hi, I have done this, but only in one specific way using XEP. I did this using a block-container with a fixed position, a hieght/width of the full page, and a z-index value to ensure it is below everything else: fo:block-container background-image=background.svg absolute-position=fixed

[docbook-apps] Re: [docbook] Element for an author's website URL

2007-07-24 Thread Colin Shapiro
The link is a general purpose hypertext element. The element I propose has nothing to do with hypertext. It is simply another part of an address, same as email, phone, etc. It is another bit of information about how to contact a person/organization. If we already have email, then why not web

[docbook-apps] Re: [docbook] Element for an author's website URL

2007-07-24 Thread Colin Shapiro
[Note: I accidentally CCed the wrong list with the below message. docbook-apps, feel free to ignore.] The link is a general purpose hypertext element. The element I propose has nothing to do with hypertext. It is simply another part of an address, same as email, phone, etc. It is another bit

[docbook-apps] Re: Shading columns with a background color

2007-07-20 Thread Colin Shapiro
My apologies, I had some typos in the code I posted. Here it is again: xsl:param name=column.count select=3/ xsl:param name=column.gap select=0.1in/ xsl:param name=page.width select=8.5in/ xsl:variable name=column.gap.pt xsl:call-template name=length-in-points xsl:with-param name=length

[docbook-apps] Re: Shading columns with a background color

2007-07-20 Thread Colin Shapiro
this. Colin On 7/20/07, Colin Shapiro [EMAIL PROTECTED] wrote: Hi, I have an XSL-FO document that uses a multi-column page layout. I'd like to shade the columns of the page with a background color - only the columns, not the entire page. See the attached image for a sketch of what I want

Re: [docbook-apps] FOP vs Saxon?

2007-06-26 Thread Colin Shapiro
Er... isn't Saxon an XSLT processor? I know there are multiple versions of Saxon, so maybe I'm missing something, but I do believe these two applications are for different purposes. Colin On 6/26/07, Linux Solutions [EMAIL PROTECTED] wrote: Hello, I'm using docbook5 and FOP 0.93 to generate

Re: [docbook-apps] How to center a table?

2007-05-25 Thread Colin Shapiro
Hi, The method shown on the FOP website has worked for me in the past (using FOP, of course): http://xmlgraphics.apache.org/fop/fo.html#fo-center-table-horizon Colin On 5/25/07, Ellen Juhlin [EMAIL PROTECTED] wrote: Hello friendly list people, I know this topic has come up in the past a

Re: [docbook-apps] How to center a table?

2007-05-25 Thread Colin Shapiro
I should add that this wasn't with DocBook that I used this method (I replied without realizing), so this may not help you figure out how to customize the DocBook templates. Colin On 5/25/07, Colin Shapiro [EMAIL PROTECTED] wrote: Hi, The method shown on the FOP website has worked for me

Re: [docbook-apps] Background image in header

2007-05-24 Thread Colin Shapiro
Hi, The problem is that you're putting the background image attribute in the header.content template, which is effectively applying it to a regular fo:block. Take a look at this fragment of code from the template header.table. fo:table-cell text-align=left

Re: [docbook-apps] Docbook Editors

2007-05-14 Thread Colin Shapiro
How can XML editors be WYSIWYG, when there's no way to tell what a document will look like after XSLT? Or do they basically do on-the-fly transformations, to preview what it will look like in HTML, in print, etc.? Just curious. On 5/14/07, David Cramer (Tech Pubs) [EMAIL PROTECTED] wrote:

[docbook-apps] oXygen/ XML editor very slow with DocBook 5.0

2007-05-03 Thread Colin Shapiro
Hi, Maybe someone can give me a clue here. I use the oXygen/ XML editor, and I recently started working with DocBook 5.0. The software is *very* slow when working with db5 files. I installed a local copy of the 5.0CR3 schema, and made an entry at the top of Oxygen's Default Schema

[docbook-apps] Re: oXygen/ XML editor very slow with DocBook 5.0

2007-05-03 Thread Colin Shapiro
Almost forgot... I'm running the latest version of Oxygen (8.1). Colin On 5/3/07, Colin Shapiro [EMAIL PROTECTED] wrote: Hi, Maybe someone can give me a clue here. I use the oXygen/ XML editor, and I recently started working with DocBook 5.0. The software is *very* slow when working

Re: [docbook-apps] FW: Re: [docbook] recommend a tag for user accounts in computer documentation?

2007-04-30 Thread Colin Shapiro
Yes, that works as well. There are several choices here, and what you actually use will depend on the context and what you want to do with the document. For example, if all you want to convey is that the item is a username, then this will probably suffice: systemitem

[docbook-apps] Re: [docbook] recommend a tag for user accounts in computer documentation?

2007-04-29 Thread Colin Shapiro
Hi, I would probably use UserInput or Literal. You can always add role=username to one of these if you want to do something special with usernames in your document. Colin On 4/29/07, David O'Brien [EMAIL PROTECTED] wrote: Hi I'm looking for recommendations for a suitable tag for user

Re: [docbook-apps] Images in PDF appear too large

2007-04-27 Thread Colin Shapiro
On 4/27/07, T.G. Mutato [EMAIL PROTECTED] wrote: I think the bottom line here is that specifying pixel dimensions (if you want to display an image as-is) isn't too useful with FOP since there's no way to way to tell FOP to ignore the dpi info. So far just setting the dpi to 96 in the image

Re: [docbook-apps] Images in PDF appear too large

2007-04-26 Thread Colin Shapiro
I'm currently working with a custom stylesheet I wrote from scratch (not DocBook) to generate FO from an XML document, and I'm using FOP v0.93. I've found that the image scaling does work. If I use the following FO: fo:external-graphic src=image.jpg width=100px content-width=scale-to-fit/

Re: [docbook-apps] Images in PDF appear too large

2007-04-26 Thread Colin Shapiro
). Colin On 4/26/07, T.G. Mutato [EMAIL PROTECTED] wrote: fo:external-graphic src=image.jpg width=100px content-width=scale-to-fit/ Was this for an image that is 100 pixels wide Colin? Or was the example meant to say ...width=100%...? Thanks, tgm On 4/26/07, Colin Shapiro [EMAIL PROTECTED] wrote

Re: [docbook-apps] FOP 0.93 Span=inherit warning

2007-04-25 Thread Colin Shapiro
Hi, I'm not sure that this is really anything to worry about. I just checked the XSL spec out of curiosity, and it doesn't seem to say anything that indicates it is improper to use the inherit keyword on the property of an FO object when its parent doesn't have the same property explicitly set.

[docbook-apps] Re: [docbook] Interesting possible HTML XSLT conversion

2007-04-20 Thread Colin Shapiro
Also driven by JavaScript: http://www.w3.org/2005/Talks/Tools/Slidy/slidy.js It would be fairly easy to customize the HTML in this manner; it looks like it's just divided up into a number of div class=slide elements. DocBook sections become div class=slide. But it relies on JavaScript for the

[docbook-apps] DocBook and OpenOffice

2007-04-18 Thread Colin Shapiro
Hi all, I'm looking to use OpenOffice Writer as a temporary editor for DocBook documents. Basically, I need to allow certain people to edit DocBook documents who have never worked with markup languages before, but are familiar with OpenOffice. I've played around with OpenOffice's built-in

Re: [docbook-apps] DocBook and OpenOffice

2007-04-18 Thread Colin Shapiro
paragraph-based styles work but there is still more work to do on tables and images. The stylesheets haven't been checked-in to SVN yet because they're not quite finished, but if you would like a sneak-peek then let me know. Cheers, Steve Ball On 19/04/2007, at 6:55 AM, Colin Shapiro wrote: Hi all

[docbook-apps] Re: [docbook] should I use section or sect1, sect2, sect3 etc?

2007-04-13 Thread Colin Shapiro
Using sect[1-5] also makes it easier to customize things. For example, if you want sect2 to have a unique look, you can put a template in your customization layer matching only sect2. If you just use section everywhere, it makes it harder to customize particular section levels (you can of

Re: [docbook-apps] Header out of alignment - space before graphic

2007-04-12 Thread Colin Shapiro
Ah, I forgot that there's another fo:block above what you put in header.content: fo:block xsl:call-template name=header.content xsl:with-param name=pageclass select=$pageclass/ xsl:with-param name=sequence select=$sequence/

Re: [docbook-apps] DocBook 4.5, XSL 1.72.0 and FOP 0.93 all working together?

2007-04-11 Thread Colin Shapiro
Hi, Well, I use this very combination of tools that you describe, and I never had such problems. But I did copy your XML source and try it for myself. Interestingly, I got the same error: SEVERE: Exception java.lang.ClassCastException: org.apache.fop.layoutmgr.inline.WrapperLayoutManager

[docbook-apps] Dynamically creating an FO table based on content length

2007-04-03 Thread Colin Shapiro
Hi all, I have a problem which I can't think of a good way to solve. I realize that I am perhaps approaching this problem incorrectly, so I hope someone can point me in the right direction. Suppose that I have an arbitrary series of paragraphs in my source file, containing an arbitrary amount

Re: [docbook-apps] Dynamically creating an FO table based on content length

2007-04-03 Thread Colin Shapiro
Corp -Original Message- *From:* Colin Shapiro [mailto:[EMAIL PROTECTED] *Sent:* Tuesday, April 03, 2007 2:14 PM *To:* docbook-apps@lists.oasis-open.org *Subject:* [docbook-apps] Dynamically creating an FO table based on content length Hi all, I have a problem which I can't think of a good

Re: [docbook-apps] Carriage Return/Line Feed within informaltable cells on PDF

2007-03-30 Thread Colin Shapiro
That's a lot simpler than the way I had done it in the past. Thanks. Colin On 3/29/07, Ron Catterall [EMAIL PROTECTED] wrote: It's very easy to put in an extra fo block to act as a line break !-- PI to cause a line break - usage ?lb? -- xsl:template match=processing-instruction('lb')

Re: [docbook-apps] Carriage Return/Line Feed within informaltable cells on PDF

2007-03-29 Thread Colin Shapiro
I have personally never been able to get any kind of line breaks to work by attempting to insert them into a source file. Instead, I have had to do things with a customization layer in XSLT, to produce separate fo:block elements to break lines. I can post an example if you'd like, but in the

Re: [docbook-apps] Text style and color

2007-03-26 Thread Colin Shapiro
Hi Xavier, I think you're going to be stuck with writing a customization layer to do any of this. I'm not quite sure what you mean by customizing text color ... without developing it in my customization layer. You simply can't customize such properties without putting them in a customization

[docbook-apps] Different numbers of columns on a single page?

2007-02-28 Thread Colin Shapiro
Hello, Simple question that may not have a simple answer: I understand how to set up custom page masters for FO output with different numbers of columns, but what if I want to change the column layout mid-page? Say, for example, that I want half a page to have three columns, and the other half

[docbook-apps] Re: Different numbers of columns on a single page?

2007-02-28 Thread Colin Shapiro
Ah, I just discovered the span attribute. So, I can make my entire page three-columns, and then use span=all on the FO objects that I want to span across these columns. Can someone just confirm that this is the best way to do what I am after? Thanks, Colin On 2/28/07, Colin Shapiro [EMAIL

Re: [docbook-apps] Re: Different numbers of columns on a single page?

2007-02-28 Thread Colin Shapiro
a spanned block must be a direct child of fo:flow. But DocBook uses nested fo:block elements for sections to apply section properties. That can be worked around, if you need it. Bob Stayton Sagehill Enterprises DocBook Consulting [EMAIL PROTECTED] - Original Message - *From:* Colin Shapiro

[docbook-apps] Best online reference for XSL-FO?

2007-02-28 Thread Colin Shapiro
This should be trivial, but I'm having a hard time finding a good, complete XSL-FO reference. I normally turn to W3 Schools for stuff like this, but their XSL-FO reference http://www.w3schools.com/xslfo/xslfo_reference.aspseems sparse... the examples are shallow and some of the attributes are