[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3-wpkg/sources/www/bin/ -> supprPackage.xsl (source)

   1  <?xml version="1.0" encoding="iso-8859-1"?>
   2  <xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0" >
   3     <xsl:output method="xml" version="1.0" encoding="iso-8859-1" indent="yes" />
   4     <xsl:param name="Appli"></xsl:param>
   5     <xsl:variable name="packages" select="document('/var/se3/unattended/install/wpkg/packages.xml')/packages"/>
   6     <!-- 
   7      Supprime le noeud <package id="$Appli" de packages.xml
   8      S'applique à packages.xml
   9     -->
  10      <xsl:variable name="Paquets" select="$packages/package[@id != $Appli]" />
  11  
  12      <xsl:template match="/">
  13          <!-- insère le noeud racine ( /packages )-->
  14          <xsl:element name = "packages" >
  15              <xsl:comment >  Généré par SambaEdu. Ne pas modifier. Contient <xsl:value-of select="count($Paquets)" /> applications </xsl:comment>
  16              <xsl:for-each select="$Paquets">
  17                  <xsl:sort select="@id" />
  18                  <xsl:copy-of select="." />
  19              </xsl:for-each>
  20          </xsl:element>
  21      </xsl:template>
  22  </xsl:stylesheet>


Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1