Changeset 5508d22
- Timestamp:
- Mar 5, 2011, 8:48:28 PM (14 years ago)
- Children:
- 5171adc
- Parents:
- 4a39252
- Location:
- BOOK
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/stylesheets/clfs-profile.xsl
r4a39252 r5508d22 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 3 xmlns="http://www.w3.org/1999/xhtml"4 3 xmlns:c="http://schema.cross-lfs.org/book" 5 4 version="1.0"> … … 50 49 </xsl:with-param> 51 50 <xsl:with-param name="bits" select="substring-before(concat($bits, ','), ',')" /> 51 <xsl:with-param name="multi"><xsl:text>multi</xsl:text></xsl:with-param> 52 52 </xsl:call-template> 53 53 <xsl:if test="$remainingbits"> … … 67 67 <xsl:with-param name="idsuffix" /> 68 68 <xsl:with-param name="bits" select="substring-before(concat($bits, ','), ',')" /> 69 <xsl:with-param name="multi"><xsl:text>single</xsl:text></xsl:with-param> 69 70 </xsl:call-template> 70 71 </xsl:otherwise> … … 76 77 <xsl:param name="idsuffix" /> <!-- Suffix to attach to the end of the ID for this perticular instance --> 77 78 <xsl:param name="bits" /> <!-- Which bit sizes to create a package for --> 79 <xsl:param name="multi" /> <!-- multi/single build --> 78 80 79 81 <xsl:for-each select="sect1"> 80 81 82 <xsl:copy> 82 83 <xsl:attribute name="id"> … … 85 86 <xsl:attribute name="role"> 86 87 <xsl:text>package</xsl:text> 88 </xsl:attribute> 89 <xsl:attribute name="condition"> 90 <xsl:value-of select="$multi" /> 87 91 </xsl:attribute> 88 92 <xsl:processing-instruction name="dbhtml"> … … 108 112 <!-- Apply the profile to the 32bit package --> 109 113 114 <xsl:template match="//sect1/title" mode="filter-bits-32"> 115 <xsl:element name="title"> 116 <xsl:copy-of select="@*|node()" /> 117 <xsl:if test="contains($clfs.multilib, ',')"> 118 <xsl:text> - 32Bit</xsl:text> 119 </xsl:if> 120 </xsl:element> 121 </xsl:template> 122 110 123 <xsl:template match="@*|node()" mode="filter-bits-32"> 111 124 <xsl:variable name="ismultilib"> … … 135 148 136 149 <!-- Apply the profile to the n32 package --> 150 151 <xsl:template match="//sect1/title" mode="filter-bits-n32"> 152 <xsl:element name="title"> 153 <xsl:copy-of select="@*|node()" /> 154 <xsl:if test="contains($clfs.multilib, ',')"> 155 <xsl:text> - N32</xsl:text> 156 </xsl:if> 157 </xsl:element> 158 </xsl:template> 137 159 138 160 <xsl:template match="@*|node()" mode="filter-bits-n32"> … … 163 185 164 186 <!-- Apply the profile to the 64bit package --> 187 188 <xsl:template match="//sect1/title" mode="filter-bits-64"> 189 <xsl:element name="title"> 190 <xsl:copy-of select="@*|node()" /> 191 <xsl:if test="contains($clfs.multilib, ',')"> 192 <xsl:text> - 64Bit</xsl:text> 193 </xsl:if> 194 </xsl:element> 195 </xsl:template> 165 196 166 197 <xsl:template match="@*|node()" mode="filter-bits-64"> -
BOOK/testpart.xml
r4a39252 r5508d22 23 23 <c:package id="blah" c:multibuild="false"> 24 24 <sect1> 25 <title> Blah</title>25 <title><phrase>Blah</phrase></title> 26 26 27 27 <para>Testing... 1.. 2.. 3..</para> 28 29 <para c:bits="32">32</para> 30 <para c:bits="n32">n32</para> 31 <para c:bits="64">64</para> 28 32 29 33 </sect1> … … 32 36 <c:package id="blarg" c:multibuild="true"> 33 37 <sect1> 34 <title>Blarg 35 <phrase c:multilib="true"> 36 <phrase c:bits="32"> - 32Bit</phrase> 37 <phrase c:bits="n32"> - N32</phrase> 38 <phrase c:bits="64"> - 64Bit</phrase> 39 </phrase> 40 </title> 38 <title>Blarg</title> 41 39 42 40 <para>Testing... 1.. 2.. 3..</para>
Note:
See TracChangeset
for help on using the changeset viewer.