Support HTML embed/@src

This commit is contained in:
Eric van der Vlist 2012-05-04 19:43:20 +02:00
parent 16ef7979b0
commit c25b18f9f5
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="link[@rel='stylesheet']/@href|img/@src|script/@src">
<xsl:template match="link[@rel='stylesheet']/@href|img/@src|script/@src|embed/@src">
<xsl:attribute name="{name(.)}">
<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"/>

View File

@ -23,7 +23,7 @@ declare namespace util = "http://exist-db.org/xquery/util";
for $q in /queue return
update
insert <action priority="0" uuid="{util:uuid()}" type="heritrix-archive-set" url="http://eric.van-der-vlist.com/blog/"/>
insert <action priority="0" uuid="{util:uuid()}" type="heritrix-archive-set" url="http://xmlfr.org/"/>
into $q
]]></xquery>