programmation.xsl 1.86 KB
Newer Older
Neveux Anais's avatar
Neveux Anais committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns="http://www.utc.fr/ics/hdoc/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    exclude-result-prefixes="xs" version="2.0" xmlns:sc="http://www.utc.fr/ics/scenari/v3/core"
    xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive" xmlns:op="utc.fr:ics/opale3"  xmlns:cp="canope.fr:canoprof"
    >
    
    <xsl:output indent="yes"/>
    
    <xsl:template match="sc:item/cp:program">
        <!-- RNG -->
        <xsl:processing-instruction name="oxygen">
            RNGSchema="http://hdoc.crzt.fr/schemas/xhtml/hdoc1-xhtml.rng" type="xml"
        </xsl:processing-instruction>
        
        <!-- HTML -->
        <html xmlns="http://www.utc.fr/ics/hdoc/xhtml">
            <head>
                <xsl:apply-templates select="cp:programM/sp:title"/>
                <meta charset="utf-8"/>
                <meta content="HdocConverter/Opale3.4" name="generator"/>
            </head>
            <body>
                <xsl:apply-templates select="sp:sequence/cp:sequence"/>
            </body>
        </html>
    </xsl:template>
    
    <!-- Sequence -->
    <xsl:template match="sp:sequence/cp:sequence">
        <section>
            <header>
                <xsl:apply-templates select="cp:sequenceM/sp:title"/>
            </header>
            
            <!-- check for seance -->
            <xsl:apply-templates select="//sp:session"/>
            
        </section>

    </xsl:template>
    
    <!-- Seance -->
    <xsl:template match="sp:session">
            
    </xsl:template>    
    
    
    <!-- Titles -->
    <xsl:template match="cp:programM/sp:title">
        <title><xsl:value-of select="."/></title>
    </xsl:template>
    
    <xsl:template match="cp:sequenceM/sp:title">
        <h1><xsl:value-of select="."/></h1>
    </xsl:template>
</xsl:stylesheet>