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
|
<?xml version="1.0"?>
<!--
:tabSize=2:indentSize=2:wrap=hard:
$Id: ChangeLogML.xsd 9 2009-01-21 00:02:06Z rjray $
-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://www.blackperl.com/2009/01/ChangeLogML"
targetNamespace="http://www.blackperl.com/2009/01/ChangeLogML"
elementFormDefault="qualified" attributeFormDefault="unqualified"
id="changelogml">
<!--
Refer to this schema using the following namespace:
http://www.blackperl.com/2009/01/ChangeLogML
-->
<xsd:annotation>
<xsd:documentation>
A description of an XML application which itemizes changes over the
life-span of a software project. Changes are tracked by releases, with a
granularity of individual items made up of files that were affected.
</xsd:documentation>
<xsd:appinfo xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:creator>Randy J. Ray <rjray@blackperl.com></dc:creator>
<dc:date>2009-01-01</dc:date>
<dc:subject>changelog,xml,schema</dc:subject>
<dc:description>
An XML Schema describing an XML vocabulary for software project
change-logs.
</dc:description>
</xsd:appinfo>
<xsd:appinfo>
<rdf:RDF xmlns:cc="http://web.resource.org/cc/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<cc:Work rdf:about="">
<dc:title>XML Schema for Changelogs</dc:title>
<dc:description>
An XML Schema describing an XML vocabulary for software project
change-logs.
</dc:description>
<dc:creator>
<cc:Agent>
<dc:title>Randy J. Ray</dc:title>
</cc:Agent>
</dc:creator>
<dc:rights>
<cc:Agent>
<dc:title>Randy J. Ray</dc:title>
</cc:Agent>
</dc:rights>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" />
<cc:license rdf:resource="http://creativecommons.org/licenses/by-sa/2.0/" />
</cc:Work>
<cc:License rdf:about="http://creativecommons.org/licenses/by-sa/2.0/">
<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction" />
<cc:permits rdf:resource="http://web.resource.org/cc/Distribution" />
<cc:requires rdf:resource="http://web.resource.org/cc/Notice" />
<cc:requires rdf:resource="http://web.resource.org/cc/Attribution" />
<cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
<cc:requires rdf:resource="http://web.resource.org/cc/ShareAlike" />
</cc:License>
</rdf:RDF>
</xsd:appinfo>
</xsd:annotation>
<xsd:simpleType id="versionString" name="versionString">
<xsd:annotation>
<xsd:documentation>
The versionString type is applied to attributes that describe simple
revision-number strings. It only supports dotted-decimal styled
version numbers.
</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:pattern value="\d+(\.\d+)*" />
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType id="informationType" name="informationType" mixed="true">
<xsd:annotation>
<xsd:documentation>
An informationType is an open-ended container type that allows
mixed-content which can include elements from other XML namespaces.
This allows users to include Dublin Core metadata, XHTML tags, etc. as
desired within the <description> and similar blocks. It also
allows for open-ended extension of ChangeLogML with things such as
source-control specification, etc.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence maxOccurs="unbounded" minOccurs="0">
<xsd:any processContents="lax" />
</xsd:sequence>
<xsd:attribute name="source" type="xsd:anyURI" use="optional">
<xsd:annotation>
<xsd:documentation>
The source attribute, if present, is used to refer to any external
resource that may be related to the contents of the block-element
that has the attribute. The role or relevance of the reference is not
specified or constrained. The value of the attribute must be a URI,
but may be absolute, relative, or a reference to a fragment. The only
restriction is that it be a valid URI.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute namespace="##other" processContents="lax" />
</xsd:complexType>
<xsd:complexType id="descriptionType" name="descriptionType">
<xsd:annotation>
<xsd:documentation>
A descriptionType extends informationType to add a specific attribute,
called "lang", that specifies the (human) language the text of the
block is written in. This allows for a ChangeLog to have multiple
versions of the same <description> block in differing languages,
leaving it to processors of the document to choose which one to
display.
</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:extension base="tns:informationType">
<xsd:attribute default="en-US" name="lang" type="xsd:language">
<xsd:annotation>
<xsd:documentation>
This attribute specifies the language in which the content of
the <description> block is written. The value of the
attribute should be a language code (generally two characters,
possibly followed by an underscore and qualifying country-code
when the language is used by several countries), and the
default value is "en_US" (American English).
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType id="fileType" name="fileType">
<xsd:annotation>
<xsd:documentation>
The fileType definition is used for the <file> element, a part
of the changeType declaration. It is defined separately so that it can
be referred to from multiple places.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence maxOccurs="1" minOccurs="0">
<xsd:element name="description"
type="tns:descriptionType"
minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
The <description> block is optional, and may occur multiple
times in different languages (as with all instances of this tag).
It is used to describe the function or role of the file, and would
generally only be used the first time a file is introduced.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="source-control"
type="tns:informationType"
maxOccurs="1" minOccurs="0" nillable="true">
<xsd:annotation>
<xsd:documentation>
This block is optional, and may occur only once. If present, it is
used to introduce source-control information specific to the
current file. This can be useful if some elements of the project
are spread across different source-control systems.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="path" type="xsd:string" use="required">
<xsd:annotation>
<xsd:documentation>
This attribute provides the path-name of the file. In general, this
will be a path that is relative to the base directory of the project
itself, though there is no rule prohibiting absolute paths, or
presuming that paths are relative to some other location.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="revision" type="tns:versionString" use="optional">
<xsd:annotation>
<xsd:documentation>
An optional attribute, this indicates the revision, or version, of
the file as it is being referred to in the current context. Some
source-control systems (such as CVS) version files individually,
while others (such as Subversion) version files in groups generally
referred to as transactions.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="author" type="xsd:NMTOKEN" use="optional">
<xsd:annotation>
<xsd:documentation>
An optional attribute, this allows specification of the author of
the current revision of the file being described.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="action" default="CHANGE">
<xsd:annotation>
<xsd:documentation>
This attribute describes what the change to this file represents.
The value is restricted to one of the strings: ADD, CHANGE, DELETE,
MOVE or RESTORE. The default value is CHANGE, which simply means
the file was modified. The other labels represent the states at
which a file was added to the project, deleted from the project,
moved within the file-system, or restored from a deleted state.
</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="ADD" />
<xsd:enumeration value="CHANGE" />
<xsd:enumeration value="DELETE" />
<xsd:enumeration value="MOVE" />
<xsd:enumeration value="RESTORE" />
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:anyAttribute namespace="##other" processContents="lax" />
</xsd:complexType>
<xsd:element name="file"
type="tns:fileType"
nillable="true" id="file">
<xsd:annotation>
<xsd:documentation>
A file element describes one changed file as part of a containing
<change> or <fileset> element.
</xsd:documentation>
</xsd:annotation>
<xsd:unique name="fileDescriptionLangConstraint">
<xsd:annotation>
<xsd:documentation>
This uniqueness-constraint ensures that only one <description>
tag with a given value for the "lang" attribute occurs within the
enclosing <file>. Note that "lang" defaults to "en_US".
</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath="tns:description" />
<xsd:field xpath="@lang" />
</xsd:unique>
</xsd:element>
<xsd:complexType id="changeType" name="changeType">
<xsd:annotation>
<xsd:documentation>
The changeType declaration is used to define the structure of the
<change> blocks. Each such block describes a single change to
the project; this change may affect only one file, or it may affect
many files. What each change has in common, is that it requires the
specification of one or more affected files, as well as a description
of the change itself.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:choice minOccurs="1" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>
For specifying the files affected by the change, the document
may use one of two options: <file> or <fileset>. If
the change affects only one file, a single <file> may be
used. Otherwise, multiple files must be contained within an
enclosing <fileset>. A <fileset> containing exactly
one <file> tag should be considered functionally equivalent
to just the stand-alone <file> tag itself.
</xsd:documentation>
</xsd:annotation>
<xsd:element ref="tns:file">
<xsd:annotation>
<xsd:documentation>
When the change affects just one file, this element is used
to specify and describe that file.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="fileset" nillable="false">
<xsd:annotation>
<xsd:documentation>
A <fileset> is a container for one or more <file>
tags, though it is more efficient to use a single <file>
element if there is only one changed file. All files in the
container are considered to be part of the same change, and in
terms of source-control are regarded as having been committed
to the repository at the same time.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="source-control"
type="tns:informationType"
maxOccurs="1" minOccurs="0" nillable="true">
<xsd:annotation>
<xsd:documentation>
This block is optional, and may occur only once. If
present, it is used to introduce source-control
information specific to the fileset/change. As some
source-control systems (such as Subversion) handle groups
of changed files as a single transaction, it may be more
economical to specify source-control information at this
level rather than for each file within the child-element
<fileset> individually.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element maxOccurs="unbounded" minOccurs="1" ref="tns:file">
<xsd:annotation>
<xsd:documentation>
One or more <file> elements must be present, with
no limit on the number allowed. The structure of the
block is the same at this level as for a single,
stand-alone instance of <file>.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="revision"
type="tns:versionString"
use="optional">
<xsd:annotation>
<xsd:documentation>
A <fileset> may specify a single revision which
applies to all files in the contained <file>
elements.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute namespace="##other" processContents="lax" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
<xsd:element name="description"
type="tns:descriptionType"
minOccurs="1" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
Within the <change> block, a <description> element
represents the description of the change, in a manner similar to
the comments provided to source-control systems when files are
committed.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="author" type="xsd:NMTOKEN" use="optional">
<xsd:annotation>
<xsd:documentation>
An optional attribute, this allows specification of the author of
the current change-set being described. This is useful if the whole
of a change is credited to one committer, as opposed to specifying the
same author for every file in the <fileset> block.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="date" type="xsd:dateTime" use="optional">
<xsd:annotation>
<xsd:documentation>
The "date" attribute details when the change was submitted, committed
to version-control, etc. It uses the "dateTime" data-format as defined
by the XML Schema standard, which is the ISO 8601 format for dates and
times. Although ISO 8601 allows strings that specify only the date or
time portions, the value of this attribute must contain at least the
date, if not a full specification.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="id" type="xsd:ID">
<xsd:annotation>
<xsd:documentation>
A changeType instance may specify a unique ID by which it can
be referred to from external documents. The value of this attribute
must be unique across all "id" attributes in the document, and
must conform to the XML Schema definition of an identifier token.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute namespace="##other" processContents="lax" />
</xsd:complexType>
<xsd:element name="change"
type="tns:changeType"
nillable="false" id="change">
<xsd:annotation>
<xsd:documentation>
A change element defines one change within a release. The change itself
may cover several files, but the single description within the change
applies to all files referenced within.
</xsd:documentation>
</xsd:annotation>
<xsd:unique name="changeDescriptionLangConstraint">
<xsd:annotation>
<xsd:documentation>
This uniqueness-constraint ensures that only one <description>
tag with a given value for the "lang" attribute occurs within the
enclosing <change>. Note that "lang" defaults to "en_US".
</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath="tns:description" />
<xsd:field xpath="@lang" />
</xsd:unique>
</xsd:element>
<xsd:complexType id="releaseType" name="releaseType">
<xsd:annotation>
<xsd:documentation>
The releaseType is the primary piece of information that a ChangeLogML
file collects and organizes. A release contains an optional description
and other informational blocks, followed by one or more change
blocks. The release element is also the greatest user of attributes
besides the file element. A releaseType instance must have at least a
"version" attribute, uniquely identifying the release itself.
Additionally, it must have a "date" attribute to specify the date the
release was created.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="description"
type="tns:descriptionType"
minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>
The <description> element in a release describes the release
as a whole, acting as a summary of the release itself.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="information"
type="tns:informationType"
maxOccurs="unbounded" minOccurs="0" nillable="true">
<xsd:annotation>
<xsd:documentation>
The <information> element is a container which may be used
to provide meta-data such as Dublin Core, etc., that is more
specific to the release than any general meta-data provided in the
<changelog> element's <information> container.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="source-control"
type="tns:informationType"
maxOccurs="1" minOccurs="0" nillable="true">
<xsd:annotation>
<xsd:documentation>
The <source-control> element for a release acts as a
container for information on source-control that is specific to the
release, more specific than information contained within any
<source-control> block for the <changelog> element.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="change"
type="tns:changeType"
maxOccurs="unbounded" minOccurs="1">
<xsd:annotation>
<xsd:documentation>
The <change> element is an instance of the type,
"changeType". One or more of these blocks must be present in a
<release> block. There is no upper-limit to the number of
<change> blocks allowed.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="version" type="xsd:token" use="required">
<xsd:annotation>
<xsd:documentation>
The "version" attribute represents the version by which the release
of the project is represented. It should be unique, though it is not
treated in the same way as the "id" attribute; uniqueness is managed
as a function of the schema rather than the definition of the type of
data it can contain. It is not restricted to numerals and periods, as
file revision-numbers are.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="date" type="xsd:dateTime" use="required">
<xsd:annotation>
<xsd:documentation>
The "date" attribute details when the release was made available,
bundled, etc. It uses the "dateTime" data-format as defined by the
XML Schema standard, which is the ISO 8601 format for dates and
times. Although ISO 8601 allows strings that specify only the date or
time portions, the value of this attribute must contain at least the
date, if not a full specification.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="id" type="xsd:ID">
<xsd:annotation>
<xsd:documentation>
A releaseType instance may specify a unique ID by which it can
be referred to from external documents. The value of this attribute
must be unique across all "id" attributes in the document, and
must conform to the XML Schema definition of an identifier token.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute namespace="##other" processContents="lax" />
</xsd:complexType>
<xsd:element name="release"
type="tns:releaseType"
nillable="false" id="release">
<xsd:annotation>
<xsd:documentation>
The release element details one release within the overall change-log
itself. Because the release element has a required attribute that
provides a time-stamp, releases may appear in any order within the
change-log, since processors can sort the elements by their relative
dates.
</xsd:documentation>
</xsd:annotation>
<xsd:unique name="releaseDescriptionLangConstraint">
<xsd:annotation>
<xsd:documentation>
This uniqueness-constraint ensures that only one <description>
tag with a given value for the "lang" attribute occurs within the
enclosing <release>. Note that "lang" defaults to "en_US".
</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath="tns:description" />
<xsd:field xpath="@lang" />
</xsd:unique>
</xsd:element>
<xsd:complexType id="subprojectType" name="subprojectType" nillable="true">
<xsd:annotation>
<xsd:documentation>
The subprojectType is a way of allowing a project to express
relationship to one or more sub-projects within itself, such that the
sub-projects are able to have their own changelogs and release
schedules. An instance of subprojectType may explicitly contain
<release> blocks (that may or may not simply be replicated from
the sub-project's own ChangeLogML), or it may use a facility such as
XInclude (or m4 pre-processed, etc.) to dynamically include such blocks
from the sub-project.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="description"
type="tns:descriptionType"
maxOccurs="unbounded" minOccurs="1" nillable="false">
<xsd:annotation>
<xsd:documentation>
The <description> block for a subprojectType instance is used
to provide a summary of the sub-project, like an abstract or
overview for an article.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="information"
type="tns:informationType"
maxOccurs="unbounded" minOccurs="0" nillable="true">
<xsd:annotation>
<xsd:documentation>
The <information> block is an open-ended container that
allows content from other XML namespaces to be included, for such
things as Dublin Core Metadata, Creative Commons information, etc.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="source-control"
type="tns:informationType"
maxOccurs="1" minOccurs="0" nillable="true">
<xsd:annotation>
<xsd:documentation>
Like the previous, the <source-control> block is an
open-ended container for the inclusion of content from additional
namespaces. However, this container is intended to be specifically
used for information on the source-control system employed by the
project.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element maxOccurs="unbounded" minOccurs="0" ref="tns:release">
<xsd:annotation>
<xsd:documentation>
Lastly, the subprojectType instance will contain zero or more
<release> blocks. Ideally these will occur in order, either
ascending or descending, of the dates of the given releases. This
is optional, since any processor will be capable of sorting the
blocks on their "date" attributes.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:ID" use="optional">
<xsd:annotation>
<xsd:documentation>
A subprojectType instance may specify a unique ID by which it can
be referred to from external documents. The value of this attribute
must be unique across all "id" attributes in the document, and
must conform to the XML Schema definition of an identifier token.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="name" type="xsd:NMTOKEN" use="required">
<xsd:annotation>
<xsd:documentation>
An required attribute, this specifies the name of the sub-project.
A schema-level constraint is used to ensure that names are unique
between instances of subprojectType.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:element name="subproject"
type="tns:subprojectType"
nillable="true" id="subproject">
<xsd:annotation>
<xsd:documentation>
The subproject element sets up a child-project that is considered part
of the main project, but which may release on its own, separate
schedule. The parent project may replicate the child's release history
into its own ChangeLogML file, or it may use XInclude elements to import
it.
</xsd:documentation>
</xsd:annotation>
<xsd:unique name="subprojectDescriptionLangConstraint">
<xsd:annotation>
<xsd:documentation>
This uniqueness-constraint ensures that only one <description>
tag with a given value for the "lang" attribute occurs within the
enclosing <subproject>. Note that "lang" defaults to "en_US".
</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath="tns:description" />
<xsd:field xpath="@lang" />
</xsd:unique>
</xsd:element>
<xsd:complexType id="changelogType" name="changelogType" nillable="false">
<xsd:annotation>
<xsd:documentation>
An instance of changelogType will generally be the root-level element
in a ChangeLogML document. It contains the project-level information
such as name, summary, etc. as well as acting as a container for the
<release> blocks that actually iterate the project's change
history.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="project"
type="xsd:string"
maxOccurs="1" minOccurs="1" nillable="false">
<xsd:annotation>
<xsd:documentation>
This is the name of the project that this changelog covers.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="title"
type="xsd:string"
maxOccurs="1" minOccurs="0" nillable="false">
<xsd:annotation>
<xsd:documentation>
This is the title for the project, a sort of longer "name" that can
be used for web pages, etc.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="description"
type="tns:descriptionType"
maxOccurs="unbounded" minOccurs="1" nillable="false">
<xsd:annotation>
<xsd:documentation>
The <description> block for a changelogType instance is used
to provide a summary of the project, like an abstract or overview
for an article.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="information"
type="tns:informationType"
maxOccurs="unbounded" minOccurs="0" nillable="true">
<xsd:annotation>
<xsd:documentation>
The <information> block is an open-ended container that
allows content from other XML namespaces to be included, for such
things as Dublin Core Metadata, Creative Commons information, etc.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="source-control"
type="tns:informationType"
maxOccurs="1" minOccurs="0" nillable="true">
<xsd:annotation>
<xsd:documentation>
Like the previous, the <source-control> block is an
open-ended container for the inclusion of content from additional
namespaces. However, this container is intended to be specifically
used for information on the source-control system employed by the
project.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element maxOccurs="unbounded" minOccurs="0" ref="tns:release">
<xsd:annotation>
<xsd:documentation>
The changelogType instance will contain zero or more <release>
blocks. Ideally these will occur in order, either ascending or
descending, of the dates of the given releases. This is optional,
since any processor will be capable of sorting the blocks on their
"date" attributes.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element maxOccurs="unbounded" minOccurs="0" ref="tns:subproject">
<xsd:annotation>
<xsd:documentation>
Lastly, the changelogType instance may contain zero or more
<subproject> blocks. These blocks provide information on
sub-projects of the main project, and are distinguished by a unique
"name" attribute on each block. These elements may be null, since
there is no requirement that a sub-project have any releases before
the parent project does.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:ID">
<xsd:annotation>
<xsd:documentation>
A changelogType instance may specify a unique ID by which it can
be referred to from external documents. The value of this attribute
must be unique across all "id" attributes in the document, and
must conform to the XML Schema definition of an identifier token.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:element name="changelog"
type="tns:changelogType"
nillable="false" id="changelog">
<xsd:annotation>
<xsd:documentation>
The changelog element is intended as the document root element. It
contains descriptive elements (<description>,
<source-control>, etc.) and one or more release blocks.
</xsd:documentation>
</xsd:annotation>
<xsd:unique name="changelogDescriptionLangConstraint">
<xsd:annotation>
<xsd:documentation>
This uniqueness-constraint ensures that only one <description>
tag with a given value for the "lang" attribute occurs within the
enclosing <changelog>. Note that "lang" defaults to "en_US".
</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath="tns:description" />
<xsd:field xpath="@lang" />
</xsd:unique>
<xsd:key name="releaseVersionConstraint">
<xsd:annotation>
<xsd:documentation>
This key-constraint ensures that each <release> block has a
distinct and unique "version" attribute.
</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath="tns:release" />
<xsd:field xpath="@version" />
</xsd:key>
<xsd:key name="subprojectNameConstraint">
<xsd:annotation>
<xsd:documentation>
This key-constraint ensures that each <subproject> block has a
distinct and unique "name" attribute.
</xsd:documentation>
</xsd:annotation>
<xsd:selector xpath="tns:subproject" />
<xsd:field xpath="@name" />
</xsd:key>
</xsd:element>
</xsd:schema>
|