OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] How to transform the content of a <para> element?

Hash: SHA1

On 05/26/2011 08:09 AM, Christophe HARO wrote:
> But a sentence that follows </emphasis> before </para> is not outputed :
> <para>                                    <para>
>     This is a text.                           Zhis is a text.
>     <emphasis>                                <emphasis>
>         This is another phrase.    ==>            Zhis is another phrase.
>     </emphasis>                               </emphasis>
>     This was a Test.                      </para>
> </para>

I don’t believe you. (-:

I just ran your stylesheet and your source, copied and pasted from your
e-mail (and cleaned up for well-formedness), and the result was:

crism@portmore:~/tmp$ xsltproc haro.xsl haro.xml
<?xml version="1.0" encoding="utf-8"?>
    Zhis is a text.
        Zhis is another phrase.
    Zhis is a text.
        Zhis is another phrase.
    Zhis was a Zest.

Either you didn’t actually use the XSLT you posted, or something else is
going on.

To bring this back on-topic for DocBook-apps: generally, if you just add
a template matching text() to your customization layer, it should catch
all or nearly all of the text in your content.  (You will need to add it
in multiple modes, unfortunately.)

- -- 
Chris Maden, text nerd  <URL: http://crism.maden.org/ >
This marks the seventh time I have been left behind after the end
of the world.
GnuPG Fingerprint: C6E4 E2A9 C9F8 71AC 9724 CAA3 19F8 6677 0077 C319
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]