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-example-style.xsl


  <?xml version="1.0" encoding="utf-8"?>
  <ml:stylesheet xmlns:ml="http://www.w3.org/1999/XSL/Transform" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.1">
  
     <xsl:import xmlns:ml="ml" href="vr/process-ml.xsl"/>
  
     <xsl:output xmlns:ml="ml" method="html"/>
  
     <xsl:template xmlns:ml="ml" name="begin">
  
     </xsl:template>
  
     <xsl:template xmlns:ml="ml" name="end">
  
     </xsl:template>
  
     <xsl:template xmlns:ml="ml" match="/">
  
        <xsl:element name="html">
  
           <PRE>
  
              <xsl:apply-templates/>
  
           </PRE>
  
        </xsl:element>
  
     </xsl:template>
  
     <xsl:template xmlns:ml="ml" match="@*[ name() = 'xmlns:xsl']">
  
     </xsl:template>
  
     <xsl:template xmlns:ml="ml" match="@*">
  
        <xsl:text> </xsl:text>
  
        <xsl:value-of select="name()"/>
  
        <xsl:text>="</xsl:text>
  
        <xsl:value-of select="."/>
  
        <xsl:text>"</xsl:text>
  
     </xsl:template>
  
     <xsl:template xmlns:ml="ml" match="*[name() != 'ml:include' and name() != 'document' ]">
  
        <xsl:value-of select="string('<')"/>
  
        <b>
           <xsl:value-of select="name(.)"/>
        </b>
  
        <xsl:apply-templates select="./@*"/>
  
        <xsl:value-of select="string('>')"/>
  
        <xsl:apply-templates/>
  
        <xsl:text>&lt;/</xsl:text>
  
        <b>
           <xsl:value-of select="name(.)"/>
        </b>&gt;<xsl:text>
  
        </xsl:text>
  
     </xsl:template>
  
     <xsl:template xmlns:ml="ml" match="text()">
  
        <xsl:value-of select="."/>
  
     </xsl:template>
  
  </ml: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.