Open mohamed0123 opened 5 years ago
The input needs to be XHTML in the http://www.w3.org/1999/xhtml
namespace. If you are using XML Calabash as an XProc processor (all transpect code is meant to run with an XProc processor), you can use p:http-request
and validator.nu for parsing arbitrary HTML as if it were XHTML.
Then in order to resolve <xsl:import href="http://transpect.io/xslt-util/lengths/xsl/lengths.xsl" />
a catalog resolver needs to be used. This will be the case if you use this XSLT from within XML Calabash. Your catalog needs to import the catalogs of this repo and of xslt-util. A tutorial on how to set up a transpect project is here: https://transpect.github.io/tutorial.html
You can use the HTML table normalization XSLT standalone with an XSLT 2.0 processor (for example, Saxon), if you change the import URI to a relative one and find out how to use validator.nu as the parser.
Otherwise, you are on your own. This code is provided “as is”.
A Javascript version of this table cell normalization code is included in https://github.com/maze-le/jquery-tablemanager
Thanks a lot
Can you please describe how can we apply it on online Html Page