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: re: [docbook-apps] Accessibility: adding scope attribute to HTML output


1. Yes, all you have to do is add it to your customization layer. You
will need to replace caption/para with an xpath statement that
corresponds to the table  element(s) you want to customize. (and
remember if you are not  using the vanilla docbook xsl but  the
namespace xsl (i.e., docbook-ns), you will need to preface everything
with d: in the xpath statement. So caption/para would be
d:caption/d:para ).

2.  For my example at
, my source code  would say  either:

<caption> <para> Hello </para> </caption>


<caption> <para role="50x"> Hello </para> <caption>

Your output after you applied the transformation would be (I think)

<div class="caption">
<p width="50px">Hello </p></div>

I gave two examples. In one example I made the assumption that you
would hardcode the values of width in the  XSL customization layer --
so you wouldn't need to put it in the xml source code. In the other
example, I assumed that you would grab the values from the role
attribute in the <para> element in source.

However, if the value of the  scope attribute is always going to be
"col", I don't see any reason why you couldn't hard code it in the XSL
customization layer. others may disagree about this.


Subject: Re: re: [docbook-apps] Accessibility: adding scope attribute
to HTML output

    From: mike 675 <m_mclaug@yahoo.co.uk>
    To: docbook-apps@lists.oasis-open.org
    Date: Tue, 20 Sep 2011 03:59:59 -0700 (PDT)

I broadly understand your post, but I have a couple of questions:

To hardcode width="50px" inside caption/para:

<xsl:template  match="caption/para" mode="class.attribute">
          <xsl:param name="width" select="local-name(.)"/>
             <xsl:attribute name="width">50px</xsl:attribute>

1) Is it just a matter of adding this template to my HTML customization
2) The above template looks for caption/para and adds a width attribute. Is
the width attribute added to the DocBook source:

 <para width="50px">

or does it appear in the HTML output:

<p width="50px">


Robert Nagle
6121 Winsome Ln #56C, Houston TX 77057-5581
(H) 713 893 3424/ (W) 832-251-7522 Carbon Neutral Since Jan 2010

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