Annotation of qemu/roms/openbios/config/xml/xinclude.xsl, revision 1.1.1.1

1.1       root        1: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
                      2: 
                      3:  <!-- 
                      4:  Stefans own xinclude implementation.
                      5:  We really don't want to bother the users with namespaces
                      6:  -->
                      7:  
                      8:  <xsl:output method="xml" indent="yes"/>
                      9:  <xsl:strip-space elements="*"/>
                     10: 
                     11:  <xsl:template match="node() | @*">
                     12:   <xsl:copy>
                     13:    <xsl:apply-templates select="@* | node()"/>
                     14:   </xsl:copy>
                     15:  </xsl:template>
                     16:  
                     17:  
                     18: <!-- <xsl:template match="xi:include" xmlns:xi="http://www.w3.org/2001/XInclude"> -->
                     19:  <xsl:template match="include">
                     20:   <xsl:variable name="href"><xsl:value-of select="@href"/>
                     21:   </xsl:variable>
                     22:   <xsl:for-each select="document(@href)">
                     23:    <!--
                     24:    <xsl:copy><xsl:copy-of select="@*"/>
                     25:    <xsl:attribute name="base">
                     26:      <xsl:value-of select="$href"/>
                     27:    </xsl:attribute>
                     28:    <xsl:apply-templates select="node()" />
                     29:    </xsl:copy>
                     30:    -->
                     31:    <xsl:element name="{local-name(*)}" namespace="{namespace-uri(..)}">
                     32:     <xsl:copy-of select="*/@*"/>
                     33:     <xsl:attribute name="base">
                     34:      <xsl:value-of select="$href"/>
                     35:     </xsl:attribute>
                     36:     <xsl:for-each select="*">
                     37:      <xsl:apply-templates/>
                     38:     </xsl:for-each>
                     39:    </xsl:element>
                     40:   </xsl:for-each>
                     41:  </xsl:template>
                     42:  
                     43: </xsl:stylesheet>

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.