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: setting class values for HTML elements (tables?)


Hi, there, I am aware of how to set class values for docbook elements
for HTML output. I am using the latest non-namespaced docbook
stylesheets.  However, this trick does not seem to work for the
INFORMALTABLE element.

The syntax and spelling looks right. Perhaps this trick only works for
certain elements but not others. If so, is there any kind of rule for
what kinds of elements this would work for?  maybe this is a bug?

Robert

********************************************

THIS WORKS:

    <xsl:template match="para[@role = 'first-para']" mode="class.value">
        <xsl:value-of select="'first-para'"/>
    </xsl:template>


THIS DOES NOT WORK:

    <xsl:template match="informaltable[@role = 'textbox-table']"
mode="class.value">
        <xsl:value-of select="'textbox-table'"/>
    </xsl:template>

Input:
   <informaltable xml:id="test-text-table" role="textbox-table">
               <tgroup cols="1">
            <!--      <colspec />
                <colspec />-->
            <tbody role="textbox-table">
                <row>
                    <entry>Can you see this table?   </entry>
                </row>
            </tbody>
        </tgroup>
       </informaltable>

The result looks like this:

   <div class="informaltable"><a id="test-text-table"/>
        <table border="1"><colgroup><col/></colgroup><tbody><tr><td>Can
you see this table?  </td></tr></tbody></table>

This is bad because I expect either the  <div class="informaltable">
or       <table border="1"> to have a class of textbox-table.

(The id refers to the xml:id value of test-text-table; not relevant here).


-- 
Robert Nagle
12777 Ashford Point Dr #1417
Houston, Texas 77082
713 893 3424
htpt://www.robertnagle.info


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