mirror of https://github.com/tLDP/LDP
- added web-hack (to include welcome.xml)
This commit is contained in:
parent
10af4b2a53
commit
dc9686dadc
|
@ -1,10 +1,18 @@
|
||||||
<?xml version="1.0" ?>
|
<?xml version="1.0" ?>
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="1.0"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||||
<xsl:template match="*|@*|comment()|processing-instruction()|text()">
|
<xsl:template match="*|@*|processing-instruction()|text()">
|
||||||
<xsl:copy>
|
<xsl:copy>
|
||||||
<xsl:apply-templates
|
<xsl:apply-templates
|
||||||
select="*|@*|comment()|processing-instruction()|text()" />
|
select="*|@*|comment()|processing-instruction()|text()" />
|
||||||
</xsl:copy>
|
</xsl:copy>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="comment()">
|
||||||
|
<xsl:if test="starts-with(normalize-space(.), 'web-hack ')">
|
||||||
|
<xsl:apply-templates
|
||||||
|
select="document(substring-after(normalize-space(.), 'web-hack '))"
|
||||||
|
/>
|
||||||
|
</xsl:if>
|
||||||
|
</xsl:template>
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
Loading…
Reference in New Issue