Removing an xsl:message.

This commit is contained in:
Eric van der Vlist 2012-04-12 12:56:21 +02:00
parent fd2ca8f305
commit 6b10b3e51c
1 changed files with 1 additions and 3 deletions

View File

@ -75,6 +75,7 @@
</p:processor> </p:processor>
<!-- Get a list of links to update --> <!-- Get a list of links to update -->
<!-- TODO: support links in inline CSS -->
<p:processor name="oxf:unsafe-xslt"> <p:processor name="oxf:unsafe-xslt">
<p:input name="data" href="#html"/> <p:input name="data" href="#html"/>
<p:input name="request" href="#archive#xpointer(/archive/request)"/> <p:input name="request" href="#archive#xpointer(/archive/request)"/>
@ -90,9 +91,6 @@
<xsl:variable name="abs-href" select="resolve-uri(@href, $base)"/> <xsl:variable name="abs-href" select="resolve-uri(@href, $base)"/>
<xsl:variable name="tokens" select="tokenize($abs-href, '/')"/> <xsl:variable name="tokens" select="tokenize($abs-href, '/')"/>
<xsl:variable name="last-token" select="$tokens[last()]"/> <xsl:variable name="last-token" select="$tokens[last()]"/>
<xsl:message>
<xsl:value-of select="$last-token"/>
</xsl:message>
<xsl:variable name="tokens2" select="tokenize($last-token, '\.')"/> <xsl:variable name="tokens2" select="tokenize($last-token, '\.')"/>
<xsl:variable name="extension" select="$tokens2[last()]"/> <xsl:variable name="extension" select="$tokens2[last()]"/>
<link abs-href="{$abs-href}" new-href="{saxon:string-to-hexBinary(substring($abs-href, 1, string-length($abs-href) - string-length($extension) - 1), 'utf-8')}.{$extension}" <link abs-href="{$abs-href}" new-href="{saxon:string-to-hexBinary(substring($abs-href, 1, string-length($abs-href) - string-length($extension) - 1), 'utf-8')}.{$extension}"