view docbook-update-source-data.xsl @ 19:f0accfc74f7b

Port to GLib version 2.48 or later Use GApplication instead of the custom XWritedUnique object for uniqueness. Use GNotification from GIO instead of libnotify. Remove help and debug options from documentation. Replace intltool with GNU gettext (version 0.19 or later required).
author Guido Berhoerster <guido+xwrited@berhoerster.name>
date Sat, 28 Jul 2018 22:02:24 +0200
parents data/docbook-update-source-data.xsl@f0c7f45022c0
children
line wrap: on
line source

<?xml version="1.0"?>
<xsl:stylesheet
  version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:db="http://docbook.org/ns/docbook"
  xmlns="http://docbook.org/ns/docbook"
  exclude-result-prefixes="xsl db">

  <xsl:param name="package" select="''" />
  <xsl:param name="version" select="''" />

  <xsl:template match="db:refmeta/db:refmiscinfo[@class = 'source' or
    @class = 'version']"/>

  <xsl:template match="db:refmeta">
    <xsl:copy>
      <xsl:apply-templates/>
      <refmiscinfo class="source"><xsl:value-of select="$package"/></refmiscinfo>
      <refmiscinfo class="version"><xsl:value-of select="$version"/></refmiscinfo>
    </xsl:copy>
  </xsl:template>

  <xsl:template match="@*|node()">
    <xsl:copy>
      <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
  </xsl:template>

</xsl:stylesheet>