|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: CALS to XHTML table - rowspan
Hi,
here is another approach. We implemented Andrew Welchs table normalization algorithm for CALS tables. This XSLT generates virtual cells for colspans and rowspans. https://github.com/transpect/xslt-util/blob/master/calstable/xsl/normalize.xsl You can import the XSLT normalize.xsl and call the function calstable:normalize(). Below is an example:
<!-- Documentation: in normalize.xsl --> <xsl:import href="normalize.xsl"/> <xsl:output indent="yes"/> <xsl:template match="node() | @*" >
<xsl:copy copy-namespaces="no">
<xsl:apply-templates select="@*, node()"/>
</xsl:copy>
</xsl:template> <xsl:template match="*[*:row]">
<xsl:sequence select="calstable:check-normalized(
calstable:normalize(.),
'no'
)"/>
</xsl:template></xsl:stylesheet> kind regards, Martin Am 05.10.2015 um 17:40 schrieb a kusa akusa8@xxxxxxxxx: Hello:
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








