Changeset babec4b
- Timestamp:
- Apr 23, 2011, 9:34:00 PM (14 years ago)
- Children:
- df3bd25
- Parents:
- f59c2ec
- Location:
- BOOK
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/schema/clfs/0.1/rng/clfs.rnc
rf59c2ec rbabec4b 91 91 clfs.attrib.bits, 92 92 clfs.attrib.multilib, 93 clfs.package.para* 93 (clfs.package.para | clfs.package.command)* 94 } 95 96 clfs.package.warning = 97 element c:note { 98 clfs.attrib.arch, 99 clfs.attrib.bits, 100 clfs.attrib.multilib, 101 (clfs.package.para | clfs.package.command)* 94 102 } 95 103 … … 123 131 (clfs.package.para | 124 132 clfs.package.command | 125 clfs.package.note)+ 133 clfs.package.note | 134 clfs.package.warning)+ 126 135 }+, 127 136 -
BOOK/schema/clfs/0.1/rng/clfs.rng
rf59c2ec rbabec4b 146 146 <ref name="clfs.attrib.multilib"/> 147 147 <zeroOrMore> 148 <ref name="clfs.package.para"/> 148 <choice> 149 <ref name="clfs.package.para"/> 150 <ref name="clfs.package.command"/> 151 </choice> 152 </zeroOrMore> 153 </element> 154 </define> 155 <define name="clfs.package.warning"> 156 <element name="c:note"> 157 <ref name="clfs.attrib.arch"/> 158 <ref name="clfs.attrib.bits"/> 159 <ref name="clfs.attrib.multilib"/> 160 <zeroOrMore> 161 <choice> 162 <ref name="clfs.package.para"/> 163 <ref name="clfs.package.command"/> 164 </choice> 149 165 </zeroOrMore> 150 166 </element> … … 202 218 <ref name="clfs.package.command"/> 203 219 <ref name="clfs.package.note"/> 220 <ref name="clfs.package.warning"/> 204 221 </choice> 205 222 </oneOrMore> -
BOOK/stylesheets/clfs-profile.xsl
rf59c2ec rbabec4b 579 579 </xsl:if> 580 580 </xsl:template> 581 582 <xsl:template match="c:note" mode="filter-bits-32"> 583 <xsl:variable name="ismultilib"> 584 <xsl:choose> 585 <xsl:when test="contains($clfs.multilib, ',')"> 586 <xsl:text>true</xsl:text> 587 </xsl:when> 588 <xsl:otherwise> 589 <xsl:text>false</xsl:text> 590 </xsl:otherwise> 591 </xsl:choose> 592 </xsl:variable> 593 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 594 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 595 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',32,')"> 596 <xsl:element name="note"> 597 <xsl:apply-templates select="node()" mode="filter-bits-32" /> 598 </xsl:element> 599 </xsl:if> 600 </xsl:if> 601 </xsl:if> 602 </xsl:template> 603 604 <xsl:template match="c:warning" mode="filter-bits-32"> 605 <xsl:variable name="ismultilib"> 606 <xsl:choose> 607 <xsl:when test="contains($clfs.multilib, ',')"> 608 <xsl:text>true</xsl:text> 609 </xsl:when> 610 <xsl:otherwise> 611 <xsl:text>false</xsl:text> 612 </xsl:otherwise> 613 </xsl:choose> 614 </xsl:variable> 615 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 616 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 617 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',32,')"> 618 <xsl:element name="warning"> 619 <xsl:apply-templates select="node()" mode="filter-bits-32" /> 620 </xsl:element> 621 </xsl:if> 622 </xsl:if> 623 </xsl:if> 624 </xsl:template> 581 625 582 626 <xsl:template match="c:install/c:command" mode="filter-bits-32"> … … 771 815 </xsl:if> 772 816 </xsl:template> 817 818 <xsl:template match="c:note" mode="filter-bits-n32"> 819 <xsl:variable name="ismultilib"> 820 <xsl:choose> 821 <xsl:when test="contains($clfs.multilib, ',')"> 822 <xsl:text>true</xsl:text> 823 </xsl:when> 824 <xsl:otherwise> 825 <xsl:text>false</xsl:text> 826 </xsl:otherwise> 827 </xsl:choose> 828 </xsl:variable> 829 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 830 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 831 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',n32,')"> 832 <xsl:element name="note"> 833 <xsl:apply-templates select="node()" mode="filter-bits-n32" /> 834 </xsl:element> 835 </xsl:if> 836 </xsl:if> 837 </xsl:if> 838 </xsl:template> 839 840 <xsl:template match="c:warning" mode="filter-bits-n32"> 841 <xsl:variable name="ismultilib"> 842 <xsl:choose> 843 <xsl:when test="contains($clfs.multilib, ',')"> 844 <xsl:text>true</xsl:text> 845 </xsl:when> 846 <xsl:otherwise> 847 <xsl:text>false</xsl:text> 848 </xsl:otherwise> 849 </xsl:choose> 850 </xsl:variable> 851 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 852 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 853 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',n32,')"> 854 <xsl:element name="warning"> 855 <xsl:apply-templates select="node()" mode="filter-bits-n32" /> 856 </xsl:element> 857 </xsl:if> 858 </xsl:if> 859 </xsl:if> 860 </xsl:template> 773 861 774 862 <xsl:template match="c:install/c:command" mode="filter-bits-n32"> … … 963 1051 </xsl:if> 964 1052 </xsl:template> 1053 1054 <xsl:template match="c:note" mode="filter-bits-64"> 1055 <xsl:variable name="ismultilib"> 1056 <xsl:choose> 1057 <xsl:when test="contains($clfs.multilib, ',')"> 1058 <xsl:text>true</xsl:text> 1059 </xsl:when> 1060 <xsl:otherwise> 1061 <xsl:text>false</xsl:text> 1062 </xsl:otherwise> 1063 </xsl:choose> 1064 </xsl:variable> 1065 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 1066 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 1067 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',64,')"> 1068 <xsl:element name="note"> 1069 <xsl:apply-templates select="node()" mode="filter-bits-64" /> 1070 </xsl:element> 1071 </xsl:if> 1072 </xsl:if> 1073 </xsl:if> 1074 </xsl:template> 1075 1076 <xsl:template match="c:warning" mode="filter-bits-64"> 1077 <xsl:variable name="ismultilib"> 1078 <xsl:choose> 1079 <xsl:when test="contains($clfs.multilib, ',')"> 1080 <xsl:text>true</xsl:text> 1081 </xsl:when> 1082 <xsl:otherwise> 1083 <xsl:text>false</xsl:text> 1084 </xsl:otherwise> 1085 </xsl:choose> 1086 </xsl:variable> 1087 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 1088 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 1089 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',64,')"> 1090 <xsl:element name="warning"> 1091 <xsl:apply-templates select="node()" mode="filter-bits-64" /> 1092 </xsl:element> 1093 </xsl:if> 1094 </xsl:if> 1095 </xsl:if> 1096 </xsl:template> 965 1097 966 1098 <xsl:template match="c:install/c:command" mode="filter-bits-64">
Note:
See TracChangeset
for help on using the changeset viewer.