media @ VU
[] readme course preface I 1 2 II 3 4 III 5 6 7 IV 8 9 10 V 11 12 afterthoughts appendix references examples resources

talk show tell print

vr-boot-ml-document.xsl


  <?xml version="1.0"?>
  

boot-ml-document

stylesheet


  <xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:ml="ml"
  version="1.1">
  <xsl:output method="xml"/>
  
  <xsl:namespace-alias stylesheet-prefix="ml" result-prefix="xsl"/>
  
  <xsl:template match="document">
  <xsl:apply-templates/>
  </xsl:template>
  
  <xsl:template match="*/ml:style">
  <xsl:choose>
  <xsl:when test="@output">
  <xsl:document indent="yes" method="xml" href="{concat(@output,'.xsl')}">
  <ml:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:ml="ml"
  version="1.1">
  <xsl:apply-templates mode="style"/>
  </ml:stylesheet>
  </xsl:document>
  </xsl:when>
  <xsl:otherwise>
  <ml:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:ml="ml"
  version="1.1">
  <xsl:apply-templates mode="style"/>
  </ml:stylesheet>
  </xsl:otherwise>
  </xsl:choose>
  </xsl:template>
  
  <xsl:template match="@*[ namespace-uri() = 'xsl']" mode="style"/>
  
  <xsl:template match="comment()" mode="style"/>
  
  <xsl:template match="*|@*|text()" mode="style">
  <xsl:copy>
        <xsl:apply-templates select="@*[ namespace-uri() != 'xsl']" mode="style"/>
        <xsl:apply-templates mode="style"/>
  </xsl:copy>
  </xsl:template>
  
  </xsl:stylesheet>
  

[] readme course preface I 1 2 II 3 4 III 5 6 7 IV 8 9 10 V 11 12 afterthoughts appendix references examples resources

(C) A. Eliëns 9/8/2006

You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.