/usr/share/perl5/Biber/bcf.xsl is in biber 2.7-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 | <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:bcf="https://sourceforge.net/projects/biblatex"
xmlns="http://www.w3.org/1999/xhtml"
exclude-result-prefixes="xs xsl bcf"
version="1.0">
<!-- Use strict Doctype otherwise IE7 is too stupid to do tables correctly -->
<xsl:output method="html"
media-type="text/html"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
indent="yes"
encoding="UTF-8"/>
<xsl:template name="generate-string">
<xsl:param name="text"/>
<xsl:param name="count"/>
<xsl:choose>
<xsl:when test="string(number($count))='NaN'"/>
<xsl:when test="string-length($text) = 0 or $count <= 0"/>
<xsl:otherwise>
<xsl:value-of select="$text"/>
<xsl:call-template name="generate-string">
<xsl:with-param name="text" select="$text"/>
<xsl:with-param name="count" select="$count - 1"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="transliteration-spec">
<xsl:param name="spec"/>
<table>
<thead>
<tr>
<td colspan="3"><b>Entrytype: <xsl:value-of select="$spec/@entrytype"/></b></td>
</tr>
<tr>
<td><b>Target</b></td><td><b>From</b></td><td><b>To</b></td>
</tr>
</thead>
<tbody>
<xsl:for-each select="$spec/bcf:translit">
<tr>
<td><xsl:value-of select="./@target"/></td>
<td><xsl:value-of select="./@from"/></td>
<td><xsl:value-of select="./@to"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
</xsl:template>
<xsl:template name="sorting-spec">
<xsl:param name="spec"/>
<table>
<thead>
<tr>
<xsl:for-each select="$spec/bcf:sort">
<xsl:sort select="./@order"/>
<td>
<xsl:if test="./@final='1'">
<xsl:attribute name="class">sort_final</xsl:attribute>
</xsl:if>
<xsl:choose>
<xsl:when test="./@sort_direction='descending'">
<xsl:text disable-output-escaping="yes">&darr;</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text disable-output-escaping="yes">&uarr;</xsl:text>
</xsl:otherwise>
</xsl:choose>
<tt>
<!-- sortupper -->
<xsl:choose>
<xsl:when test="./@sortupper">
<!-- Field setting -->
<xsl:choose>
<xsl:when test="./@sortupper='1'">Aa/</xsl:when>
<xsl:otherwise>aA/</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<!-- Global setting -->
<xsl:choose>
<xsl:when test="/bcf:controlfile/bcf:options[@component='biber']/bcf:option/bcf:key[text()='sortupper']/../bcf:value/text()">Aa/</xsl:when>
<xsl:otherwise>aA/</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
<!-- sortcase -->
<xsl:choose>
<xsl:when test ="./@sortcase">
<!-- Field setting -->
<xsl:choose>
<xsl:when test="./@sortcase='1'">A</xsl:when>
<xsl:otherwise>a</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<!-- Global setting -->
<xsl:choose>
<xsl:when test="/bcf:controlfile/bcf:options[@component='biber']/bcf:option/bcf:key[text()='sortcase']/../bcf:value/text()">A</xsl:when>
<xsl:otherwise>a</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</tt>
</td>
</xsl:for-each>
</tr>
</thead>
<tbody>
<tr>
<xsl:for-each select="$spec/bcf:sort">
<xsl:sort select="./@order"/>
<td>
<ul>
<xsl:for-each select="./bcf:sortitem">
<xsl:sort select="./@order"/>
<li>
<!-- left padding -->
<xsl:if test="./@pad_side='left'">
<span class="sort_padding">
<xsl:call-template name='generate-string'>
<xsl:with-param name='text' select="./@pad_char"/>
<xsl:with-param name='count' select="./@pad_width"/>
</xsl:call-template>
</span>
</xsl:if>
<!-- left substring -->
<xsl:if test="./@substring_side='left'">
<span class="sort_substring">
<xsl:call-template name="generate-string">
<xsl:with-param name="text">></xsl:with-param>
<xsl:with-param name="count" select="./@substring_width"/>
</xsl:call-template>
</span>
</xsl:if>
<xsl:value-of select="./text()"/>
<!-- right padding -->
<xsl:if test="./@pad_side='right'">
<span class="sort_padding">
<xsl:call-template name="generate-string">
<xsl:with-param name="text" select="./@pad_char"/>
<xsl:with-param name="count" select="./@pad_width"/>
</xsl:call-template>
</span>
</xsl:if>
<!-- right substring -->
<xsl:if test="./@substring_side='right'">
<span class="sort_substring">
<xsl:call-template name="generate-string">
<xsl:with-param name="text"><</xsl:with-param>
<xsl:with-param name="count" select="./@substring_width"/>
</xsl:call-template>
</span>
</xsl:if>
</li>
</xsl:for-each>
</ul>
</td>
</xsl:for-each>
</tr>
</tbody>
</table>
<div class="key"><u>Key</u>
<ul>
<li><b>Heading Format</b>: (sort-direction)(case-order)/(case-sensitivity)</li>
<li><b>Heading key</b>: <xsl:text disable-output-escaping="yes">&uarr;</xsl:text> = ascending sort, <xsl:text disable-output-escaping="yes">&darr;</xsl:text> = descending sort, <tt>Aa</tt> = sort uppercase before lower, <tt>aA</tt> = sort lowercase before upper, <tt>A</tt> = case-sensitive sorting, <tt>a</tt> = case-insensitive sorting, <span class="sort_final">sort fieldset is final master key if defined</span></li>
<li><b>Field key</b>: <span class="sort_padding">Padding specification</span> e.g. <span class="sort_padding">0000</span>field = pad field "field" from left with "0" to width 4. <span class="sort_substring">Substring specification</span> e.g. field<span class="sort_substring"><<<<</span> = take width 4 substring from right side of field "field"</li>
</ul>
</div>
</xsl:template>
<xsl:template match="/">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>BibLaTeX control file</title>
<style type="text/css">
h2,h3,h4 {
font-family: Arial,sans-serif;
}
.small {
font-size: 70%;
}
.key {
font-size: 70%;
padding-top: 2ex;
}
.map_meta {
color: #6699CC;
}
.sort_padding {
color: #6699CC;
}
.sort_substring {
color: #FF9933;
}
.sort_final {
background-color: #FFAAAA;
}
.map_final {
color: #FF0000;
}
.map_newentry {
color: #00BB00;
}
.map_origentrytype {
color: #04FF04;
}
.map_origfield {
color: #6699CC;
}
.map_origfieldval {
color: #FF9933;
}
.map_null {
text-decoration: line-through;
}
.map_regexp {
font-size: 60%;
font-family: "Courier New",monospace;
}
.la_fieldkey {
font-style: italic;
color: #AAAAAA;
}
.la_final {
color: #FF0000;
}
.la_substring {
color: #FF9933;
}
.la_compound {
color: #6699CC;
}
.la_names {
color: #04FF04;
}
.la_namessep {
color: #FF0000;
}
.field_xor_coerce {
color: #FF0000;
}
.inherit_override {
color: #FF0000;
}
.field_nullok {
background-color: #99FF99;
}
.field_skip {
background-color: #D0D0D0;
}
.global_entrytype_fields {
color: #666666;
}
ul {
list-style-type: none;
margin-left: 0;
margin-right: 0;
margin-top: 0;
margin-bottom: 0;
padding-left: 0;
padding-top: 0;
padding-bottom: 0;
padding-right: 0;
}
table {
border-width: 1px;
border-spacing: 2px;
border-style: hidden;
border-color: gray;
border-collapse: collapse;
background-color: white;
}
table thead {
background-color: #FAF0E6;
text-align: center;
}
table td {
wrap: soft;
vertical-align: text-top;
line-height: 1;
padding: 0px 5px 0px 5px;
border-width: 1px;
border-style: inset;
border-color: gray;
}
</style>
</head>
<body>
<h2><tt>BibLaTeX</tt> Control File (BCF format version: <xsl:value-of select="/bcf:controlfile/@version"/> biblatex version: <xsl:value-of select="/bcf:controlfile/@bltxversion"/>)</h2>
<!-- OPTIONS -->
<hr/>
<xsl:for-each select="/bcf:controlfile/bcf:options">
<h3><xsl:value-of select="./@type"/> options for <tt><xsl:value-of select="./@component"/></tt></h3>
<table>
<thead>
<tr><td>Option</td><td>Value</td></tr>
</thead>
<tbody>
<xsl:for-each select="./bcf:option">
<xsl:choose>
<xsl:when test="./@type='singlevalued'">
<tr>
<td><xsl:value-of select="./bcf:key/text()"/></td>
<td><tt><xsl:value-of select="./bcf:value/text()"/></tt></td>
</tr>
</xsl:when>
<xsl:when test="./@type='multivalued'">
<tr>
<td><xsl:value-of select="./bcf:key/text()"/></td>
<td><tt><xsl:for-each select="./bcf:value">
<xsl:sort select="./@order"/>
<xsl:value-of select="./text()"/>
<xsl:if test="not(position()=last())">
<xsl:text disable-output-escaping="yes">,&nbsp;</xsl:text>
</xsl:if>
</xsl:for-each></tt></td>
</tr>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</tbody>
</table>
</xsl:for-each>
<!-- OPTION SCOPE -->
<hr/>
<h3>Option Scope</h3>
<xsl:for-each select="/bcf:controlfile/bcf:optionscope">
<table>
<thead>
<tr>
<td colspan="2"><b><xsl:value-of select="./@type"/></b></td>
</tr>
<tr>
<td>Option</td><td>Datatype</td>
</tr>
</thead>
<tbody>
<xsl:for-each select="./bcf:option">
<xsl:sort select="./text()"/>
<tr><td><xsl:value-of select="./text()"/></td><td><xsl:value-of select="./@datatype"/></td></tr>
</xsl:for-each>
</tbody>
</table>
</xsl:for-each>
<!-- DATAFIELD SETS -->
<hr/>
<h3>Datafield Sets</h3>
<table>
<thead>
<tr>
<td><b>Name</b></td><td><b>Members</b></td>
</tr>
</thead>
<tbody>
<xsl:for-each select="/bcf:controlfile/bcf:datafieldset">
<tr>
<td><xsl:value-of select="./@name"/></td>
<td>
<xsl:for-each select="./bcf:member">
<xsl:if test="./@datatype">
<b>datatype:</b><xsl:value-of select="./@datatype"/>
<xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
</xsl:if>
<xsl:if test="./@fieldtype">
<b>fieldtype:</b><xsl:value-of select="./@fieldtype"/>
<xsl:if test="not(position()=last())">
<xsl:text disable-output-escaping="yes">,&nbsp;</xsl:text>
</xsl:if>
</xsl:if>
<xsl:if test="./@field">
<xsl:value-of select="./@field"/>
<xsl:if test="not(position()=last())">
<xsl:text disable-output-escaping="yes">,&nbsp;</xsl:text>
</xsl:if>
</xsl:if>
</xsl:for-each>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
<!-- DATASOURCE MAPPINGS -->
<xsl:if test="/bcf:controlfile/bcf:sourcemap">
<hr/>
<h3>Datasource Mappings</h3>
<xsl:for-each select="/bcf:controlfile/bcf:sourcemap/bcf:maps">
<h4><xsl:value-of select="./@level"/> Mappings for datatype <xsl:value-of select="./@datatype"/> (default overwrite =
<xsl:choose>
<xsl:when test="./@map_overwrite">1</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>, section =
<xsl:choose>
<xsl:when test="./@refsection">
<xsl:value-of select="./@refsection"/>
</xsl:when>
<xsl:otherwise>all</xsl:otherwise>
</xsl:choose>)</h4>
<xsl:for-each select="./bcf:map">
<table>
<thead>
<tr>
<td align="left">Mapping (<xsl:choose>
<xsl:when test="./@map_overwrite">overwrite = <xsl:value-of select="./@map_overwrite"/></xsl:when>
<xsl:otherwise>default overwrite</xsl:otherwise>
</xsl:choose>
<xsl:if test="./bcf:per_type">
, <b>for types</b>:
<xsl:for-each select="./bcf:per_type">
<xsl:sort select="./text()"/>
<xsl:value-of select="./text()"/>
<xsl:if test="not(position()=last())">, </xsl:if>
</xsl:for-each>
</xsl:if>
<xsl:if test="./bcf:per_datasource">
, <b>for datasources</b>:
<xsl:for-each select="./bcf:per_datasource">
<xsl:sort select="./text()"/>
<xsl:value-of select="./text()"/>
<xsl:if test="not(position()=last())">, </xsl:if>
</xsl:for-each>
</xsl:if>
<xsl:if test="./@map_foreach">
, foreach loop field=<xsl:value-of select="./@map_foreach"/>
</xsl:if>)</td>
</tr>
</thead>
<tbody>
<xsl:for-each select="./bcf:map_step">
<tr><td>
<xsl:if test="./@map_type_source">
<span><xsl:if test="./@map_final='1'">
<xsl:attribute name="class">map_final</xsl:attribute>
</xsl:if>
@<xsl:value-of select="./@map_type_source"/></span>
<xsl:if test="./@map_type_target">
<xsl:text disable-output-escaping="yes">&rarr;</xsl:text>@<xsl:value-of select="./@map_type_target"/>
</xsl:if>
</xsl:if>
<xsl:if test="./@map_entry_new">
<span><xsl:attribute name="class">map_newentry</xsl:attribute>NEW <xsl:value-of
select="./@map_entry_newtype"/> created with key "<xsl:value-of select="./@map_entry_new"/>"</span>
</xsl:if>
<xsl:if test="./@map_field_source">
<span><xsl:if test="./@map_final='1'">
<xsl:attribute name="class">map_final</xsl:attribute>
</xsl:if>
<xsl:value-of select="./@map_field_source"/></span>
<xsl:if test="./@map_field_target">
<xsl:text disable-output-escaping="yes">&rarr;</xsl:text><xsl:value-of select="./@map_field_target"/>
</xsl:if>
<xsl:if test="./@map_match"> <xsl:text disable-output-escaping="yes">&asymp;</xsl:text> <span class="map_regexp"><xsl:value-of select="./@map_match"/></span></xsl:if>
<xsl:if test="./@map_replace"> <xsl:text disable-output-escaping="yes">&rarr;</xsl:text> <span class="map_regexp"><xsl:value-of select="./@map_replace"/></span></xsl:if>
</xsl:if>
<xsl:if test="./@map_field_set">
<span><xsl:if test="./@map_null='1'">
<xsl:attribute name="class">map_null</xsl:attribute>
</xsl:if>
<xsl:value-of select="./@map_field_set"/></span>
<xsl:if test="./@map_field_value">="<xsl:value-of select="./@map_field_value"/>"</xsl:if>
<xsl:if test="./@map_origentrytype='1'">=<span class="map_origentrytype">TYPE</span></xsl:if>
<xsl:if test="./@map_origfield='1'">=<span class="map_origfield">FIELD</span></xsl:if>
<xsl:if test="./@map_origfieldval='1'">=<span
class="map_origfieldval">FIELDVAL</span></xsl:if></xsl:if>
<xsl:if test="./@map_entrytarget">
<span><xsl:attribute
name="class">map_newentry</xsl:attribute>
applied to target "<xsl:value-of select="./@map_entrytarget"/>"</span>
</xsl:if>
</td></tr>
</xsl:for-each>
</tbody>
</table>
<br/>
</xsl:for-each>
</xsl:for-each>
<div class="key"><u>Key</u>
<ul>
<li><b><span class="map_final">@entrytype</span></b>: Entrytype for entry must match or mapping terminates</li>
<li><b><span class="map_final">field</span></b>: Entry must have field or mapping terminates</li>
<li><b>@source<xsl:text disable-output-escaping="yes">&rarr;</xsl:text>@target</b>: Change source entrytype to target entrytype</li>
<li><b>source<xsl:text disable-output-escaping="yes">&rarr;</xsl:text>target</b>: Change source field to target field</li>
<li><b><span class="map_null">field</span></b>: Delete field</li>
<li><b>field="string"</b>: Set field to "string"</li>
<li><b><span class="map_origentrytype">TYPE</span></b>: Most recently mentioned source entrytype</li>
<li><b><span class="map_origfield">FIELD</span></b>: Most recently source field</li>
<li><b><span class="map_origfieldval">FIELDVAL</span></b>: Most recently source field value</li>
<li><b>field<xsl:text disable-output-escaping="yes">&asymp;</xsl:text>MATCH</b>: field must match Regular Expression MATCH</li>
<li><b>field<xsl:text disable-output-escaping="yes">&asymp;</xsl:text>MATCH <xsl:text disable-output-escaping="yes">&rarr;</xsl:text> REPLACE</b>: Perform Regular Expression match/replace on field</li>
</ul>
</div>
</xsl:if>
<!-- LABELALPHA NAME TEMPLATES -->
<xsl:if test="/bcf:controlfile/bcf:labelalphanametemplate">
<hr/>
<h4>Labelalpha Name Templates</h4>
<xsl:for-each select="/bcf:controlfile/bcf:labelalphanametemplate">
<h4>Template for type <xsl:value-of select="./@type"/></h4>
<table>
<thead>
<tr><td>Order</td><td>Pre</td><td>Use option</td><td>Width</td><td>Side</td><td>Compound</td><td>Namepart</td></tr>
</thead>
<tbody>
<xsl:for-each select="./bcf:namepart">
<xsl:sort select="./@order"/>
<tr>
<td><xsl:value-of select="./@order"/></td>
<td><xsl:value-of select="./@pre"/></td>
<td><xsl:value-of select="./@use"/></td>
<td><xsl:value-of select="./@substring_width"/></td>
<td><xsl:value-of select="./@substring_side"/></td>
<td><xsl:value-of select="./@substring_compound"/></td>
<td><xsl:value-of select="./text()"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
<br/>
</xsl:for-each>
</xsl:if>
<!-- LABELALPHA TEMPLATES -->
<xsl:if test="/bcf:controlfile/bcf:labelalphatemplate">
<hr/>
<h3>Labelalpha Templates</h3>
<xsl:for-each select="/bcf:controlfile/bcf:labelalphatemplate">
<h4>Template for type <xsl:value-of select="./@type"/></h4>
<table>
<thead>
<tr>
<xsl:for-each select="./bcf:labelelement">
<xsl:sort select="./@order"/>
<td>Part <xsl:value-of select="./@order"/></td>
</xsl:for-each>
</tr>
</thead>
<tbody>
<tr>
<xsl:for-each select="./bcf:labelelement">
<xsl:sort select="./@order"/>
<td>
<ul>
<xsl:for-each select="./bcf:labelpart">
<li>
<span>
<xsl:if test="./@final='1'">
<xsl:attribute name="class">la_final</xsl:attribute>
</xsl:if>
<xsl:if test="./@substring_compound='1'">
<xsl:attribute name="class">la_compound</xsl:attribute>
</xsl:if>
<xsl:if test="./@ifnames">
namecount=<xsl:value-of select="./@ifnames"/><xsl:text disable-output-escaping="yes">&rarr;</xsl:text>
</xsl:if>
<!-- left substring -->
<xsl:if test="./@substring_side='left'">
<span class="la_substring">
<xsl:call-template name="generate-string">
<xsl:with-param name="text">></xsl:with-param>
<xsl:with-param name="count" select="./@substring_width"/>
</xsl:call-template>
</span>
</xsl:if>
<xsl:value-of select="./text()"/>
<xsl:if test="./@namessep">
<span><xsl:attribute name="class">la_namessep</xsl:attribute>(<xsl:value-of select="./@namessep"/>)</span>
</xsl:if>
<xsl:if test="./@names">
<span><xsl:attribute name="class">la_names</xsl:attribute>=<xsl:value-of select="./@names"/></span>
</xsl:if>
<!-- right substring -->
<xsl:if test="./@substring_side='right'">
<span class="la_substring">
<xsl:call-template name="generate-string">
<xsl:with-param name="text"><</xsl:with-param>
<xsl:with-param name="count" select="./@substring_width"/>
</xsl:call-template>
</span>
</xsl:if>
<xsl:if test="./@substring_width='v'">
<span class="la_substring">v<xsl:if test="./@substring_width_max">/<xsl:value-of select="./@substring_width_max"/></xsl:if></span>
</xsl:if>
<xsl:if test="./@substring_width='vf'">
<span class="la_substring">vf<xsl:if test="./@substring_fixed_threshold">/<xsl:value-of select="./@substring_fixed_threshold"/></xsl:if></span>
</xsl:if>
<xsl:if test="./@substring_width='l'">
<span class="la_substring">l</span>
</xsl:if>
<xsl:if test="./@noalphaothers='1'">
<span class="la_final"><xsl:text disable-output-escaping="yes">&otimes;</xsl:text></span>
</xsl:if>
</span>
</li>
</xsl:for-each>
</ul>
</td>
</xsl:for-each>
</tr>
</tbody>
</table>
</xsl:for-each>
<div class="key"><u>Key</u>
<ul>
<li><b>Heading key</b>: Label parts are concatenated together in part order shown</li>
<li><b>Labelpart key</b>: <span class="la_final">Final label, no more parts are considered</span>. "namecount=n<xsl:text disable-output-escaping="yes">&rarr;</xsl:text><span class="la_fieldkey">field</span>" - conditional name <span class="la_fieldkey">field</span>part, only used if there as many names as specified by the range n. Substring specification: "<span class="la_substring">>>></span><span class="la_fieldkey">field</span>" = use three chars from left side of field. "<span class="la_fieldkey">field</span><span class="la_substring"><<</span>" = use two chars from right side of field. "<span class="la_fieldkey">field</span><span class="la_substring">v/n</span>" = variable-width substring, max n chars. "<span class="la_fieldkey">field</span><span class="la_substring">vf/n</span>" = variable-width substring fixed to same length as longest string occuring at least n times. "<span class="la_fieldkey">field</span><span class="la_substring">l</span>" = list scope disambiguation where the label as a whole is unique, not necessarily the individual parts. "<span class="la_fieldkey">field</span><span class="la_names">"=range</span>=only use the names in the specified range to form the labelpart. "<span class="la_fieldkey">field</span><span class="la_namessep">(string)</span>"=use string as separator between all names. <span class="la_final"><xsl:text disable-output-escaping="yes">&otimes;</xsl:text></span> = supress alphaothers</li>
</ul>
</div>
</xsl:if>
<!-- INHERITANCE -->
<xsl:if test="/bcf:controlfile/bcf:inheritance">
<hr/>
<h3>Inheritance</h3>
<h4>Defaults</h4>
<!-- Defaults -->
<table>
<thead>
<tr>
<td>Child type <xsl:text disable-output-escaping="yes">&asymp;</xsl:text> Parent type</td>
<td>Source field <xsl:text disable-output-escaping="yes">&rarr;</xsl:text> Target field</td>
<td>Suppress</td>
</tr>
</thead>
<tbody>
<!-- Defaults for all types -->
<tr>
<td>* <xsl:text disable-output-escaping="yes"> &asymp; </xsl:text> *</td>
<xsl:choose>
<xsl:when test="/bcf:controlfile/bcf:inheritance/bcf:defaults/@inherit_all='true'">
<td>
<span>
<xsl:if test="/bcf:controlfile/bcf:inheritance/bcf:defaults/@override_target='true'">
<xsl:attribute name="class">inherit_override</xsl:attribute>
</xsl:if>
* </span>
<xsl:text disable-output-escaping="yes">&rarr;</xsl:text>
<span>
<xsl:if test="/bcf:controlfile/bcf:inheritance/bcf:defaults/@override_target='false'">
<xsl:attribute name="class">inherit_override</xsl:attribute>
</xsl:if>
* </span>
</td>
</xsl:when>
<xsl:otherwise>
<td>
<span>
<xsl:if test="/bcf:controlfile/bcf:inheritance/bcf:defaults/@override_target='true'">
<xsl:attribute name="class">inherit_override</xsl:attribute>
</xsl:if>
*</span>
<xsl:text disable-output-escaping="yes">&rarr;</xsl:text>
<span>
<xsl:if test="/bcf:controlfile/bcf:inheritance/bcf:defaults/@override_target='false'">
<xsl:attribute name="class">inherit_override</xsl:attribute>
</xsl:if>
<xsl:text disable-output-escaping="yes">&empty;</xsl:text>
</span>
</td>
</xsl:otherwise>
</xsl:choose>
<td><xsl:value-of select="/bcf:controlfile/bcf:inheritance/bcf:defaults/@suppress"/></td>
</tr>
<!-- Defaults for certain types -->
<xsl:for-each select="/bcf:controlfile/bcf:inheritance/bcf:defaults/bcf:type_pair">
<tr>
<td>
<xsl:choose>
<xsl:when test ="./@target='all'">*</xsl:when>
<xsl:otherwise><xsl:value-of select="./@target"/></xsl:otherwise>
</xsl:choose>
<xsl:text disable-output-escaping="yes"> &asymp; </xsl:text>
<xsl:choose>
<xsl:when test ="./@source='all'">*</xsl:when>
<xsl:otherwise><xsl:value-of select="./@source"/></xsl:otherwise>
</xsl:choose>
</td>
<xsl:choose>
<xsl:when test="./@inherit_all='true'">
<td>
<span>
<xsl:if test="./@override_target='true'">
<xsl:attribute name="class">inherit_override</xsl:attribute>
</xsl:if>
*</span>
<xsl:text disable-output-escaping="yes"> &asymp; </xsl:text>
<span>
<xsl:if test="./@override_target='false'">
<xsl:attribute name="class">inherit_override</xsl:attribute>
</xsl:if>
*</span>
</td>
</xsl:when>
<xsl:otherwise>
<td>
<span>
<xsl:if test="./@override_target='true'">
<xsl:attribute name="class">inherit_override</xsl:attribute>
</xsl:if>
*</span>
<xsl:text disable-output-escaping="yes">&rarr;</xsl:text>
<span>
<xsl:if test="./@override_target='false'">
<xsl:attribute name="class">inherit_override</xsl:attribute>
</xsl:if>
<xsl:text disable-output-escaping="yes">&empty;</xsl:text>
</span>
</td>
</xsl:otherwise>
</xsl:choose>
<td><xsl:value-of select="./@suppress"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
<h4>Specifications</h4>
<table>
<thead>
<tr>
<td>Child type <xsl:text disable-output-escaping="yes">&asymp;</xsl:text> Parent type</td>
<td>Source field <xsl:text disable-output-escaping="yes">&rarr;</xsl:text> Target field</td>
<td>Suppress</td>
</tr>
</thead>
<tbody>
<xsl:for-each select="/bcf:controlfile/bcf:inheritance/bcf:inherit">
<tr>
<td>
<ul>
<xsl:for-each select="./bcf:type_pair">
<li>
<xsl:choose>
<xsl:when test ="./@target='all'">*</xsl:when>
<xsl:otherwise><xsl:value-of select="./@target"/></xsl:otherwise>
</xsl:choose>
<xsl:text disable-output-escaping="yes"> &asymp; </xsl:text>
<xsl:choose>
<xsl:when test ="./@source='all'">*</xsl:when>
<xsl:otherwise><xsl:value-of select="./@source"/></xsl:otherwise>
</xsl:choose>
</li>
</xsl:for-each>
</ul>
</td>
<td>
<ul>
<xsl:for-each select="./bcf:field">
<li>
<xsl:choose>
<!-- A field skip specification -->
<xsl:when test ="./@skip='true'">
<xsl:value-of select="./@source"/> <xsl:text disable-output-escaping="yes"> &rarr; </xsl:text> <xsl:text disable-output-escaping="yes">&empty;</xsl:text>
</xsl:when>
<!-- A normal field inherit specification -->
<xsl:otherwise>
<span>
<xsl:if test="./@override_target='true'">
<xsl:attribute name="class">inherit_override</xsl:attribute>
</xsl:if>
<xsl:value-of select="./@source"/>
</span>
<xsl:text disable-output-escaping="yes"> &rarr; </xsl:text>
<span>
<xsl:if test="./@override_target='false'">
<xsl:attribute name="class">inherit_override</xsl:attribute>
</xsl:if>
<xsl:value-of select="./@target"/>
</span>
</xsl:otherwise>
</xsl:choose>
</li>
</xsl:for-each>
</ul>
</td>
<td><xsl:value-of select="./@suppress"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
<div class="key"><u>Key</u>
<ul>
<li><tt>*</tt> matches all entrytypes or fields</li>
<li><tt>X</tt><xsl:text disable-output-escaping="yes"> &asymp; </xsl:text><tt>Y</tt>: <tt>X</tt> inherits from<tt> Y</tt></li>
<li><tt>X</tt><xsl:text disable-output-escaping="yes"> &rarr; &empty;</xsl:text>: Field <tt>X</tt> is suppressed</li>
<li><tt>F</tt><xsl:text disable-output-escaping="yes"> &rarr; </xsl:text><tt>F'</tt>: Field <tt>F</tt> in parent becomes field <tt>F'</tt> in child. If both field <tt>F</tt> and field <tt>F'</tt> exist, field in <span class="inherit_override">red</span> overrides the other.</li>
</ul>
</div>
</xsl:if>
<!-- SORTING -->
<hr/>
<h3>Global Default Sorting Options</h3>
<h4>Presort defaults</h4>
<table>
<thead>
<tr><td>Entrytype</td><td>Presort default</td></tr>
</thead>
<tbody>
<xsl:for-each select="/bcf:controlfile/bcf:sorting/bcf:presort">
<tr>
<td>
<xsl:choose>
<xsl:when test="./@type">
<xsl:value-of select="./@type"/>
</xsl:when>
<xsl:otherwise>
ALL
</xsl:otherwise>
</xsl:choose>
</td>
<td><tt><xsl:value-of select="./text()"/></tt></td>
</tr>
</xsl:for-each>
</tbody>
</table>
<h4>Sorting exclusions</h4>
<table>
<thead>
<tr><td>Entrytype</td><td>Fields excluded from sorting</td></tr>
</thead>
<tbody>
<xsl:for-each select="/bcf:controlfile/bcf:sorting/bcf:sortexclusion">
<tr>
<td>
<xsl:value-of select="./@type"/>
</td>
<td>
<xsl:for-each select="./bcf:exclusion">
<xsl:value-of select="./text()"/>
<xsl:if test="not(position()=last())">
<xsl:text disable-output-escaping="yes">,&nbsp;</xsl:text>
</xsl:if>
</xsl:for-each>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
<h4>Sorting inclusions</h4>
<table>
<thead>
<tr><td>Entrytype</td><td>Fields forcibly included in sorting</td></tr>
</thead>
<tbody>
<xsl:for-each select="/bcf:controlfile/bcf:sorting/bcf:sortinclusion">
<tr>
<td>
<xsl:value-of select="./@type"/>
</td>
<td>
<xsl:for-each select="./bcf:inclusion">
<xsl:value-of select="./text()"/>
<xsl:if test="not(position()=last())">
<xsl:text disable-output-escaping="yes">,&nbsp;</xsl:text>
</xsl:if>
</xsl:for-each>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
<h4>Uniquename Template</h4>
<table>
<thead>
<tr><td>Order</td><td>Base</td><td>Use option</td><td>Namepart</td></tr>
</thead>
<tbody>
<xsl:for-each select="/bcf:controlfile/bcf:uniquenametemplate/bcf:namepart">
<xsl:sort select="./@order"/>
<tr>
<td><xsl:value-of select="./@order"/></td>
<td><xsl:value-of select="./@base"/></td>
<td><xsl:value-of select="./@use"/></td>
<td><xsl:value-of select="./text()"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
<br/>
<h4>Sorting Name Key Specification</h4>
<xsl:for-each select="/bcf:controlfile/bcf:sortingnamekey">
<table>
<thead>
<tr><td colspan="2"><b><xsl:value-of select="./@keyscheme"/></b></td></tr>
<tr><td>Order</td><td>Keypart</td></tr>
</thead>
<tbody>
<xsl:for-each select="./bcf:keypart">
<xsl:sort select="./@order"/>
<tr>
<td><xsl:value-of select="./@order"/></td>
<td>
<xsl:for-each select="./bcf:part">
<xsl:sort select="./@order"/>
<xsl:value-of select="./text()"/><xsl:if
test="./@use"><span class="small"> (if use<xsl:value-of select="./text()"/>=<xsl:value-of select="./@use"/>)</span></xsl:if><xsl:if test="./@inits"> (Initials only)</xsl:if>
<xsl:if test="not(position()=last())"> + </xsl:if>
</xsl:for-each>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
<br/>
</xsl:for-each>
<h4>Sorting Specification</h4>
<xsl:call-template name="sorting-spec">
<xsl:with-param name="spec" select="/bcf:controlfile/bcf:sorting"/>
</xsl:call-template>
<xsl:if test="/bcf:controlfile/bcf:transliteration">
<h4>Sorting Transliteration</h4>
<xsl:for-each select="/bcf:controlfile/bcf:transliteration">
<xsl:call-template name="transliteration-spec">
<xsl:with-param name="spec" select="."/>
</xsl:call-template>
<br/>
</xsl:for-each>
</xsl:if>
<xsl:if test="/bcf:controlfile/bcf:datamodel">
<hr/>
<h3>Data Model</h3>
<h4>Constants</h4>
<table>
<thead>
<tr><td>Name</td><td>Type</td><td>Value</td></tr>
</thead>
<tbody>
<xsl:for-each select="/bcf:controlfile/bcf:datamodel/bcf:constants/bcf:constant">
<tr>
<td><xsl:value-of select="./@name"/></td>
<td><xsl:value-of select="./@type"/></td>
<td><xsl:value-of select="./text()"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
<h4>Legal entrytypes</h4>
<table>
<thead>
<tr><td>Entrytype</td><td>Legal fields for entrytype</td></tr>
</thead>
<tbody>
<tr>
<td>GLOBAL</td>
<td>
<div class="global_entrytype_fields">
<xsl:for-each select="/bcf:controlfile/bcf:datamodel/bcf:entryfields[not(bcf:entrytype)]/bcf:field">
<xsl:sort select="./text()"/>
<xsl:value-of select="./text()"/>
<xsl:if test="not(position()=last())">, </xsl:if>
</xsl:for-each>
</div>
</td>
</tr>
<xsl:for-each select="/bcf:controlfile/bcf:datamodel/bcf:entrytypes/bcf:entrytype">
<tr>
<td><xsl:value-of select="./text()"/></td>
<!-- Save a varible pointing to the entrytype node -->
<xsl:variable name="entrynode" select="current()"/>
<!-- Fields which are valid for this entrytype -->
<td>
<!-- If no fields explicitly listed for entrytype, just global fields -->
<xsl:if test="not(/bcf:controlfile/bcf:datamodel/bcf:entryfields/bcf:entrytype[text()=$entrynode/text()])">
<div class="global_entrytype_fields">GLOBAL fields</div>
</xsl:if>
<xsl:for-each select="/bcf:controlfile/bcf:datamodel/bcf:entryfields">
<!-- fields valid just for this entrytype -->
<xsl:if test="./bcf:entrytype[text()=$entrynode/text()]">
<!-- List global fields for all entrytypes first -->
<div class="global_entrytype_fields">GLOBAL fields</div>
<xsl:for-each select="./bcf:field">
<xsl:sort select="./text()"/>
<xsl:value-of select="./text()"/>
<xsl:if test="not(position()=last())">, </xsl:if>
</xsl:for-each>
</xsl:if>
</xsl:for-each>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
<h4>Field Types</h4>
<table>
<thead>
<tr><td>Field</td><td>Field Format</td><td>Data type</td></tr>
</thead>
<tbody>
<xsl:for-each select="/bcf:controlfile/bcf:datamodel/bcf:fields/bcf:field">
<tr>
<td>
<xsl:value-of select="./text()"/>
<xsl:if test="./@nullok='true'"><xsl:text disable-output-escaping="yes">&empty;</xsl:text></xsl:if>
<xsl:if test="./@skip_output='true'"><xsl:text disable-output-escaping="yes">&loz;</xsl:text></xsl:if>
</td>
<td>
<xsl:choose>
<xsl:when test="./@format"><xsl:value-of select="./@format"/></xsl:when>
<xsl:otherwise>standard</xsl:otherwise>
</xsl:choose>
</td>
<td>
<xsl:value-of select="./@datatype"/><xsl:text disable-output-escaping="yes">&nbsp;</xsl:text><xsl:value-of select="./@fieldtype"/>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
<div class="key"><u>Key</u>
<ul>
<li><xsl:text disable-output-escaping="yes">&empty;</xsl:text> = field can null in <tt>.bbl</tt>, <xsl:text disable-output-escaping="yes">&loz;</xsl:text> = field is not output to <tt>.bbl</tt></li>
</ul>
</div>
<xsl:if test="/bcf:controlfile/bcf:datamodel/bcf:constraints">
<hr/>
<h3>Constraints</h3>
<table>
<thead>
<tr><td>Entrytypes</td><td>Constraint</td></tr>
</thead>
<tbody>
<xsl:for-each select="/bcf:controlfile/bcf:datamodel/bcf:constraints">
<tr>
<td>
<ul>
<xsl:for-each select="./bcf:entrytype">
<li>
<xsl:value-of select="./text()"/>
</li>
</xsl:for-each>
</ul>
</td>
<td>
<ul>
<xsl:for-each select="./bcf:constraint">
<li>
<xsl:choose>
<xsl:when test="./@type='conditional'">
<xsl:choose>
<xsl:when test="./bcf:antecedent/@quant='all'"><xsl:text disable-output-escaping="yes">&forall;</xsl:text></xsl:when>
<xsl:when test="./bcf:antecedent/@quant='one'"><xsl:text disable-output-escaping="yes">&exist;</xsl:text></xsl:when>
<xsl:when test="./bcf:antecedent/@quant='none'"><xsl:text disable-output-escaping="yes">&not;&exist;</xsl:text></xsl:when>
</xsl:choose>
(
<xsl:for-each select="./bcf:antecedent/bcf:field">
<xsl:value-of select="./text()"/>
<xsl:if test="not(position()=last())">,</xsl:if>
</xsl:for-each>
)
<xsl:text disable-output-escaping="yes">&rarr; </xsl:text>
<xsl:choose>
<xsl:when test="./bcf:consequent/@quant='all'"><xsl:text disable-output-escaping="yes">&forall;</xsl:text></xsl:when>
<xsl:when test="./bcf:consequent/@quant='one'"><xsl:text disable-output-escaping="yes">&exist;</xsl:text></xsl:when>
<xsl:when test="./bcf:consequent/@quant='none'"><xsl:text disable-output-escaping="yes">&not;&exist;</xsl:text></xsl:when>
</xsl:choose>
(
<xsl:for-each select="./bcf:consequent/bcf:field">
<xsl:value-of select="./text()"/>
<xsl:if test="not(position()=last())">,</xsl:if>
</xsl:for-each>
)
</xsl:when>
<xsl:when test="./@type='data'">
<xsl:choose>
<xsl:when test="./@datatype='integer'">
<xsl:value-of select="./@rangemin"/><xsl:text disable-output-escaping="yes">&le;</xsl:text>
(
<xsl:for-each select="./bcf:field">
<xsl:value-of select="./text()"/>
<xsl:if test="not(position()=last())">,</xsl:if>
</xsl:for-each>
)
<xsl:text disable-output-escaping="yes">&le;</xsl:text><xsl:value-of select="./@rangemax"/>
</xsl:when>
<xsl:when test="./@datatype='datespec'">
(
<xsl:for-each select="./bcf:field">
<xsl:value-of select="./text()"/>
<xsl:if test="not(position()=last())">,</xsl:if>
</xsl:for-each>
)
must be dates
</xsl:when>
</xsl:choose>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="./@type='mandatory'">
<xsl:for-each select="./bcf:fieldxor">
<xsl:text disable-output-escaping="yes">&oplus;</xsl:text>
(
<xsl:for-each select="./bcf:field">
<span>
<xsl:if test="./@coerce='true'">
<xsl:attribute name="class">field_xor_coerce</xsl:attribute>
</xsl:if>
<xsl:value-of select="./text()"/>
</span>
<xsl:if test="not(position()=last())">,</xsl:if>
</xsl:for-each>
)
</xsl:for-each>
<xsl:for-each select="./bcf:fieldor">
<xsl:text disable-output-escaping="yes">&or;</xsl:text>
(
<xsl:for-each select="./bcf:field">
<xsl:value-of select="./text()"/>
<xsl:if test="not(position()=last())">,</xsl:if>
</xsl:for-each>
)
</xsl:for-each>
</xsl:when>
</xsl:choose>
</li>
</xsl:for-each>
</ul>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
<div class="key"><u>Key</u>
<ul>
<li><tt>C</tt> <xsl:text disable-output-escaping="yes">&rarr;</xsl:text> <tt>C'</tt>: If condition <tt>C</tt> is met then condition <tt>C'</tt> must also be met</li>
<li><xsl:text disable-output-escaping="yes">&forall;</xsl:text> ( ... ): True if all fields in list exist</li>
<li><xsl:text disable-output-escaping="yes">&exist;</xsl:text> ( ... ): True if one field in list exists</li>
<li><xsl:text disable-output-escaping="yes">&not;&exist;</xsl:text> ( ... ): True if no fields in list exist</li>
<li><tt>n</tt> <xsl:text disable-output-escaping="yes">&le;</xsl:text> ( ... ) <xsl:text disable-output-escaping="yes">&le;</xsl:text> <tt>m</tt>: True if fields in list are have values in the range <tt>n</tt>-<tt>m</tt></li>
<li><xsl:text disable-output-escaping="yes">&oplus;</xsl:text> ( ... ): True if at least and at most one of the fields in the list exists (XOR). If more than field in the set exists, all will be ignored except for the one in <span class="field_xor_coerce">red</span></li>
<li><xsl:text disable-output-escaping="yes">&or;</xsl:text> ( ... ): True if at least one of the fields in the list exists (OR)</li>
</ul>
</div>
</xsl:if>
</xsl:if>
<hr/>
<h3>Reference Sections</h3>
<!-- Section 0 is special as it can be empty and there can be many of them -->
<h4>Section 0</h4>
<table>
<thead>
<tr><td>Data sources</td><td>Citekeys</td><td>Dynamic sets</td></tr>
</thead>
<tbody>
<tr>
<td>
<ul>
<xsl:for-each select="/bcf:controlfile/bcf:bibdata[@section='0']">
<xsl:for-each select="./bcf:datasource">
<li>
<xsl:value-of select="./text()"/> (<xsl:value-of select="./@datatype"/><xsl:text disable-output-escaping="yes">&nbsp;</xsl:text><xsl:value-of select="./@type"/>)
</li>
</xsl:for-each>
</xsl:for-each>
</ul>
</td>
<td>
<ul>
<xsl:for-each
select="/bcf:controlfile/bcf:section[@number='0']/bcf:citekey[not(@type='set')]">
<li><tt><xsl:value-of select="./text()"/></tt></li>
</xsl:for-each>
</ul>
</td>
<td>
<ul>
<xsl:for-each
select="/bcf:controlfile/bcf:section[@number='0']/bcf:citekey[@type='set']">
<li><tt><xsl:value-of select="./text()"/><xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>(<xsl:value-of select="./@members"/>)</tt></li>
</xsl:for-each>
</ul>
</td>
</tr>
</tbody>
</table>
<xsl:for-each select="/bcf:controlfile/bcf:section[@number != '0']">
<!-- Save a varible pointing to the section number -->
<xsl:variable name="secnum" select="./@number"/>
<h4>Section <xsl:value-of select="$secnum"/></h4>
<table>
<thead>
<tr><td>Data sources</td><td>Citekeys</td></tr>
</thead>
<tbody>
<tr>
<td>
<ul>
<xsl:for-each select="/bcf:controlfile/bcf:bibdata[@section=$secnum]">
<xsl:for-each select="./bcf:datasource">
<li>
<xsl:value-of select="./text()"/> (<xsl:value-of select="./@datatype"/><xsl:text disable-output-escaping="yes">&nbsp;</xsl:text><xsl:value-of select="./@type"/>)
</li>
</xsl:for-each>
</xsl:for-each>
</ul>
</td>
<td>
<ul>
<xsl:for-each select="./bcf:citekey">
<li><tt><xsl:value-of select="./text()"/></tt></li>
</xsl:for-each>
</ul>
</td>
</tr>
</tbody>
</table>
</xsl:for-each>
<h3>Sorting Lists</h3>
<xsl:for-each select="/bcf:controlfile/bcf:sortlist">
<h4><u>Sorting list "<xsl:value-of select="./@name"/>"</u></h4>
<div>
<h6>Filters</h6>
<table>
<thead>
<tr><td>Filter type</td><td>Filter value</td></tr>
</thead>
<tbody>
<xsl:for-each select="./bcf:filter">
<tr><td><xsl:value-of select="./@type"/></td><td><xsl:value-of select="./text()"/></td></tr>
</xsl:for-each>
</tbody>
</table>
</div>
<div>
<h6>Sorting Specification</h6>
<div class="small">Using sorting name key scheme: <xsl:value-of
select="./@sortnamekeyscheme"/><xsl:if
test="./@labelprefix"> and labelprefix: <xsl:value-of select="./@labelprefix"/></xsl:if></div>
<xsl:choose>
<xsl:when test="./bcf:sorting">
<xsl:call-template name="sorting-spec">
<xsl:with-param name="spec" select="./bcf:sorting"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
(global default)
</xsl:otherwise>
</xsl:choose>
</div>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
<!--
Copyright 2009-2016 François Charette and Philip Kime, all rights reserved.
This code is free software. You can redistribute it and/or
modify it under the terms of the Artistic License 2.0.
This program is distributed in the hope that it will be useful,
but without any warranty; without even the implied warranty of
merchantability or fitness for a particular purpose.
-->
|