Talk:Technical tools

From cbwiki.net
Jump to: navigation, search

Schemas

Paul Asman-FRBNY 13:49, 14 June 2007 (BST) We have schemas for releases beginning with 1.1. The structure of 1.0 made it difficult to provide meaningful schemas, and the need for schemas was the major motivation for the 1.1 release. With the weak hierarchy of 1.0, we could not provide different validations for different applications. 1.1 solves this, and so we provide schemas beginning with this release.

Schema support for dcterms elements?

San 17:57, 11 April 2008 (BST)I know we say that DC and DCterms elements don't have to be declared in the spec but when I try to include dcterms:bibliographicCitation at the end of my <item>, I can't get the feed to validate against the schema. Is this a "pick a different validation engine" issue or are these items not addressed in the schema itself?

Mike Eltsufin-FRBNY 19:03, 11 April 2008 (BST)The schema specifies that DC/DCterms elements should be included before the application elements (cb:event/cb:news/cb:paper...). The spec doesn't make that clear, but that's how it's implemented. I just tried putting dcterms:bibliographicCitation after dc:date and before cb:statistics and it worked. Here's the relevant snippet from the schema.

	<xs:element name="item">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="title" type="TextType"/>
				<xs:element name="link" type="xs:anyURI"/>
				<xs:element name="description" type="TextType"/>
				<xs:element ref="dc:date"/>
				<xs:group ref="dcterms:elementsAndRefinementsGroup"/>
				<xs:choice>
					<xs:element ref="cb:event"/>
					<xs:element ref="cb:news"/>
					<xs:element ref="cb:paper"/>
					<xs:element ref="cb:speech"/>
					<xs:element ref="cb:statistics"/>
				</xs:choice>
				<xs:element ref="cb:custom" minOccurs="0"/>
			</xs:sequence>
			<xs:attribute ref="rdf:about" use="required"/>
			<xs:attribute ref="xml:lang" use="optional"/>
		</xs:complexType>
	</xs:element>

Steven Bagshaw-BIS 08:18, 14 April 2008 (BST): Actually, the spec does make it "clear", although the spec is very long and this info is right at the end of it, so it's easy to miss...

http://cbwiki.net/wiki/index.php/Specification_1.1#Dublin_Core_and.2For_custom_namespace_elements

"If desired, add Dublin Core and/or custom namespace metadata before the cb element and after the <title>, <link> and <description>."

It's also mentioned on the technical tools page itself - http://cbwiki.net/wiki/index.php/Technical_tools#Element_order_is_important.21

All examples on the wiki should conform to this too.