Project

Profile

Help

HTML entity parsing in David Carlisle's htmlparse.xsl fai... » htmlparse-test1.xsl

Martin Honnen, 2020-07-02 20:26

 
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="3.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:d="data:,dpc"
exclude-result-prefixes="#all"
expand-text="yes">
<xsl:import href="htmlparse.xsl"/>
<xsl:mode on-no-match="shallow-copy"/>
<xsl:template match="/" name="xsl:initial-template">
<xsl:next-match/>
<xsl:comment>Run with {system-property('xsl:product-name')} {system-property('xsl:product-version')}</xsl:comment>
</xsl:template>
<xsl:template match="data">
<div>
<xsl:apply-templates select="d:htmlparse(., '', true())/node()"/>
</div>
</xsl:template>
</xsl:stylesheet>
(1-1/3)