Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 1.20 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <xsl:stylesheet
  3.    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  4.    xmlns:sp="http://www.syscon.ch/xmlns/0.0/zys/forms"
  5.    version="1.0"
  6.    xmlns:exsl="http://exslt.org/common"
  7.    extension-element-prefixes="exsl"
  8.    >
  9. <xsl:param name="path" select="'temp'" />
  10.  
  11. <xsl:output method="xml" indent="yes" />
  12. <xsl:template name="ignoreWhatever" priority="0.6" match="node()|@*">
  13.   <xsl:apply-templates select="node()|@*" />
  14. </xsl:template>
  15.  
  16. <xsl:template name="copyPI" priority="0.7" match="processing-instruction()" mode="copy">
  17.   <xsl:copy-of select="." />
  18. </xsl:template>
  19.  
  20. <xsl:template name="copyWhatever" priority="0.6" match="node()|@*" mode="copy">
  21.   <xsl:copy>
  22.     <xsl:apply-templates select="node()|@*" mode="copy" />
  23.   </xsl:copy>
  24. </xsl:template>
  25.  
  26. <xsl:template match="//sp:mask[@frame='page']" priority="1">
  27.   <exsl:document
  28.     href="{$path}/{@id}.xul.xml"
  29.     version="1.0"
  30.     method="xml"
  31.     indent="no"
  32.     encoding="iso-8859-1"
  33.     >
  34.     <xsl:apply-templates mode="copy" />
  35.   </exsl:document>
  36. </xsl:template>
  37.  
  38. <xsl:template match="/" priority="1">
  39.   <xsl:apply-templates />
  40.   <dummy-root/>
  41. </xsl:template>
  42.  
  43. </xsl:stylesheet>