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 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341
|
<pre>Network Working Group H. Khartabil
Request for Comments: 4661 Telio
Category: Standards Track E. Leppanen
M. Lonnfors
J. Costa-Requena
Nokia
September 2006
<span class="h1">An Extensible Markup Language (XML)-Based Format for</span>
<span class="h1">Event Notification Filtering</span>
Status of This Memo
This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
improvements. Please refer to the current edition of the "Internet
Official Protocol Standards" (STD 1) for the standardization state
and status of this protocol. Distribution of this memo is unlimited.
Copyright Notice
Copyright (C) The Internet Society (2006).
Abstract
The SIP event notification framework describes the usage of the
Session Initiation Protocol (SIP) for subscriptions and notifications
of changes to a state of a resource. The document does not describe
a mechanism whereby filtering of event notification information can
be achieved. Filtering is a mechanism for defining the preferred
notification information to be delivered and for specifying triggers
that cause that information to be delivered. In order to enable
this, a format is needed to enable the subscriber to describe the
state changes of a resource that cause notifications to be sent to it
and what those notifications are to contain. This document presents
a format in the form of an XML document.
<span class="grey">Khartabil, et al. Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc4661">RFC 4661</a> XML Based Format for Filtering September 2006</span>
Table of Contents
<a href="#section-1">1</a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-2">2</a>. Conventions . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-3">3</a>. Structure of XML-Encoded Simple-Filter . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-3.1">3.1</a>. MIME Type for Simple-Filter Document . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-3.2">3.2</a>. The <filter-set> Root Element . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-3.3">3.3</a>. The <ns-bindings> Element . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-3.4">3.4</a>. The <filter> Element . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-3.5">3.5</a>. The <what> Element . . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a>
<a href="#section-3.5.1">3.5.1</a>. The <include> Element . . . . . . . . . . . . . <a href="#page-6">6</a>
<a href="#section-3.5.2">3.5.2</a>. The <exclude> Element . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-3.5.3">3.5.3</a>. The 'type' Attribute . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-3.6">3.6</a>. The <trigger> Element . . . . . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-3.6.1">3.6.1</a>. The <changed> Element . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-3.6.2">3.6.2</a>. The <added> Element . . . . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-3.6.3">3.6.3</a>. The <removed> Element . . . . . . . . . . . . . <a href="#page-10">10</a>
<a href="#section-4">4</a>. XML Schema Extensibility . . . . . . . . . . . . . . . . . . . <a href="#page-10">10</a>
5. Syntax for Referencing XML Items and Making Logical
Expressions . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-10">10</a>
<a href="#section-6">6</a>. Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-12">12</a>
<a href="#section-6.1">6.1</a>. Filter Criteria Using <what> Element . . . . . . . . . . <a href="#page-12">12</a>
<a href="#section-6.2">6.2</a>. Filter Criteria Using <trigger> Element . . . . . . . . <a href="#page-13">13</a>
<a href="#section-6.3">6.3</a>. Filter Criteria Using <what> and <trigger> Elements . . <a href="#page-13">13</a>
<a href="#section-6.4">6.4</a>. Content Filter Using Namespaces . . . . . . . . . . . . <a href="#page-14">14</a>
<a href="#section-6.5">6.5</a>. Content Filter Using Only <include> Elements . . . . . . <a href="#page-14">14</a>
<a href="#section-6.6">6.6</a>. Two Content Filters as Filter Criteria . . . . . . . . . <a href="#page-15">15</a>
<a href="#section-7">7</a>. XML Schema for Filter Criteria . . . . . . . . . . . . . . . . <a href="#page-16">16</a>
<a href="#section-8">8</a>. Security Considerations . . . . . . . . . . . . . . . . . . . <a href="#page-18">18</a>
<a href="#section-9">9</a>. IANA Considerations . . . . . . . . . . . . . . . . . . . . . <a href="#page-19">19</a>
<a href="#section-9.1">9.1</a>. application/simple-filter+xml MIME TYPE . . . . . . . . <a href="#page-19">19</a>
9.2. URN Sub-Namespace Registration for
urn:ietf:params:xml:ns:simple-filter . . . . . . . . . . . <a href="#page-20">20</a>
<a href="#section-9.3">9.3</a>. Schema Registration . . . . . . . . . . . . . . . . . . <a href="#page-20">20</a>
<a href="#section-10">10</a>. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-20">20</a>
<a href="#section-11">11</a>. References . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-20">20</a>
<a href="#section-11.1">11.1</a>. Normative References . . . . . . . . . . . . . . . . . . <a href="#page-20">20</a>
<a href="#section-11.2">11.2</a>. Informative References . . . . . . . . . . . . . . . . . <a href="#page-21">21</a>
<span class="grey">Khartabil, et al. Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc4661">RFC 4661</a> XML Based Format for Filtering September 2006</span>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
The SIP event notification framework [<a href="#ref-2" title=""Session Initiation Protocol (SIP)-Specific Event Notification"">2</a>] describes the usage of the
Session Initiation Protocol (SIP) for subscriptions and notifications
of changes to a state of a resource. The document does not describe
a mechanism whereby filtering of event notification information can
be achieved.
Filtering is a mechanism for defining the preferred notification
information, referred to as content, to be delivered and for
specifying the rules for when that information should be delivered.
The filtering mechanism is expected to be particularly valuable and
primarily applicable to users of mobile wireless access devices. The
characteristics of the devices typically include high latency, low
bandwidth, low data processing capabilities, small display, and
limited battery power. Such devices can benefit from the ability to
filter the amount of information generated at the source of the event
notification. However, implementers need to be aware of the
computational burden on the source of the event notification. This
is discussed further in <a href="#section-8">Section 8</a>.
The structure of the filter criteria is described using the XML
schema. The filter criteria is presented as an XML document. The
XML document contains the user's preference as to when notifications
are to be sent to it and what they are to contain. The scope of the
"when" part is triggering.
The triggering is defined as enabling a subscriber to specify
triggering rules for notifications where the criteria are based on
changes of the event package [<a href="#ref-2" title=""Session Initiation Protocol (SIP)-Specific Event Notification"">2</a>] specific state information, e.g.,
for the presence information document [<a href="#ref-15" title=""A Presence Event Package for the Session Initiation Protocol (SIP)"">15</a>], the change in the value
of the <status> element.
The functionality of the filtering regarding the SIP event
notifications is specified in [<a href="#ref-3" title=""Functional Description of Event Notification Filtering"">3</a>].
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Conventions</span>
In this document, the key words 'MUST', 'MUST NOT', 'REQUIRED',
'SHALL', 'SHALL NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'MAY',
and 'OPTIONAL' are to be interpreted as described in <a href="./rfc2119">RFC 2119</a> [<a href="#ref-1" title=""Key words for use in RFCs to Indicate Requirement Levels"">1</a>] and
indicate requirement levels for compliant implementations.
Throughout the document, the "resulting XML document" refers to the
final XML document that carries state information to be delivered to
the subscriber after the filters have been applied to it.
<span class="grey">Khartabil, et al. Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc4661">RFC 4661</a> XML Based Format for Filtering September 2006</span>
"Content" refers to the XML document that appears in a notification
reflecting the state of a resource.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Structure of XML-Encoded Simple-Filter</span>
A simple-filter is an XML document [<a href="#ref-8" title=""Exensible Markup Language (XML) 1.0 (Second Edition)"">8</a>] that MUST be well formed and
MUST be valid according to schemas, including extension schemas,
available to the validater, and applicable to the XML document. The
simple-filter documents MUST be based on XML 1.0 and MUST be encoded
using UTF-8.
The namespace identifier for elements defined by this specification
is a URN [<a href="#ref-5" title=""URN Syntax"">5</a>], which uses the namespace identifier 'ietf' defined by
[<a href="#ref-6" title=""A URN Namespace for IETF Documents"">6</a>] and extended by [<a href="#ref-4" title=""The IETF XML Registry"">4</a>]. This urn is:
urn:ietf:params:xml:ns:simple-filter.
This namespace declaration indicates the namespace on which the
filter criteria are based.
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. MIME Type for Simple-Filter Document</span>
The MIME type for the simple-filter document is "application/
simple-filter+xml". Any transport protocol (SIP [<a href="#ref-12" title=""SIP: Session Initiation Protocol"">12</a>], for example)
used to carry the filters that also carries payload type information
MUST identify the payload as MIME type
"application/simple-filter+xml" (for example, a Content-Type header
field).
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a>. The <filter-set> Root Element</span>
The root element of the filter criteria is <filter-set>.
The <filter-set> element contains the namespace definition mentioned
above. With the optional 'package' attribute, it is possible to
define the package to which the filter criteria is applied. This
might be especially useful in cases where the XML document containing
the filter criteria is separated from the events that make use of it
or from the protocol that usually carries it.
The <filter-set> element may contain one <ns-bindings> element.
The <filter-set> element contains one or more <filter> elements.
<span class="h3"><a class="selflink" id="section-3.3" href="#section-3.3">3.3</a>. The <ns-bindings> Element</span>
The <ns-bindings> element is used to bind namespaces to local
prefixes used in expressions that select elements or attributes using
<span class="grey">Khartabil, et al. Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc4661">RFC 4661</a> XML Based Format for Filtering September 2006</span>
the syntax in <a href="#section-5">Section 5</a>. Those prefixes apply to the <include>,
<exclude>, <changed>, <added>, and <removed> elements.
The <ns-bindings> element contains one or more <ns-binding> elements.
Each <ns-binding> element has a 'prefix' attribute. The value of the
'prefix' attribute is a prefix used to qualify the elements pointed
to by the expression. The <ns-binding> element also has a 'urn'
attribute that identifies the namespace that the prefix represents.
<span class="h3"><a class="selflink" id="section-3.4" href="#section-3.4">3.4</a>. The <filter> Element</span>
The <filter> element is used to specify the content of an individual
filter.
The <filter> element has an 'id' attribute. The value of the 'id'
attribute MUST be unique within the <filter-set> element. The
<filter> MAY have a 'uri' attribute. The value of the 'uri'
attribute is the URI of the resource to which the filter applies.
The <filter> MAY have a 'domain' attribute. The value of the
'domain' attribute is the domain of the resources to which the filter
applies. The 'uri' attribute and the 'domain' attribute MUST NOT
appear together in the <filter>.
The URI of the resource is useful in cases where the 'event list'
extension [<a href="#ref-17" title=""A Session Initiation Protocol (SIP) Event Notification Extension for Resource Lists"">17</a>] is used with a package. Since a subscription to an
event package may be addressed to an event list, the 'uri' attribute
allows the subscriber to define a filter specific to an individual
resource within that list. That resource may be another list. The
'uri' attribute may, of course, carry the URI of the list itself. If
the <filter> does not contain the 'uri' attribute, the filter applies
to the resource identified in the subscription request.
The 'domain' attribute carries a domain. In this case, the filter
applies to resources whose URI has a domain part matching that
domain. This can be used when a subscription is for a resource that
is an event list with many resources from differing domains.
URI matching is done according to the matching rules defined for a
particular scheme. When matching domains, the user part of the URI
is ignored for matching purposes.
The <filter> MAY have a 'remove' attribute that together with the
'id' attribute indicates the existing filter to be removed. The
value of the 'remove' attribute is of the type "Boolean". The
default value is "false".
<span class="grey">Khartabil, et al. Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc4661">RFC 4661</a> XML Based Format for Filtering September 2006</span>
The <filter> MAY have an 'enabled' attribute that indicates whether a
filter is enabled or disabled. The value of the 'enabled' attribute
is of the type "Boolean". The default value is "true".
The <filter> element MAY contain a <what> element and MAY contain one
or more <trigger> elements, but it MUST contain either the <what>
element or the <trigger> element when the filter is being enabled for
the first time. When a filter is disabled by setting the 'enabled'
attribute to "false", the <what> and <trigger> elements MAY be
omitted. Similarly, when a filter is re-enabled by setting the
'enabled' attribute to "true", the <what> and <trigger> elements MAY
be omitted.
Filter contents can be changed by changing the contents in the <what>
and <trigger> elements and maintaining the value of the filter 'id'
attribute.
<span class="h3"><a class="selflink" id="section-3.5" href="#section-3.5">3.5</a>. The <what> Element</span>
The <what> element is used to specify the content to be delivered to
the user. It does not specify the exact content but the rules that
are used to construct that information.
The <what> element may contain one or more <include> elements and one
or more <exclude> elements. When more than one <include> element has
been defined, the results are additive. That is, each <include>
element adds an element or attribute to the resulting XML document.
When more than one <exclude> element has been defined, each <exclude>
element value depletes the contents of the resulting XML document.
<span class="h4"><a class="selflink" id="section-3.5.1" href="#section-3.5.1">3.5.1</a>. The <include> Element</span>
The <include> element is used to select the content to be delivered.
Its value can identify an XML element, an attribute, or a namespace
of an XML document to be filtered. This is indicated using the
'type' attribute.
Note that the resulting XML document MUST be valid. Therefore, in
addition to including the elements identified with the <include>
element value, all other mandatory XML elements and/or attributes
must be incorporated in the resulting XML document in order to make
it valid. This, in practice, means that a subscriber defining a
filter only needs to <include> optional elements and/or attributes,
but may <include> mandatory elements and/or attributes as well.
There are also cases where a filter selects an attribute that belongs
to an optional element. In this case, the optional element needs to
appear in the resulting XML document.
<span class="grey">Khartabil, et al. Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc4661">RFC 4661</a> XML Based Format for Filtering September 2006</span>
The syntax defined in <a href="#section-5">Section 5</a> (see the definition of "selection")
MUST be used. The following example selects the <basic> element
defined in the PIDF [<a href="#ref-13" title=""Presence Information Data Format (PIDF)"">13</a>]. This results in the selection of the
<basic> element as well as all the ancestors, i.e., <status> and
<tuple>.
<include type="xpath">/presence/tuple/status/basic</include>.
<span class="h4"><a class="selflink" id="section-3.5.2" href="#section-3.5.2">3.5.2</a>. The <exclude> Element</span>
The <exclude> element is used to define exceptions to the set of XML
elements and/or attributes selected by the <include> elements. Thus,
XML elements (including their lower-level "child" elements) and/or
attributes defined by the <exclude> element are not delivered. This
is most useful when an <include> element identifies a namespace.
The <exclude> element has the optional 'type' attribute (see the
definition of the 'type' in <a href="#section-3.5.3">Section 3.5.3</a>).
Note that the resulting XML document MUST be valid. Therefore, if
the step in applying the <exclude> element value to an XML document
results in an invalid document according to the schema, that step
MUST be reversed, resulting in the elements and/or attributes being
re-introduced into the resulting XML document with their previous
values in order to make it valid. This, in practice, means that a
subscriber defining a filter only needs to <exclude> optional
elements and/or attributes, but SHOULD NOT <exclude> mandatory
elements and/or attributes.
The syntax MUST follow <a href="#section-5">Section 5</a>.
<span class="h4"><a class="selflink" id="section-3.5.3" href="#section-3.5.3">3.5.3</a>. The 'type' Attribute</span>
The 'type' attribute is used to describe the value of the <include>
and <exclude> elements. The following values are pre-defined:
"xpath" and "namespace". The 'type' attribute is optional, and, if
omitted, the default value is "xpath".
The "xpath" value is used when the <include> or <exclude> element
contains a value following the syntax in <a href="#section-5">Section 5</a> that selects an
element or an attribute.
The "namespace" value is used when the <include> or <exclude> element
contains a value of a namespace. The value is the URI of the
namespace. The resulting XML document is comprised of the elements
defined within the namespace.
<span class="grey">Khartabil, et al. Standards Track [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc4661">RFC 4661</a> XML Based Format for Filtering September 2006</span>
<span class="h3"><a class="selflink" id="section-3.6" href="#section-3.6">3.6</a>. The <trigger> Element</span>
The <trigger> element is used to identify the package-specific
changes that a resource has to encounter before the content is
delivered to the subscriber. It can appear more than once in a
<filter> element. Multiple appearances of this element denote the
"OR" operation. This means that updates to a resource that satisfy
any of the <trigger> elements criteria constitute the content to be
delivered.
The <trigger> element MAY contain the <changed>, <added>, or
<removed> elements, but it MUST contain at least one of the three
elements. Any combination of the 3 elements is possible. Multiple
appearances of those elements within a <trigger> element denotes the
"AND" operation. This means that updates to a resource that satisfy
ALL of the <changed>, <added>, and <removed> elements' criteria
within the <trigger> element constitute the content to be delivered.
<span class="h4"><a class="selflink" id="section-3.6.1" href="#section-3.6.1">3.6.1</a>. The <changed> Element</span>
The <changed> element is used to identify the XML element or
attribute, from the package-specific XML document, whose value MUST
change from that of the "previous XML document", in order to activate
the trigger and cause the content to be delivered. Previous XML
document" in this context refers to the raw version of the most
recent XML document that was sent to the subscriber, before the
filters were applied to it. The XML element or attribute MUST be
expressed using the syntax defined in <a href="#section-5">Section 5</a> for the "reference"
ABNF.
The <changed> element MAY contain the 'from' attribute, the 'to'
attribute, the 'by' attribute, or any combination of the three. The
absence of all of those attributes means a change of any sort to the
value of the element or attribute activates the trigger. An update
to the element or attribute value with an identical value is not a
change.
Comparison of a change is done according to the element or
attribute's lexical rules.
<span class="h5"><a class="selflink" id="section-3.6.1.1" href="#section-3.6.1.1">3.6.1.1</a>. The 'from' Attribute</span>
A trigger is active when the XML element or attribute identified with
the <changed> element has changed from the value indicated by this
attribute to a different value.
<span class="grey">Khartabil, et al. Standards Track [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc4661">RFC 4661</a> XML Based Format for Filtering September 2006</span>
<span class="h5"><a class="selflink" id="section-3.6.1.2" href="#section-3.6.1.2">3.6.1.2</a>. The 'to' Attribute</span>
A trigger is active when the XML element or attribute identified with
the <changed> element has changed to the value indicated by this
attribute from a different value.
<span class="h5"><a class="selflink" id="section-3.6.1.3" href="#section-3.6.1.3">3.6.1.3</a>. The 'by' Attribute</span>
A trigger is active when the XML element or attribute identified with
the <changed> element has changed by at least the amount indicated by
this attribute from a different value. That is, the 'by' attribute
applies only to numerical values and indicates a delta with respect
to the current value that an attribute or element (identified in the
<changed> element) needs to change before it is selected. For
example, if the 'by' attribute is set to 2 and the current value of
the element/attribute is 6, the element/attribute is selected when it
reaches (or exceeds) the value 8 or when it decreases to 4 or a lower
value.
<span class="h5"><a class="selflink" id="section-3.6.1.4" href="#section-3.6.1.4">3.6.1.4</a>. Combination of Attributes</span>
Any combination of the 'from', 'to', and 'by' attributes in the
<changed> element is possible. For example, if the 'from' attribute
is combined with the 'to' attribute, it is interpreted to mean that
the trigger is active when the XML element or attribute identified
with the <changed> element has changed from the 'from' value to the
'to' value. Note that if the 'by' attribute is used in combination
with the other attributes, the other attribute types MUST match the
'by' type of decimal.
<span class="h4"><a class="selflink" id="section-3.6.2" href="#section-3.6.2">3.6.2</a>. The <added> Element</span>
The <added> element triggers content delivery when the XML element it
identifies has been added to the document being filtered (that is,
this instance of that element appears in the current document, but
not in the previous document). It can be used, for example, to learn
of new services and/or capabilities subscribed to by the user, or
services and/or capabilities that the user has now allowed the
subscriber to see. The XML element or attribute MUST be expressed
using the syntax defined in <a href="#section-5">Section 5</a> for the "reference" ABNF.
Note that if a filter includes both the content filter (<what>) part
and the <added> element, then the definitions of the <what> part
SHOULD also cover the added elements. Otherwise, the content is
delivered without the items defined in the <added> element.
<span class="grey">Khartabil, et al. Standards Track [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc4661">RFC 4661</a> XML Based Format for Filtering September 2006</span>
<span class="h4"><a class="selflink" id="section-3.6.3" href="#section-3.6.3">3.6.3</a>. The <removed> Element</span>
The <removed> element triggers content delivery when the XML element
it identifies has been removed from the document being filtered (that
is, this instance of that element appeared in the previous document,
but not in this document). The XML element or attribute MUST be
expressed using the syntax defined in <a href="#section-5">Section 5</a> for the "reference"
ABNF.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. XML Schema Extensibility</span>
The simple-filter document is meant to be extended. An extension
takes place by defining a new set of elements in a new namespace,
governed by a new schema. Every extension MUST have an appropriate
XML namespace assigned to it. The XML namespace of the extension
MUST be different from the namespaces defined in this specification.
The extension MUST NOT change the syntax or semantics of the schemas
defined in this document. All XML tags and attributes that are part
of the extension MUST be appropriately qualified so as to place them
within that namespace and MUST be designed such that receivers can
safely ignore such extensions.
This specification defines explicit places where new elements or
attributes from an extension can be placed. These are explicitly
indicated in the schemas by the <any> and <anyAttribute> elements.
Extensions to this specification MUST specify where their elements
can be placed within the document.
As a result, a document that contains extensions will require
multiple schemas in order to determine its validity - a schema
defined in this document, along with those defined by extensions
present in the document. Because extensions occur by adding new
elements and attributes governed by new schemas, the schemas defined
in this document are fixed and would only be changed by a revision to
this specification. Such a revision, should it take place, would
endeavor to allow documents compliant to the previous schema to
remain compliant to the new one. As a result, the schemas defined
here don't provide explicit schema versions, as this is not expected
to be needed.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Syntax for Referencing XML Items and Making Logical Expressions</span>
The ABNF [<a href="#ref-10" title=""Augmented BNF for Syntax Specifications: ABNF"">10</a>] is used to describe the syntax for the expressions.
The syntax is defined to be XPATH [<a href="#ref-9" title=""XML Path Language (XPath) Version 1.0"">9</a>] compatible but has only a
restricted set of capabilities of the XPATH. More information about
the meaning of the items of the syntax can be found in [<a href="#ref-9" title=""XML Path Language (XPath) Version 1.0"">9</a>]. The
"abbreviated syntax" of the "node test" is used in the references
("reference"). The expression in the syntax relates to the
<span class="grey">Khartabil, et al. Standards Track [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc4661">RFC 4661</a> XML Based Format for Filtering September 2006</span>
predicate, comparison, and logical expressions of the XPATH. If an
XPATH expression evaluates to more than one element at a certain
step, the filter applies to all the elements that are evaluated.
That is, if a filter including an element evaluates to 2 elements,
both elements are included as a result.
selection = reference [expression]
expression = "[" (elem-expr / attr-expr)
1*[oper (elem-expr / attr-expr)] "]"
elem-expr = (elem-path / "." / "..") compar value
elem-path = (element / "*") 1*["/" / "*" / element] ["*" / element]
attr-expr = [elem-path "/"] attribute compar value
reference = elem-reference / attr-reference
elem-reference = "/" 1*("/" / "/*" / ("/" element))
attr-reference = reference attribute
oper = "and" / "or"
compar = "=" / "<" / ">"
element = [ns] string
attribute = "@" [ns] string
ns = string ":"
string = <any sequence of data supported by XML in names of XML
element, and/or attribute or prefixes of namespaces>
value = <any sequence of data supported by XML as a value of the
XML element and/or attribute>
When identifying XML elements or attributes, the value may consist of
two parts: the XML element/attribute selector and the condition
(comparison and logical expressions). The XML element selector
appears first followed by the condition part in square brackets. In
the XML element selector part, the XML elements may be referenced by
giving the full hierarchical path as: "/presence/tuple/status/basic",
by denoting the selection to cover any hierarchical level by its name
as: "//tuple/status/basic", or using the wildcard "*", denoting any
value in a certain level as "/*/watcher".
Example references are listed as follows:
o Selecting an element by using an XML element as a condition:
* //*[status/basic="open"]
* /presence/tuple[*/basic="open"]
o Selecting an element by using XML attributes as a condition:
* //watcher[@duration-subscribed<500]
* /*/watcher[@event="rejected"]
<span class="grey">Khartabil, et al. Standards Track [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc4661">RFC 4661</a> XML Based Format for Filtering September 2006</span>
o Selecting an element by using two XML elements as a condition:
* //tuple[status/basic="open" and type="device"]
o Selecting an attribute:
* //watcher/@duration-subscribed
In some cases, due to the design of the XML schema, the XPATH-like
expression results in identification of more than one element with
the same name (the XPATH expression may not have uniquely identified
an element at every step). In those cases, all elements identified
are selected.
When evaluating XPATH location steps, namespace expansion follows
XPATH 1.0 [<a href="#ref-9" title=""XML Path Language (XPath) Version 1.0"">9</a>] semantics, i.e., if the QName does not have a prefix,
then the namespace URI in the expanded name is null. With
non-default namespaces, expansion is done according to the given
<ns-bindings> definitions. When a default namespace is used in the
document, the <ns-binding> element SHOULD be used to define an equal
URI with some prefix in order to have a valid XPATH evaluation in
location steps.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Examples</span>
The XML Schema for the XML document examples is specified in
<a href="#section-7">Section 7</a>.
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. Filter Criteria Using <what> Element</span>
A user wishes to get to know his friend's availability and
willingness for messaging (SMS, IM, and MMS) in order to know whether
the friend is able to receive a message, the address to contact, and
the type of the message to be used.
This example shows how to define a content filter. The <basic>
element as well as all parent elements are selected based on a
condition defined by a logical expression. The condition is <class>
elements that have a value "MMS", "SMS", or "IM".
The <class> element is defined in [<a href="#ref-14" title=""RPID -- Rich Presence Extensions to the Presence Information Data Format (PIDF)"">14</a>] as an extension to PIDF [<a href="#ref-13" title=""Presence Information Data Format (PIDF)"">13</a>].
<?xml version="1.0" encoding="UTF-8"?>
<filter-set xmlns="urn:ietf:params:xml:ns:simple-filter">
<ns-bindings>
<ns-binding prefix="pidf" urn="urn:ietf:params:xml:ns:pidf"/>
<ns-binding prefix="rpid"
urn="urn:ietf:params:xml:ns:pidf:rpid"/>
</ns-bindings>
<filter id="123" uri="sip:presentity@example.com">
<span class="grey">Khartabil, et al. Standards Track [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc4661">RFC 4661</a> XML Based Format for Filtering September 2006</span>
<what>
<include type="xpath">
/pidf:presence/pidf:tuple[rpid:class="IM" or rpid:class="SMS"
or rpid:class="MMS"]/pidf:status/pidf:basic
</include>
</what>
</filter>
</filter-set>
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. Filter Criteria Using <trigger> Element</span>
A user requires to be informed when his colleague becomes available
by some communication means. The user gets the full presence state
of the colleague when a certain PIDF [<a href="#ref-13" title=""Presence Information Data Format (PIDF)"">13</a>] tuple <basic> status
changes from "closed" to "open".
<?xml version="1.0" encoding="UTF-8"?>
<filter-set xmlns="urn:ietf:params:xml:ns:simple-filter">
<ns-bindings>
<ns-binding prefix="pidf" urn="urn:ietf:params:xml:ns:pidf"/>
</ns-bindings>
<filter id="123" uri="sip:presentity@example.com">
<trigger>
<changed from="CLOSED" to="OPEN">
/pidf:presence/pidf:tuple/pidf:status/pidf:basic
</changed>
</trigger>
</filter>
</filter-set>
<span class="h3"><a class="selflink" id="section-6.3" href="#section-6.3">6.3</a>. Filter Criteria Using <what> and <trigger> Elements</span>
A user wishes to get information about pending and waiting
subscriptions in order to be able to authorise watchers to see his
presence information.
The filter selects watcher information notifications [<a href="#ref-16" title=""An Extensible Markup Language (XML) Based Format for Watcher Information"">16</a>] to be sent
when a subscription status has changed to "pending" or "waiting". In
the notification, only the watchers that have a status of "pending"
or "waiting" are included.
<?xml version="1.0" encoding="UTF-8"?>
<filter-set xmlns="urn:ietf:params:xml:ns:simple-filter">
<ns-bindings>
<ns-binding prefix="wi"
urn="urn:ietf:params:xml:ns:watcherinfo"/>
</ns-bindings>
<filter id="123" uri="sip:presentity@example.com">
<span class="grey">Khartabil, et al. Standards Track [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc4661">RFC 4661</a> XML Based Format for Filtering September 2006</span>
<what>
<include>
/wi:watcherinfo/wi:watcher-list/wi:watcher[@status="pending"
or @status="waiting"]
</include>
</what>
<trigger>
<changed to="pending">
/wi:watcherinfo/wi:watcher-list/wi:watcher/@status
</changed>
</trigger>
<trigger>
<changed to="waiting">
/wi:watcherinfo/wi:watcher-list/wi:watcher/@status
</changed>
</trigger>
</filter>
</filter-set>
<span class="h3"><a class="selflink" id="section-6.4" href="#section-6.4">6.4</a>. Content Filter Using Namespaces</span>
A user turns her terminal on, and the terminal automatically fetches
general presence status and information about communication means
from a certain pre-defined set of her buddies.
The filter is defined to select XML elements belonging to the PIDF
namespace.
<?xml version="1.0" encoding="UTF-8"?>
<filter-set xmlns="urn:ietf:params:xml:ns:simple-filter">
<filter id="123" uri="sip:buddylist@example.com">
<what>
<include type="namespace">
urn:ietf:params:xml:ns:pidf
</include>
</what>
</filter>
</filter-set>
<span class="h3"><a class="selflink" id="section-6.5" href="#section-6.5">6.5</a>. Content Filter Using Only <include> Elements</span>
A user wants to know if a group of his friends is available for
gaming. He orders notifications about the current status and future
changes of the game-specific presence information.
This filter is defined to select the game-specific tuple to be
delivered.
<span class="grey">Khartabil, et al. Standards Track [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc4661">RFC 4661</a> XML Based Format for Filtering September 2006</span>
<?xml version="1.0" encoding="UTF-8"?>
<filter-set xmlns="urn:ietf:params:xml:ns:simple-filter" >
<ns-bindings>
<ns-binding prefix="game-ext"
urn="urn:ietf:params:xml:ns:game-ext"/>
</ns-bindings>
<filter id="123">
<what>
<include>
/pidf:presence/pidf:tuple/
pidf:status[game-ext:label="game-X"]
</include>
</what>
</filter>
</filter-set>
<span class="h3"><a class="selflink" id="section-6.6" href="#section-6.6">6.6</a>. Two Content Filters as Filter Criteria</span>
The user is interested in getting up-to-date information about the
communication means and contact addresses of his friends. The user
also wants to get more information (e.g., location) about one of the
friends in the list, named Bob. The PIDF element <note> is filtered
out, i.e., excluded. The list was predefined as buddies@example.com.
<?xml version="1.0" encoding="UTF-8"?>
<filter-set xmlns="urn:ietf:params:xml:ns:simple-filter">
<ns-bindings>
<ns-binding prefix="pidf" urn="urn:ietf:params:xml:ns:pidf"/>
<ns-binding prefix="rpid"
urn="urn:ietf:params:xml:ns:pidf:rpid"/>
</ns-bindings>
<filter id="8439" uri="sip:buddies@example.com">
<what>
<include>
/pidf:presence/pidf:tuple[rpid:class="service"]/pidf:status/
pidf:basic
</include>
</what>
</filter>
<filter id="999" uri="sip:bob@example.com">
<what>
<include type="namespace">
urn:ietf:params:xml:ns:pidf
</include>
<exclude>
/pidf:presence/pidf:tuple/pidf:note
</exclude>
</what>
<span class="grey">Khartabil, et al. Standards Track [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc4661">RFC 4661</a> XML Based Format for Filtering September 2006</span>
</filter>
</filter-set>
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. XML Schema for Filter Criteria</span>
XML Schema Implementation (Normative)
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="urn:ietf:params:xml:ns:simple-filter"
xmlns="urn:ietf:params:xml:ns:simple-filter"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd"/>
<xs:annotation>
<xs:documentation xml:lang="en">
XML Schema Definition for Filter Criteria.
</xs:documentation>
</xs:annotation>
<xs:element name="filter-set" type="FilterSetType"/>
<xs:complexType name="FilterSetType">
<xs:sequence>
<xs:element name="ns-bindings" type="NSBindings"
minOccurs="0" maxOccurs="1"/>
<xs:element name="filter" type="FilterType"
minOccurs="1"
maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="package" type="xs:string" use="optional"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
<xs:complexType name="NSBindings">
<xs:sequence>
<xs:element name="ns-binding" type="NSBinding"
minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="NSBinding">
<xs:attribute name="prefix" type="xs:string" use="required"/>
<xs:attribute name="urn" type="xs:anyURI" use="required"/>
</xs:complexType>
<span class="grey">Khartabil, et al. Standards Track [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc4661">RFC 4661</a> XML Based Format for Filtering September 2006</span>
<xs:complexType name="FilterType">
<xs:sequence>
<xs:element name="what" type="WhatType"
minOccurs="0" maxOccurs="1"/>
<xs:element name="trigger" type="TriggerType"
minOccurs="0" maxOccurs="unbounded"/>
<xs:any namespace="##other" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="id" type="xs:string" use="required"/>
<xs:attribute name="uri" type="xs:anyURI" use="optional"/>
<xs:attribute name="domain" type="xs:string" use="optional"/>
<xs:attribute name="remove" type="xs:boolean" use="optional"
default="false"/>
<xs:attribute name="enabled" type="xs:boolean" use="optional"
default="true"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
<xs:complexType name="WhatType">
<xs:sequence>
<xs:element name="include" type="InclType"
minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="exclude" type="ExclType"
minOccurs="0" maxOccurs="unbounded"/>
<xs:any namespace="##other" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="InclType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="type" type="TypeType"
default="xpath" use="optional"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="ExclType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="type" type="TypeType"
default="xpath" use="optional"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:extension>
</xs:simpleContent>
<span class="grey">Khartabil, et al. Standards Track [Page 17]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span>
<span class="grey"><a href="./rfc4661">RFC 4661</a> XML Based Format for Filtering September 2006</span>
</xs:complexType>
<xs:simpleType name="TypeType">
<xs:restriction base="xs:string">
<xs:enumeration value="xpath"/>
<xs:enumeration value="namespace"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="TriggerType">
<xs:sequence>
<xs:element name="changed" type="ChangedType"
minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="added" type="xs:string"
minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="removed" type="xs:string"
minOccurs="0" maxOccurs="unbounded"/>
<xs:any namespace="##other" processContents="lax"
minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ChangedType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="from" type="xs:anySimpleType"
use="optional"/>
<xs:attribute name="to" type="xs:anySimpleType"
use="optional"/>
<xs:attribute name="by" type="xs:decimal"
use="optional"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:schema>
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. Security Considerations</span>
The filters in the body in a SIP message have a significant effect on
the ways in which the request is handled at a server. As a result,
it is especially important that messages containing this extension be
authenticated and authorised. Authentication can be achieved using
the Digest Authentication mechanism described in [<a href="#ref-12" title=""SIP: Session Initiation Protocol"">12</a>]. The
authorisation decision is based on the permissions that the resource
(notifier) has given to the watcher. An example of such an
auhorisation policy can be found in [<a href="#ref-18" title=""Presence Authorization Rules"">18</a>].
<span class="grey">Khartabil, et al. Standards Track [Page 18]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span>
<span class="grey"><a href="./rfc4661">RFC 4661</a> XML Based Format for Filtering September 2006</span>
Requests can reveal sensitive information about a UA's capabilities.
If this information is sensitive, it SHOULD be encrypted using SIP
S/MIME capabilities [<a href="#ref-11" title=""Secure/Multipurpose Internet Mail Extensions (S/MIME) Version 3.1 Message Specification"">11</a>].
All filtering-related security measures discussed in [<a href="#ref-2" title=""Session Initiation Protocol (SIP)-Specific Event Notification"">2</a>] MUST be
followed along with package-specific security.
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. IANA Considerations</span>
This document registers a new MIME type, "application/
simple-filter+xml", and registers a new XML namespace.
This specification follows the guidelines of <a href="./rfc3023">RFC3023</a> [<a href="#ref-7" title=""XML Media Types"">7</a>].
<span class="h3"><a class="selflink" id="section-9.1" href="#section-9.1">9.1</a>. application/simple-filter+xml MIME TYPE</span>
MIME media type: application
MIME subtype name: simple-filter+xml
Mandatory parameters: none
Optional parameters: Same as charset parameter application/xml, as
specified in <a href="./rfc3023">RFC 3023</a> [<a href="#ref-7" title=""XML Media Types"">7</a>].
Encoding considerations: Same as encoding considerations of
application/xml, as specified in <a href="./rfc3023">RFC 3023</a> [<a href="#ref-7" title=""XML Media Types"">7</a>].
Security considerations: See <a href="./rfc3023#section-10">section 10 of RFC 3023</a> [<a href="#ref-7" title=""XML Media Types"">7</a>] and section
<a href="#section-8">Section 8</a> of this document.
Interoperability considerations: none.
Published specification: This document.
Applications that use this media type: This document type has been
used to support the SIP-based Event notification framework and its
packages.
Additional information:
Magic number: None
File extension: .cl or .xml
Macintosh file type code: "TEXT"
<span class="grey">Khartabil, et al. Standards Track [Page 19]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span>
<span class="grey"><a href="./rfc4661">RFC 4661</a> XML Based Format for Filtering September 2006</span>
Personal and email address for further information: Hisham Khartabil
(hisham.khartabil@telio.no)
Intended Usage: COMMON
Author/change controller: The IETF
<span class="h3"><a class="selflink" id="section-9.2" href="#section-9.2">9.2</a>. URN Sub-Namespace Registration for</span>
<span class="h3"> urn:ietf:params:xml:ns:simple-filter</span>
This section registers a new XML namespace, as per guidelines in the
IETF XML Registry [<a href="#ref-4" title=""The IETF XML Registry"">4</a>].
URI: The URI for this namespace is
urn:ietf:params:xml:ns:simple-filter.
Registrant Contact: IETF, SIMPLE working group, Hisham Khartabil
(hisham.khartabil@telio.no)
<span class="h3"><a class="selflink" id="section-9.3" href="#section-9.3">9.3</a>. Schema Registration</span>
This section registers a new XML schema per the procedures in [<a href="#ref-4" title=""The IETF XML Registry"">4</a>].
URI: urn:ietf:params:xml:ns:simple-filter
Registrant Contact: IETF, SIMPLE working group, Hisham Khartabil
(hisham.khartabil@telio.no).
The XML for this schema can be found as the sole content of
<a href="#section-7">Section 7</a>.
<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>. Acknowledgements</span>
The authors would like to thank Jonathan Rosenberg, Henning
Schulzrinne, Tim Moran, Jari Urpalainen, Sreenivas Addagatla,
Miguel-Angel Garcia Martin, Mary Barnes, Paul Kyzivat, Robert Sparks,
and Elwyn Davies for their valuable input and comments.
<span class="h2"><a class="selflink" id="section-11" href="#section-11">11</a>. References</span>
<span class="h3"><a class="selflink" id="section-11.1" href="#section-11.1">11.1</a>. Normative References</span>
[<a id="ref-1">1</a>] Bradner, S., "Key words for use in RFCs to Indicate Requirement
Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
[<a id="ref-2">2</a>] Roach, A. B., "Session Initiation Protocol (SIP)-Specific Event
Notification", <a href="./rfc3265">RFC 3265</a>, June 2002.
<span class="grey">Khartabil, et al. Standards Track [Page 20]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span>
<span class="grey"><a href="./rfc4661">RFC 4661</a> XML Based Format for Filtering September 2006</span>
[<a id="ref-3">3</a>] Khartabil, H., Leppanen, E., Lonnfors, M., and J. Costa-
Requena, "Functional Description of Event Notification
Filtering", <a href="./rfc4660">RFC 4660</a>, September 2006.
[<a id="ref-4">4</a>] Mealling, M., "The IETF XML Registry", <a href="https://www.rfc-editor.org/bcp/bcp81">BCP 81</a>, <a href="./rfc3688">RFC 3688</a>,
January 2004.
[<a id="ref-5">5</a>] Moats, R., "URN Syntax", <a href="./rfc2141">RFC 2141</a>, May 1997.
[<a id="ref-6">6</a>] Moats, R., "A URN Namespace for IETF Documents", <a href="./rfc2648">RFC 2648</a>,
August 1999.
[<a id="ref-7">7</a>] Murata, M., St. Laurent, S., and D. Kohn, "XML Media Types",
<a href="./rfc3023">RFC 3023</a>, January 2001.
[<a id="ref-8">8</a>] Bray, T., "Exensible Markup Language (XML) 1.0 (Second
Edition)", W3C CR CR-xml11-20011006, October 2000.
[<a id="ref-9">9</a>] Clark, J., "XML Path Language (XPath) Version 1.0", W3C REC
REC-xpath-19991116, November 1999.
[<a id="ref-10">10</a>] Crocker, D. and P. Overell, "Augmented BNF for Syntax
Specifications: ABNF", <a href="./rfc4234">RFC 4234</a>, October 2005.
[<a id="ref-11">11</a>] Ramsdell, B., "Secure/Multipurpose Internet Mail Extensions
(S/MIME) Version 3.1 Message Specification", <a href="./rfc3851">RFC 3851</a>, July
2004.
<span class="h3"><a class="selflink" id="section-11.2" href="#section-11.2">11.2</a>. Informative References</span>
[<a id="ref-12">12</a>] Rosenberg, J., Schulzrinne, H., Camarillo, G., Johnston, A.,
Peterson, J., Sparks, R., Handley, M., and E. Schooler, "SIP:
Session Initiation Protocol", <a href="./rfc3261">RFC 3261</a>, June 2002.
[<a id="ref-13">13</a>] Sugano, H., Fujimoto, S., Klyne, G., Bateman, A., Carr, W., and
J. Peterson, "Presence Information Data Format (PIDF)", <a href="./rfc3863">RFC</a>
<a href="./rfc3863">3863</a>, August 2004.
[<a id="ref-14">14</a>] Schulzrinne, H., Gurbani, V., Kyzivat, P., and J. Rosenberg,
"RPID -- Rich Presence Extensions to the Presence Information
Data Format (PIDF)", <a href="./rfc4480">RFC 4480</a>, July 2006.
[<a id="ref-15">15</a>] Rosenberg, J., "A Presence Event Package for the Session
Initiation Protocol (SIP)", <a href="./rfc3856">RFC 3856</a>, August 2004.
[<a id="ref-16">16</a>] Rosenberg, J., "An Extensible Markup Language (XML) Based
Format for Watcher Information", <a href="./rfc3858">RFC 3858</a>, August 2004.
<span class="grey">Khartabil, et al. Standards Track [Page 21]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-22" ></span>
<span class="grey"><a href="./rfc4661">RFC 4661</a> XML Based Format for Filtering September 2006</span>
[<a id="ref-17">17</a>] Roach, A. B., Campbell, B., and J. Rosenberg, "A Session
Initiation Protocol (SIP) Event Notification Extension for
Resource Lists", <a href="./rfc4663">RFC 4663</a>, September 2006.
[<a id="ref-18">18</a>] Rosenberg, J., <a style="text-decoration: none" href='https://www.google.com/search?sitesearch=datatracker.ietf.org%2Fdoc%2Fhtml%2F&q=inurl:draft-+%22Presence+Authorization+Rules%22'>"Presence Authorization Rules"</a>, Work in
Progress, June 2006.
<span class="grey">Khartabil, et al. Standards Track [Page 22]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-23" ></span>
<span class="grey"><a href="./rfc4661">RFC 4661</a> XML Based Format for Filtering September 2006</span>
Authors' Addresses
Hisham Khartabil
Telio
P.O. Box 1203 Vika
Oslo
Norway
Phone: +47 2167 3544
EMail: hisham.khartabil@telio.no
Eva Leppanen
Nokia
P.O BOX 785
Tampere
Finland
Phone: +358 7180 77066
EMail: eva-maria.leppanen@nokia.com
Mikko Lonnfors
Nokia
P.O BOX 321
Helsinki
Finland
Phone: + 358 71800 8000
EMail: mikko.lonnfors@nokia.com
Jose Costa-Requena
Nokia
P.O. Box 321
FIN-00045 NOKIA GROUP
FINLAND
Phone: +358 71800 8000
EMail: jose.costa-requena@nokia.com
<span class="grey">Khartabil, et al. Standards Track [Page 23]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-24" ></span>
<span class="grey"><a href="./rfc4661">RFC 4661</a> XML Based Format for Filtering September 2006</span>
Full Copyright Statement
Copyright (C) The Internet Society (2006).
This document is subject to the rights, licenses and restrictions
contained in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a>, and except as set forth therein, the authors
retain all their rights.
This document and the information contained herein are provided on an
"AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET
ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Intellectual Property
The IETF takes no position regarding the validity or scope of any
Intellectual Property Rights or other rights that might be claimed to
pertain to the implementation or use of the technology described in
this document or the extent to which any license under such rights
might or might not be available; nor does it represent that it has
made any independent effort to identify any such rights. Information
on the procedures with respect to rights in RFC documents can be
found in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and <a href="https://www.rfc-editor.org/bcp/bcp79">BCP 79</a>.
Copies of IPR disclosures made to the IETF Secretariat and any
assurances of licenses to be made available, or the result of an
attempt made to obtain a general license or permission for the use of
such proprietary rights by implementers or users of this
specification can be obtained from the IETF on-line IPR repository at
<a href="http://www.ietf.org/ipr">http://www.ietf.org/ipr</a>.
The IETF invites any interested party to bring to its attention any
copyrights, patents or patent applications, or other proprietary
rights that may cover technology that may be required to implement
this standard. Please address the information to the IETF at
ietf-ipr@ietf.org.
Acknowledgement
Funding for the RFC Editor function is provided by the IETF
Administrative Support Activity (IASA).
Khartabil, et al. Standards Track [Page 24]
</pre>
|