2 * AUTOMATICALLY GENERATED TEMPLATE
3 * DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
6 <?xml version="1.0" encoding="utf-8"?>
7 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
9 <xsl:template match="text()"/>
11 <xsl:template match="{{$include}}">
13 <xsl:apply-templates select="node()|@*" mode="remove"/>
17 <xsl:template match="node()|@*" mode="remove">
19 <xsl:apply-templates select="node()|@*" mode="remove"/>
24 <xsl:template match="{{$exclude}}" mode="remove"/>
27 <!-- attempt to replace relative URLs with absolute URLs -->
28 <!-- http://stackoverflow.com/questions/3824631/replace-href-value-in-anchor-tags-of-html-using-xslt -->
30 <xsl:template match="*/@src[starts-with(.,'.')]" mode="remove">
31 <xsl:attribute name="src">
32 <xsl:value-of select="concat('{{$dirurl}}',.)"/>
35 <xsl:template match="*/@src[starts-with(.,'/')]" mode="remove">
36 <xsl:attribute name="src">
37 <xsl:value-of select="concat('{{$rooturl}}',.)"/>