Hi all,
With an element para like this :
para
This is a test.
emphasis
This is another phrase.
/emphasis
/para
I want to obtain : Zhis is a test. Zhis is another phrase.
where 'Z' replaces all occurrences of 'T'.
The customization layer is :
!-- Essai de substitution --
xsl:template
Hello,
In the xsl:variable name="texte"
select="translate(text(),'T','Z')" / statement, the 'text()'
function only selects the direct child text node(s)(I think only
the first actually) of the para element. Try this:
xsl:variable name="texte"
I found the root of the problem. My docbook source contained an imagedata
element with an empty id attribute, for example:
imagedata fileref=../images/myimage.png width=60% scalefit=1 id=/
Regards
Christine
Hi Dave,
The ANT build file for the Docbook to EPUB transformation:
OXYGEN_INSTALL_DIR/frameworks/docbook/xsl/epub/bin/build.xml
was created by us (Oxygen XML Editor) from the original Python scripts
which were available to transform to EPUB.
We also added some custom processing which
All
1. Is there a better way of accessing the draft.png file in stock docbook
xsl tree from my customization layer so I don't have to change the version
number every time I update the XSL to a new version?
xsl:param name=draft.watermark.image
You could set up a symbolic link in your ../../doctools/ directory. Name the
symlink docbook-xsl and have it always point to the latest docbook-xsl-version
that you're using.
Then you:
-- always select ../../doctools/docbook-xsl/images/draft.png and never have
to edit the path
-- change only
Hello,
Another alternative that seems to work across versions of the stylesheets as
long as you have web access is to point to
http://docbook.sourceforge.net/release/images/draft.png.
Regards,
Mark
On Wed, May 25, 2011 at 9:40 PM, Barton Wright bwri...@streambase.comwrote:
You could set up a
Thanks - however, you just illuminated a few issues:
I support both Windows and Linux with the same distro, so a sym link would
not be an advantage. Yes, I could rename the directory every time I update,
but then one must actually dig into the directory to find version
information when
Hi,
While Maxime's example will indeed process all the text node descendants of a
para, it will string them together without any emphasis markup (but with
translated characters), and then the content will be repeated because the
xsl:apply-templates follows in the template.
In general it is