Changeset 3f2c36d for BOOK/stylesheets/clfs-profile.xsl
- Timestamp:
- Apr 24, 2011, 2:16:17 PM (14 years ago)
- Children:
- 268f64e
- Parents:
- 8823a97
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/stylesheets/clfs-profile.xsl
r8823a97 r3f2c36d 718 718 </xsl:template> 719 719 720 <xsl:template match="c:emphasis" mode="filter-bits-32"> 721 <xsl:variable name="ismultilib"> 722 <xsl:choose> 723 <xsl:when test="contains($clfs.multilib, ',')"> 724 <xsl:text>true</xsl:text> 725 </xsl:when> 726 <xsl:otherwise> 727 <xsl:text>false</xsl:text> 728 </xsl:otherwise> 729 </xsl:choose> 730 </xsl:variable> 731 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 732 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 733 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',32,')"> 734 <xsl:element name="emphasis"> 735 <xsl:apply-templates select="node()" mode="filter-bits-32" /> 736 </xsl:element> 737 </xsl:if> 738 </xsl:if> 739 </xsl:if> 740 </xsl:template> 741 720 742 <xsl:template match="c:literal" mode="filter-bits-32"> 721 743 <xsl:variable name="ismultilib"> … … 954 976 </xsl:template> 955 977 978 <xsl:template match="c:emphasis" mode="filter-bits-n32"> 979 <xsl:variable name="ismultilib"> 980 <xsl:choose> 981 <xsl:when test="contains($clfs.multilib, ',')"> 982 <xsl:text>true</xsl:text> 983 </xsl:when> 984 <xsl:otherwise> 985 <xsl:text>false</xsl:text> 986 </xsl:otherwise> 987 </xsl:choose> 988 </xsl:variable> 989 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 990 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 991 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',n32,')"> 992 <xsl:element name="emphasis"> 993 <xsl:apply-templates select="node()" mode="filter-bits-n32" /> 994 </xsl:element> 995 </xsl:if> 996 </xsl:if> 997 </xsl:if> 998 </xsl:template> 999 956 1000 <xsl:template match="c:literal" mode="filter-bits-n32"> 957 1001 <xsl:variable name="ismultilib"> … … 1190 1234 </xsl:template> 1191 1235 1236 <xsl:template match="c:emphasis" mode="filter-bits-64"> 1237 <xsl:variable name="ismultilib"> 1238 <xsl:choose> 1239 <xsl:when test="contains($clfs.multilib, ',')"> 1240 <xsl:text>true</xsl:text> 1241 </xsl:when> 1242 <xsl:otherwise> 1243 <xsl:text>false</xsl:text> 1244 </xsl:otherwise> 1245 </xsl:choose> 1246 </xsl:variable> 1247 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 1248 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 1249 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',64,')"> 1250 <xsl:element name="emphasis"> 1251 <xsl:apply-templates select="node()" mode="filter-bits-64" /> 1252 </xsl:element> 1253 </xsl:if> 1254 </xsl:if> 1255 </xsl:if> 1256 </xsl:template> 1257 1192 1258 <xsl:template match="c:literal" mode="filter-bits-64"> 1193 1259 <xsl:variable name="ismultilib">
Note:
See TracChangeset
for help on using the changeset viewer.