[jhalfs] 01/04: Add an xsl for finding version known to the book

"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]> Fri, 24 Jan 2025 18:00:58 +0000
Newsgroups gmane.linux.lfs.automated
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch plabs/check-version
in repository jhalfs.

commit 06aacb487bac14a7d80ae636a78d323bdafa289c
Author: Pierre Labastie <[email protected]>
AuthorDate: Fri Jan 24 14:21:56 2025 +0100

    Add an xsl for finding version known to the book
    
    The xsl takes the download url as a parameter, and returns the
    version as found in productnumber.
---
 common/pkgver.xsl | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/common/pkgver.xsl b/common/pkgver.xsl
new file mode 100644
index 0000000..3b1644d
--- /dev/null
+++ b/common/pkgver.xsl
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<xsl:stylesheet
+      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+      version="1.0">
+
+<xsl:output method="text"/>
+<!-- Parameters -->
+
+  <xsl:param name="package"/>
+
+<!-- End parameters -->
+
+<!-- Start of templates -->
+  <xsl:template match="/">
+    <xsl:apply-templates select="//chapter[
+                                @id='chapter-building-system' or
+    @id='chapter-bootable']/sect1/sect1info[address=$package]"/>
+  </xsl:template>
+
+  <xsl:template match="sect1info">
+    <xsl:if test="../@id != 'ch-bootable-grub'">
+      <xsl:value-of select="productnumber"/>
+    </xsl:if>
+  </xsl:template>
+
+</xsl:stylesheet>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page