Support HTML @background
This commit is contained in:
parent
94d335170f
commit
4473ad6e15
|
@ -78,7 +78,7 @@
|
||||||
<xsl:apply-templates select="@*|node()"/>
|
<xsl:apply-templates select="@*|node()"/>
|
||||||
</xsl:copy>
|
</xsl:copy>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
<xsl:template match="link[@rel='stylesheet']/@href|img/@src|script/@src|embed/@src">
|
<xsl:template match="link[@rel='stylesheet']/@href|img/@src|script/@src|embed/@src|@background">
|
||||||
<xsl:attribute name="{name(.)}">
|
<xsl:attribute name="{name(.)}">
|
||||||
<xsl:variable name="abs" select="substring-before(concat(resolve-uri(., $base), '#'), '#')"/>
|
<xsl:variable name="abs" select="substring-before(concat(resolve-uri(., $base), '#'), '#')"/>
|
||||||
<xsl:variable name="local-name" select="$index/resource[(uri, same-as) = $abs][1]/local-name"/>
|
<xsl:variable name="local-name" select="$index/resource[(uri, same-as) = $abs][1]/local-name"/>
|
||||||
|
|
Loading…
Reference in New Issue