Code Search for Developers
 
 
  

make-elements.xsl from Amavisd-new Maintenance at Krugle


Show make-elements.xsl syntax highlighted

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:exsl="http://exslt.org/common"
                xmlns:xslt="dummy"
                version="1.0">
  <xsl:output indent="yes"/>
  <xsl:namespace-alias stylesheet-prefix="xslt" result-prefix="xsl"/>
  <!-- ********************************************************************
       $Id: make-elements.xsl 6288 2006-09-12 07:22:34Z xmldoc $
       ********************************************************************

       This file is part of the XSL DocBook Stylesheet distribution.
       See ../README or http://docbook.sf.net/release/xsl/current/ for
       copyright and other information.

       ******************************************************************** -->

  <!-- ==================================================================== -->

  <!-- * This stylesheet expects as input a RELAX NG grammar that -->
  <!-- * defines a set of (DocBook) elements, From that grammar, it gets -->
  <!-- * the value of the "name" attribute for each element defined in -->
  <!-- * that grammar, then generates a list of those names. -->

  <xsl:template match="/">
    <xslt:stylesheet version="1.0">
      <xsl:text>&#xa;</xsl:text>
      <xsl:comment> *           Do not edit this file. </xsl:comment>
      <xsl:text>&#xa;</xsl:text>
      <xsl:comment> * It was generated automatically by the build. </xsl:comment>
      <xsl:text>&#xa;</xsl:text>
      <xsl:comment> * Edit the make-elements.xsl file instead. </xsl:comment>
      <xslt:variable name="docbook-element-list">
        <simplelist role="element"> 
          <xsl:for-each
              select="//*[local-name() = 'element'][@name]">
            <xsl:sort select="@name"/>
            <xsl:if test="not(@name = preceding::*[local-name() = 'element']/@name)">
              <member><xsl:value-of select="@name"/></member>
            </xsl:if>
          </xsl:for-each>
        </simplelist>
      </xslt:variable>

      <xslt:variable name="docbook-elements"
                    select="exsl:node-set($docbook-element-list)/simplelist"/>

      <xslt:template name="is-docbook-element">
        <xslt:param name="element" select="''"/>

        <xslt:choose>
          <xslt:when test="$docbook-elements/member[. = $element]">1</xslt:when>
          <xslt:otherwise>0</xslt:otherwise>
        </xslt:choose>
      </xslt:template>
    </xslt:stylesheet>
    <xsl:text>&#x0a;</xsl:text>
  </xsl:template>

</xsl:stylesheet>




See more files for this project here

Amavisd-new Maintenance

AmavisAdmin is a tool to maintain SPAMs, Viruses and blocked mails written to an SQL database by Amavisd-new. Mails can be removed automatically or manually, or they can be released to be send to the recipients.

Project homepage: http://sourceforge.net/projects/amavisadmin
Programming language(s): Java,XML
License: other

  addnewline.xsl
  clrefentry.xsl
  dblatex-release-notes.xsl
  doc-link-docbook.xsl
  docbook-elements.xsl
  docparam2txt.xsl
  html2roff.xsl
  identity.xsl
  jref2refsect1.xsl
  jrefhtml.xsl
  lrefentry.xsl
  make-elements.xsl
  make-xsl-params.xsl
  pirefentry.xsl
  reference-fo.xsl
  reference-txt.xsl
  reference.xsl
  tdg-link.xsl
  xsl-param-link.xsl
  xsl-params.xsl
  xsl2jref.xsl