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


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>
    </xsl:template>

1) Is it just a matter of adding this template to my HTML customization
layer?
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">

Thanks,
mike


---------- Forwarded message ----------
From: mike 675 <m_mclaug@yahoo.co.uk>
To: docbook-apps@lists.oasis-open.org
Date: Mon, 19 Sep 2011 01:58:03 -0700 (PDT)
Subject: [docbook-apps] Accessibility: adding scope attribute to HTML output

To meet accessibility requirements, we need to add the scope attribute to
the
HTML output for our tables.

Our tables are marked up in DocBook XML, CALS style.

Every <th> needs to be <th scope="col">

The first <td> in a <tr> needs to be <td scope="row">

Any ideas on where to start on this.
I guess I need to cusomize the html/table.xsl stylesheet.




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

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org




-- 
View this message in context: http://old.nabble.com/Accessibility%3A-adding-scope-attribute-to-HTML-output-tp32493408p32501057.html
Sent from the docbook apps mailing list archive at Nabble.com.



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