docs-common/packaging bookinfo.xsl,1.19,1.20
Paul W. Frields (pfrields)
fedora-docs-commits at redhat.com
Wed Mar 8 02:10:29 UTC 2006
Author: pfrields
Update of /cvs/docs/docs-common/packaging
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14599
Modified Files:
bookinfo.xsl
Log Message:
Use proper XSL-isms to give us locales and a proper fallback
Index: bookinfo.xsl
===================================================================
RCS file: /cvs/docs/docs-common/packaging/bookinfo.xsl,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- bookinfo.xsl 3 Mar 2006 01:44:49 -0000 1.19
+++ bookinfo.xsl 8 Mar 2006 02:10:20 -0000 1.20
@@ -85,10 +85,35 @@
</xsl:element>
<xsl:choose>
<xsl:when test="/rpm-info/license/rights='OPL'">
- <xsl:text disable-output-escaping="yes"><xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="</xsl:text><xsl:value-of select="$fdpdir"/><xsl:text disable-output-escaping="yes">/docs-common/common/legalnotice-opl-en.xml"/></xsl:text>
+ <xsl:element name="xi:include"
+ namespace="http://www.w3.org/2001/XInclude"><xsl:attribute
+ name="href"><xsl:value-of
+ select="$fdpdir"/>/docs-common/common/legalnotice-opl-<xsl:value-of
+ select="$lang"/>.xml</xsl:attribute>
+ <xsl:element name="xi:fallback"
+ namespace="http://www.w3.org/2001/XInclude">
+ <xsl:element
+ name="xi:include"
+ namespace="http://www.w3.org/2001/XInclude"><xsl:attribute
+ name="href"><xsl:value-of
+ select="$fdpdir"/>/docs-common/common/legalnotice-opl-en_US.xml</xsl:attribute>
+ </xsl:element>
+ </xsl:element>
+ </xsl:element>
</xsl:when>
<xsl:otherwise> <!-- assume OPL for now -->
- <xsl:text disable-output-escaping="yes"><xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="</xsl:text><xsl:value-of select="$fdpdir"/><xsl:text disable-output-escaping="yes">/docs-common/common/legalnotice-en.xml"/></xsl:text>
+ <xsl:element name="xi:include"
+ namespace="http://www.w3.org/2001/XInclude"><xsl:attribute
+ name="href"><xsl:value-of
+ select="$fdpdir"/>/docs-common/common/legalnotice-<xsl:value-of
+ select="$lang"/>.xml</xsl:attribute>
+ <xsl:element name="xi:fallback"
+ namespace="http://www.w3.org/2001/XInclude">
+ <xsl:element name="xi:include"
+ namespace="http://www.w3.org/2001/XInclude"><xsl:attribute name="href"><xsl:value-of
+ select="$fdpdir"/>/docs-common/common/legalnotice-en_US.xml</xsl:attribute></xsl:element>
+ </xsl:element>
+ </xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:element>
More information about the Fedora-docs-commits
mailing list