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] Support for sortable HTML tables?


 > - (how) can I avoid copying ~280 lines from xhtml/table.xsl?

Can the javascript be made to key off of a <div class="sortable"> around
the table? If so, you could use apply-imports in your customization
layer:

<xsl:template name="user.head.content">
  <script type="text/javascript" src="sorttable.js"/> </xsl:template> 

<xsl:template match="tgroup[../../*@role='sortable']" >
 <div class="sortable">	
    <xsl:attribute name="id">
      <xsl:value-of select="generate-id(.)"/>
    </xsl:attribute>
	<xsl:apply-imports/>
 </div>
</xsl:template>

David


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