Hi Aankhen,
Thanks for the reply.
On 03/30/2011 01:28 AM, Aankhen wrote:
Hi Matt,
On Wed, Mar 30, 2011 at 07:03, Matt Dew<mar...@osource.org> wrote:
Hi all,
I have some text that i want to indent. I'm using id attributes in the xml
and then using the css and xsl files. I can get the pdf and html outputs to
work fine, but I cannot figure out how to get the text output to indent.
[snip]
However I can't figure out how get the text output to be indented.
I've tried to use template matches;
<fo:block/> doesn't work,
<xsl:text>
</xsl:text> doesn't work.
What am I missing?
Do you have a sample file with the resultant output?<fo:block/>
won’t help you here, but<xsl:text>[indentation characters]</xsl:text>
appears to be working here.
Aankhen
It merges the whitespace; newline and the indent spaces.
Here's my src xml file:
-------
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
<book id="bigreq">
<chapter id='requests'>
<title>Requests</title>
<para role='box'><emphasis role='bold'>BigReqEnable</emphasis></para>
<para role='box'>→</para>
<para role='box'><emphasis>maximum-request-length</emphasis>: CARD32</para>
<para>This request enables extended-length protocol requests.</para>
</chapter>
</book>
--------
Here's my xsl file:
-------
<?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" version="1.0">
<xsl:import
href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
<xsl:template match="para[@role = 'box']">
<xsl:text>
</xsl:text>
<xsl:apply-templates/>
</xsl:template>
------
Here's the resulting output:
------
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Table of Contents
1. Requests
Chapter 1. Requests
BigReqEnable → maximum-request-length: CARD32
This request enables extended-length protocol requests.
------
If I play with the xsl file I can get:
------
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Table of Contents
1. Requests
Chapter 1. Requests
BigReqEnable
→
maximum-request-length: CARD32
This request enables extended-length protocol requests.
------
But what I want is:
------
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Table of Contents
1. Requests
Chapter 1. Requests
BigReqEnable
→
maximum-request-length: CARD32
This request enables extended-length protocol requests.
------
I've tried xmlto, xsltproc & fop, xsltproc & w3m...
I'm to the point now where I'm just confusing myself.
Ideas?
thanks,
Matt
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org