[Clfs-commits] [Cross-LFS]Cross-LFS Book branch, old-simp, created. clfs-2.1.0-1185-ga5e2198

git git at cross-lfs.org
Wed Jun 25 01:16:19 PDT 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Cross-LFS Book".

The branch, old-simp has been created
        at  a5e2198c981679648ef9d6a9637f02347aa0c086 (commit)

- Log -----------------------------------------------------------------
commit a5e2198c981679648ef9d6a9637f02347aa0c086
Author: Chris Staub <chris at beaker67.com>
Date:   Mon Jun 2 03:33:55 2014 -0400

    Update

diff --git a/BOOK/Makefile b/BOOK/Makefile
index 18384d0..4ad308a 100644
--- a/BOOK/Makefile
+++ b/BOOK/Makefile
@@ -79,12 +79,24 @@ $(ARCHS_P_XML):
 	  $(TOP)/stylesheets/lfs-xsl/profile.xsl \
 	  $(VALIDATEDIR)/$(arch)-full.xml
 
+ARCHS_P_SIMP_XML := $(ARCHS:%=%-profiled-simp-xml)
+.PHONY: $(ARCHS_P_SIMP_XML)
+$(ARCHS_P_SIMP_XML): override arch = $(@:%-profiled-simp-xml=%)
+$(ARCHS_P_SIMP_XML):
+	@echo "Generating profiled $(arch) book..."
+	$(Q)mkdir -p $(PROFILEDIR)
+	$(Q)xsltproc -v --nonet \
+	  --stringparam clfs.arch $(ARCH) \
+	  --output $(PROFILEDIR)/$(arch)-html.xml \
+	  $(TOP)/stylesheets/clfsexpansion.xsl \
+	  $(TOP)/$(arch)-index.xml
+
 ARCHS_HTML := $(ARCHS:%=%-html)
 .PHONY: html render $(ARCHS_HTML)
 html render: $(ARCHS_HTML) titlepage
 $(ARCHS_HTML): override arch = $(@:%-html=%)
 $(ARCHS_HTML):
-	@$(MAKE) --no-print-directory $(arch)-profiled-xml
+	@$(MAKE) --no-print-directory $(arch)-profiled-simp-xml
 
 	@echo "Rendering chunked XHTML of $(arch)..."
 	$(Q)mkdir -p $(HTMLDIR)/$(arch)
diff --git a/BOOK/stylesheets/clfsexpansion.xsl b/BOOK/stylesheets/clfsexpansion.xsl
new file mode 100644
index 0000000..2369afa
--- /dev/null
+++ b/BOOK/stylesheets/clfsexpansion.xsl
@@ -0,0 +1,44 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns="http://www.w3.org/1999/xhtml"
+                version="1.0">
+
+  <!-- Declare our output type -->
+  <xsl:output method="xml"
+              indent="no"
+              omit-xml-declaration="no"
+              encoding="utf-8"
+              doctype-public="-//OASIS//DTD DocBook XML V4.5//EN"
+              doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" />
+
+  <!-- Pass through almost every node -->
+  <xsl:template match="@*|node()" priority="-1">
+    <xsl:copy>
+      <xsl:apply-templates select="@*|node()"/>
+    </xsl:copy>
+  </xsl:template> 
+
+  <!-- When we see a archopt tag, process it -->
+  <xsl:template match="archopt">
+
+    <!-- Choose which item we are to render, $clfs.arch or 'default' -->
+    <xsl:variable name="archref">
+      <xsl:choose>
+        <xsl:when test="count(archentry[contains(concat(concat('|', @arch), '|'), concat(concat('|', $clfs.arch), '|'))]) = 0">
+          <xsl:text>default</xsl:text>
+        </xsl:when>
+        <xsl:otherwise>
+          <xsl:value-of select="$clfs.arch"/>
+        </xsl:otherwise>
+      </xsl:choose>
+    </xsl:variable>
+
+    <!-- Render the requested item(s) -->
+    <xsl:for-each select="archentry[contains(concat(concat('|', @arch), '|'), concat(concat('|', $archref), '|'))]">
+      <xsl:apply-templates/>
+    </xsl:for-each>
+
+  </xsl:template>
+
+</xsl:stylesheet>
diff --git a/BOOK/stylesheets/expansion.dtd b/BOOK/stylesheets/expansion.dtd
new file mode 100644
index 0000000..43118cc
--- /dev/null
+++ b/BOOK/stylesheets/expansion.dtd
@@ -0,0 +1,30 @@
+<!-- ...................................................................... -->
+<!-- CLFS XML Expansion DTD V1.0 .......................................... -->
+<!-- File expansion.dtd ................................................... -->
+
+<!-- ...................................................................... -->
+<!-- Currently these catalog entries are just a place holder
+
+		Public Identifier:
+			"-//CLFS//DTD XML Expansion V1.0//EN"
+
+		System Identifier:
+			"path/to/file/expansion.dtd"
+-->
+<!-- ...................................................................... -->
+
+<!ENTITY % db45dtd SYSTEM "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+
+<!ELEMENT archentry ANY>
+<!ATTLIST archentry arch CDATA #REQUIRED>
+<!ELEMENT archopt (archentry+)>
+
+<!-- Override elements in dbheirx.dtd -->
+<!ENTITY % local.divcomponent.mix "|archopt">
+
+<!-- Override elements in dbpoolx.dtd -->
+<!ENTITY % local.info.class "|archopt">
+<!ENTITY % local.partcontent.mix "|archopt">
+<!ENTITY % local.para.char.mix "|archopt">
+
+%db45dtd;

-----------------------------------------------------------------------


hooks/post-receive
-- 
Cross-LFS Book



More information about the Clfs-commits mailing list