Adding the following to common.xsl handles the simple paragraph case...

<xsl:param name="entry.propagates.style" select="1"></xsl:param>

I find mention of these also...

<xsl:param name="para.propagates.style" select="1"></xsl:param>
<xsl:param name="phrase.propagates.style" select="1"></xsl:param>
<xsl:param name="emphasis.propagates.style" select="1"></xsl:param>

Adding them to common.xsl doesn't seem to cause problems and may cover case 
I haven't tested,
so I recommend these be added too.

Here's what testing shows up...

Give the file role.txt of the form....
= Test Roles - Paragraphs, Open Blocks, Tables

[role="foobar-simpara"]
Simple paragraph.

[role="foobar-open-block"]
--
First let's revisit what makes a *True Business*.

And apply a role to several paragraphs.

Including this one.
--

[role="foobar-table",width="100%",cols="1^.^,2<"]
|===================================
|image:images/icons/important.png[important]|some text
|===================================

Here are the results of different toolchains.

David-Favor-iMac> asciidoc role.txt
David-Favor-iMac> r gr
grep foobar *
role.html:<div class="paragraph foobar-simpara"><p>Simple 
paragraph.</p></div>
role.html:<div class="openblock foobar-open-block">
role.html:<div class="tableblock foobar-table">
role.txt:[role="foobar-simpara"]
role.txt:[role="foobar-open-block"]
role.txt:[role="foobar-table",width="100%",cols="1^.^,2<"]

This is as expected.

David-Favor-iMac> a2x -d book -f xhtml role.txt
David-Favor-iMac> tidy -q -i -utf8 -xml -wrap 100 -m role.html
David-Favor-iMac> r gr
grep foobar *
grep: images: Is a directory
role.html:        <p class="foobar-simpara">Simple paragraph.</p>
role.txt:[role="foobar-simpara"]
role.txt:[role="foobar-open-block"]
role.txt:[role="foobar-table",width="100%",cols="1^.^,2<"]

Using the docbook toolchain only propagates roles as classes for simpara.
Both open-block + tables are missing. If I manually run the toolchain 
intermediate
steps + tidy the .xml file then...

David-Favor-iMac> grep foobar *
grep: images: Is a directory
role.html:        <p class="foobar-simpara">Simple paragraph.</p>
role.txt:[role="foobar-simpara"]
role.txt:[role="foobar-open-block"]
role.txt:[role="foobar-table",width="100%",cols="1^.^,2<"]
role.xml:    <simpara role="foobar-simpara">Simple paragraph.</simpara>
role.xml:    <informaltable role="foobar-table" frame="all" rowsep="1" 
colsep="1">

So first problem to resolve is how to propagate role="foobar-open-block" 
into the .xml file.

Let me know where to start on this. After I this is fixed I'll move onto 
the ugliness of decoding how
<xsl:param name="entry.propagates.style" select="1"></xsl:param> effects 
xsl processing and
figure out how to do the same for the open-block + table case.

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to