<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="/wikid/docs/xsl/mwCollections/CollectionWikiPages/display.xsl" type="text/xsl"?>

<!--
This resource container holds the product of the resolution request
-->
<resource xmlns:config="info:sid/localhost:CollectionSimpleSchemas:config" xmlns:explain="http://explain.z3950.org/dtd/2.0/" xmlns:srw="http://www.loc.gov/zing/srw/" xmlns:wiki="info:sid/localhost:CollectionSimpleSchemas:wiki" xmlns:wr="http://errol.oclc.org/oai:xmlregistry.oclc.org:errol/WikiRepository" xmlns:xlink="http://www.w3.org/TR/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!--
This is an echo of the request information this stylesheet used to produce the resolution product
-->
<uri-context>
<srwIdentifier>info:sid/localhost:CollectionWikiPages:DemoInstructions</srwIdentifier>
<collectionURI>info:sid/localhost:CollectionWikiPages</collectionURI>
<repository-identifier>CollectionWikiPages</repository-identifier>
<srwURL>http://alcme.oclc.org:80/wikid/search/WikiDb.localhost</srwURL>
<local-identifier>DemoInstructions</local-identifier>
<action>display</action>
</uri-context>
<!--
This is the collection configuration record
-->
<record xmlns="info:sid/localhost:CollectionSimpleSchemas:config" xsi:schemaLocation="info:sid/localhost:CollectionSimpleSchemas:config http://alcme.oclc.org/metawiki/raw/info:sid/localhost:CollectionSimpleSchemas:config.xsd">
<repositoryName>Wiki Pages</repositoryName>
<localIdentifierType>userAssigned</localIdentifierType>
<adminEmail>mailto:jyoung@oclc.org</adminEmail>
<defaultXSL>no</defaultXSL>
<schemaURI recordPrefix="wiki">info:sid/localhost:CollectionSimpleSchemas:wiki</schemaURI>
<crosswalkSchemaURI recordPrefix="xhtml">info:sid/localhost:CollectionExternalSchemas:xhtml</crosswalkSchemaURI>
<defaultSchemaURI>info:sid/localhost:CollectionExternalSchemas:xhtml</defaultSchemaURI>
</record>
<!--
There is a local-identifier, so this URI must identify an item in a collection
-->
<!--
This is the searchRetrieveResponse for the item's Deposit record
-->
<content>
<searchRetrieveResponse xmlns="http://www.loc.gov/zing/srw/">
<version>1.1</version>
<numberOfRecords>1</numberOfRecords>
<resultSetId>07eutu</resultSetId>
<resultSetIdleTime>300</resultSetIdleTime>
<records xmlns:ns1="http://www.loc.gov/zing/srw/">
<record>
<recordSchema>http://www.oclc.org/schemas/WikiRepository</recordSchema>
<recordPacking>xml</recordPacking>
<recordData>
<wr:Deposit xmlns="http://www.w3.org/TR/xhtml1/strict">
<wr:browserPath>http://alcme.oclc.org:80/wikid/docs/WikiRepository</wr:browserPath>
<wr:refID>info:sid/localhost:CollectionWikiPages:DemoInstructions</wr:refID>
<wr:refIDPrefix/>
<wr:userName>SomeBody</wr:userName>
<wr:collection>CollectionWikiPages</wr:collection>
<wr:relativePath>2005/07/18/15</wr:relativePath>
<wr:fullRefID>inf_3asid_2flocalhost_3aCollectionWikiPages_3aDemoInstructions_5f20050718152103217</wr:fullRefID>
<wr:mimeType>text/xml</wr:mimeType>
<wr:sort>CollectionWikiPages:DemoInstructions</wr:sort>
<wr:dateCreated>2005-07-18</wr:dateCreated>
<wr:datestamp>2005-07-18</wr:datestamp>
<wr:oldDate/>
</wr:Deposit>
</recordData>
<recordPosition>1</recordPosition>
</record>
</records>
<echoedSearchRetrieveRequest xmlns:ns2="http://www.loc.gov/zing/srw/">
<version>1.1</version>
<query>repos.hasDate = "hasdate" and oai.identifier exact "info:sid/localhost:CollectionWikiPages:DemoInstructions"</query>
<xQuery>
<ns3:searchClause xmlns:ns3="http://www.loc.gov/zing/cql/xcql/">
<ns3:index>cql.any</ns3:index>
<ns3:relation>
<ns3:value>=</ns3:value>
</ns3:relation>
<ns3:term>huh?</ns3:term>
</ns3:searchClause>
</xQuery>
<startRecord>1</startRecord>
<maximumRecords>1</maximumRecords>
<recordPacking>xml</recordPacking>
<recordSchema>default</recordSchema>
</echoedSearchRetrieveRequest>
</searchRetrieveResponse>
<!--
This is the datestamp for the Deposit
-->
<datestamp>2005-07-18</datestamp>
<!--
This is the URL for the content
-->
<contentURL>http://alcme.oclc.org:80/wikid/docs/WikiRepository/2005/07/18/15/inf_3asid_2flocalhost_3aCollectionWikiPages_3aDemoInstructions_5f20050718152103217</contentURL>
<!--
Here is the record content
-->
<record>
<record xmlns="info:sid/localhost:CollectionSimpleSchemas:wiki" xsi:schemaLocation="info:sid/localhost:CollectionSimpleSchemas:wiki http://alcme.oclc.org:80/wikid/raw/info:sid/localhost:CollectionSimpleSchemas:wiki.xsd">
<raw>Print these instructions and follow along to see how to create a new WikiCollection:

* On an existing WikiPage (preferably WikiDSandbox if you are testing), create a WikiName that starts with the word "Collection". Save the page.
* If the WikiName you added is hotlinked, the collection already exists. If it doesn't exist, it will display a hotlinked question mark in front of the name. Click on the question mark to create the collection.
* Before you get carried away filling out fields, examine the "Native Record Schema" selection list. This represents the XML Schema that will be used to store the items in your collection. For demonstration purposes, let's assume that none of them suit the needs of your new collection, so click "Add new" to create a new XML Schema.
* Read the page describing the differences between SimpleSchemas and ExternalSchemas. For demonstration purposes, click on "CollectionSimpleSchemas".
* This screen is a list of existing SimpleSchemas. We want to create a new SimpleSchema, so enter an identifier for it in the "New item identifier" field and click the "Create Item" button. The item identifier will be used as a shorthand for the XML Schema (ala OAI's metadataPrefix) so pick something concise.
* If this identifier doesn't exist yet, you will see an HTML form for you to create your metadata elements. Give your new schema a title and a handful of element names (e.g. "title", "creator" , "date", etc.). Ignore the attribute names and the selection boxes for now. Save the record.
* What you see now is a summary of your new schema. Note that what actually gets stored in the database is an XML Schema that was generated from the data you entered.
* Return, now, to the WikiPage where you created your WikiCollectionName and click on the question mark again.
* Pull down the "Native Record Schema" selection list and choose the title for the schema you just created.
* Fill out the "Collection Name" field and click the "Create" button to create the collection. The resulting display is a summary of the configuration record for your collection.
* Now that the collection is created, go back to the WikiPage that contains your WikiCollectionName and you will see that it is now hotlinked. Click on it.
* Now you are looking at the CollectionHomePage, which at this point indicates there are no records in the collection. To create a record, enter an new record identifier in the "New item identifier" field and click "Create Item".
* You now see an HTML form ready to accept data according to the XML Schema you created and configured for this collection. Enter some data and click "Create". The result is a record-leve display.
* Click on you collection name in the header go go back to your CollectionHomePage where you will see this item listed in a brief results list.
* Thus endeth the story.</raw>
</record>
</record>
</content>
<displayContent>
<html xmlns="http://www.w3.org/1999/xhtml">
<body>Print these instructions and follow along to see how to create a new <a href="WikiCollection">WikiCollection</a>:<p></p>
<ul>
<li> On an existing <a href="WikiPage">WikiPage</a> (preferably <a href="WikiDSandbox">WikiDSandbox</a> if you are testing), create a <a href="WikiName">WikiName</a> that starts with the word &quot;Collection&quot;. Save the page.</li>
<li> If the <a href="WikiName">WikiName</a> you added is hotlinked, the collection already exists. If it doesn't exist, it will display a hotlinked question mark in front of the name. Click on the question mark to create the collection.</li>
<li> Before you get carried away filling out fields, examine the &quot;Native Record Schema&quot; selection list. This represents the XML Schema that will be used to store the items in your collection. For demonstration purposes, let's assume that none of them suit the needs of your new collection, so click &quot;Add new&quot; to create a new XML Schema.</li>
<li> Read the page describing the differences between <a href="SimpleSchemas">SimpleSchemas</a> and <a href="ExternalSchemas">ExternalSchemas</a>. For demonstration purposes, click on &quot;<a href="./CollectionSimpleSchemas">CollectionSimpleSchemas</a>&quot;.</li>
<li> This screen is a list of existing <a href="SimpleSchemas">SimpleSchemas</a>. We want to create a new <a href="SimpleSchema">SimpleSchema</a>, so enter an identifier for it in the &quot;New item identifier&quot; field and click the &quot;Create Item&quot; button. The item identifier will be used as a shorthand for the XML Schema (ala OAI's metadataPrefix) so pick something concise.</li>
<li> If this identifier doesn't exist yet, you will see an HTML form for you to create your metadata elements. Give your new schema a title and a handful of element names (e.g. &quot;title&quot;, &quot;creator&quot; , &quot;date&quot;, etc.). Ignore the attribute names and the selection boxes for now. Save the record.</li>
<li> What you see now is a summary of your new schema. Note that what actually gets stored in the database is an XML Schema that was generated from the data you entered.</li>
<li> Return, now, to the <a href="WikiPage">WikiPage</a> where you created your <a href="WikiCollectionName">WikiCollectionName</a> and click on the question mark again.</li>
<li> Pull down the &quot;Native Record Schema&quot; selection list and choose the title for the schema you just created.</li>
<li> Fill out the &quot;Collection Name&quot; field and click the &quot;Create&quot; button to create the collection. The resulting display is a summary of the configuration record for your collection.</li>
<li> Now that the collection is created, go back to the <a href="WikiPage">WikiPage</a> that contains your <a href="WikiCollectionName">WikiCollectionName</a> and you will see that it is now hotlinked. Click on it.</li>
<li> Now you are looking at the <a title="Click here to create the collection" href="/wikid/info:sid/localhost:CollectionCollection:CollectionHomePage">?</a>CollectionHomePage, which at this point indicates there are no records in the collection. To create a record, enter an new record identifier in the &quot;New item identifier&quot; field and click &quot;Create Item&quot;.</li>
<li> You now see an HTML form ready to accept data according to the XML Schema you created and configured for this collection. Enter some data and click &quot;Create&quot;. The result is a record-leve display.</li>
<li> Click on you collection name in the header go go back to your <a title="Click here to create the collection" href="/wikid/info:sid/localhost:CollectionCollection:CollectionHomePage">?</a>CollectionHomePage where you will see this item listed in a brief results list.</li>
<li> Thus endeth the story.</li>
</ul>
</body>
</html>
</displayContent>
</resource>
