{"id":20079592,"url":"https://github.com/transpect/htmltables","last_synced_at":"2026-03-07T05:08:42.112Z","repository":{"id":93859532,"uuid":"46552874","full_name":"transpect/htmltables","owner":"transpect","description":"Replace colspan and rowspan with virtual cells","archived":false,"fork":false,"pushed_at":"2025-10-07T10:11:55.000Z","size":599,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-07T11:23:22.014Z","etag":null,"topics":["html","tables"],"latest_commit_sha":null,"homepage":"","language":"XSLT","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/transpect.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-11-20T09:37:37.000Z","updated_at":"2025-10-07T10:11:59.000Z","dependencies_parsed_at":"2025-10-07T11:16:40.061Z","dependency_job_id":"d374282a-c271-4c90-bd20-babbe3f41be6","html_url":"https://github.com/transpect/htmltables","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/transpect/htmltables","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transpect%2Fhtmltables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transpect%2Fhtmltables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transpect%2Fhtmltables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transpect%2Fhtmltables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/transpect","download_url":"https://codeload.github.com/transpect/htmltables/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/transpect%2Fhtmltables/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30208730,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T03:24:23.086Z","status":"ssl_error","status_checked_at":"2026-03-07T03:23:11.444Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["html","tables"],"created_at":"2024-11-13T15:23:32.567Z","updated_at":"2026-03-07T05:08:42.088Z","avatar_url":"https://github.com/transpect.png","language":"XSLT","funding_links":[],"categories":[],"sub_categories":[],"readme":"# htmltables\n\nLibrary for normalizing HTML tables (adding “physical grid” coordinates to each cell). Requires xslt-util\n\n## Description\n\nThis implements Andrew J Welch's [Table Normalization in XSLT 2.0](http://andrewjwelch.com/code/xslt/table/table-normalization.html) in an XSLT function:\n\n```xslt\n\u003cxsl:template match=\"*[*:tr]\"\u003e\n    \u003cxsl:sequence select=\"htmltable:normalize(.)\" /\u003e\n\u003c/xsl:template\u003e\n```\n\nConsider an XML or XHTML document containing HTML tables\n\n```xhtml\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd\u003ea\u003c/td\u003e\n      \u003ctd rowspan=\"2\"\u003eb\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003ec\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd colspan=\"2\"\u003ed\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n```\n\nApplying the XSLT function `htmltable:normalize()` will add virtual cells for each colspan and rowspan.\n\n```\n-------------         -------------          \n|  a  |  b  |         |  a  |  b  |             \n-------     -         -------------\n|  c  |     |   --\u003e   |  c  |  b  |\n-------------         -------------\n|     d     |         |  d  |  d  |\n-------------         -------------\n```\n\nAfter the normalization, each cell contains `data` attributes which state the former position in the original table. \n\n```xhtml\n\u003ctable\u003e         \n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd data-rownum=\"1\" data-colnum=\"1\"\u003ea\u003c/td\u003e\n      \u003ctd rowspan=\"2\" data-rownum=\"1\" data-colnum=\"2\"\u003eb\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd data-rownum=\"2\" data-colnum=\"1\"\u003ec\u003c/td\u003e\n      \u003ctd rowspan=\"1\" data-rowspan-part=\"2\" data-rownum=\"2\" data-colnum=\"2\"\u003eb\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd colspan=\"2\" data-colspan-part=\"1\" data-rownum=\"3\" data-colnum=\"1\"\u003ed\u003c/td\u003e\n      \u003ctd colspan=\"2\" data-colspan-part=\"2\" data-rownum=\"3\" data-colnum=\"2\"\u003ed\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftranspect%2Fhtmltables","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftranspect%2Fhtmltables","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftranspect%2Fhtmltables/lists"}