1 <?xml version=
"1.0" encoding=
"UTF-8" ?>
2 <xsl:stylesheet version=
"1.0"
3 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform">
4 <!-- Extract a list of newline-separated link targets from html -->
5 <xsl:output method=
"text"/>
8 <xsl:template match=
"a[@href]">
9 <xsl:text>
</xsl:text>
10 <xsl:value-of select='@href'
/>
13 <xsl:template match=
"script|noscript"/>
15 <xsl:template match=
"@*|node()">
16 <xsl:apply-templates/>