Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="iso-8859-1"?>
- <xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:sp="http://www.syscon.ch/xmlns/0.0/zys/forms"
- version="1.0"
- xmlns:exsl="http://exslt.org/common"
- extension-element-prefixes="exsl"
- >
- <xsl:param name="path" select="'temp'" />
- <xsl:output method="xml" indent="yes" />
- <xsl:template name="ignoreWhatever" priority="0.6" match="node()|@*">
- <xsl:apply-templates select="node()|@*" />
- </xsl:template>
- <xsl:template name="copyPI" priority="0.7" match="processing-instruction()" mode="copy">
- <xsl:copy-of select="." />
- </xsl:template>
- <xsl:template name="copyWhatever" priority="0.6" match="node()|@*" mode="copy">
- <xsl:copy>
- <xsl:apply-templates select="node()|@*" mode="copy" />
- </xsl:copy>
- </xsl:template>
- <xsl:template match="//sp:mask[@frame='page']" priority="1">
- <exsl:document
- href="{$path}/{@id}.xul.xml"
- version="1.0"
- method="xml"
- indent="no"
- encoding="iso-8859-1"
- >
- <xsl:apply-templates mode="copy" />
- </exsl:document>
- </xsl:template>
- <xsl:template match="/" priority="1">
- <xsl:apply-templates />
- <dummy-root/>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment