<?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:WebEdit</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>WebEdit</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>02iepd</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:WebEdit</wr:refID>
<wr:refIDPrefix/>
<wr:userName>anonymous</wr:userName>
<wr:collection>CollectionWikiPages</wr:collection>
<wr:relativePath>2006/04/13/16</wr:relativePath>
<wr:fullRefID>inf_3asid_2flocalhost_3aCollectionWikiPages_3aWebEdit_5f20060413162745364</wr:fullRefID>
<wr:mimeType>text/xml</wr:mimeType>
<wr:sort>CollectionWikiPages:WebEdit</wr:sort>
<wr:dateCreated>2005-05-28</wr:dateCreated>
<wr:datestamp>2006-04-13</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:WebEdit"</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>2006-04-13</datestamp>
<!--
This is the URL for the content
-->
<contentURL>http://alcme.oclc.org:80/wikid/docs/WikiRepository/2006/04/13/16/inf_3asid_2flocalhost_3aCollectionWikiPages_3aWebEdit_5f20060413162745364</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>WebEdit is a lightweight service that transforms HTML form submittals into XML and forwards them to a configured service for further processing (e.g. SRW Update or sendmail).

WebEdit works by constructing a simple linear XML document from the HTML form submittal where the XML element names match the HTML field names (omitting the numeric prefixes) and the XML element values match the HTML field values. WebEdit then selects an XSL stylesheet based on the target XML schemaURI (e.g. http://alcme.oclc.org/wikid/docs/xsl/webedit/webEdit2oai_dc.xsl'''''') and uses it to transform the constructed linear XML record into the native record format (e.g. MARC or METS) based on its recognition of the HTML field=XML element name relationship. This is the progression:

'''Submitted HTML form key/value pairs'''
 001.title=Hamlet&amp;002.creator=Shakespeare
'''Linear XML representation'''
 &lt;webedit&gt;
  &lt;title&gt;Hamlet&lt;/title&gt;
  &lt;creator&gt;Shakespeare&lt;/creator&gt;
 &lt;/webedit&gt;
'''Target XML record (the native record)'''
 &lt;oai_dc:dc ...&gt;
  &lt;dc:title&gt;Hamlet&lt;/dc:title&gt;
  &lt;dc:creator&gt;Shakespeare&lt;/dc:creator&gt;
 &lt;/oai_dc&gt;

Generally speaking, WebEdit supports multiple databases via a key encoded in the request's pathInfo. This key maps to the XSL stylesheet and target service that are to be applied.</raw>
</record>
</record>
</content>
<displayContent>
<html xmlns="http://www.w3.org/1999/xhtml">
<body><a href="WebEdit">WebEdit</a> is a lightweight service that transforms HTML form submittals into XML and forwards them to a configured service for further processing (e.g. SRW Update or sendmail).<p></p>
<a href="WebEdit">WebEdit</a> works by constructing a simple linear XML document from the HTML form submittal where the XML element names match the HTML field names (omitting the numeric prefixes) and the XML element values match the HTML field values. <a href="WebEdit">WebEdit</a> then selects an XSL stylesheet based on the target XML schemaURI (e.g. <a href="http://alcme.oclc.org/wikid/docs/xsl/webedit/webEdit2oai_dc.xsl">http://alcme.oclc.org/wikid/docs/xsl/webedit/webEdit2oai_dc.xsl</a>) and uses it to transform the constructed linear XML record into the native record format (e.g. MARC or METS) based on its recognition of the HTML field=XML element name relationship. This is the progression:<p></p>
<strong>Submitted HTML form key/value pairs</strong>
<pre>
 001.title=Hamlet&amp;002.creator=Shakespeare</pre>

<strong>Linear XML representation</strong>
<pre>
 &lt;webedit&gt;
  &lt;title&gt;Hamlet&lt;/title&gt;
  &lt;creator&gt;Shakespeare&lt;/creator&gt;
 &lt;/webedit&gt;</pre>

<strong>Target XML record (the native record)</strong>
<pre>
 &lt;oai_dc:dc ...&gt;
  &lt;dc:title&gt;Hamlet&lt;/dc:title&gt;
  &lt;dc:creator&gt;Shakespeare&lt;/dc:creator&gt;
 &lt;/oai_dc&gt;</pre>
<p></p>
Generally speaking, <a href="WebEdit">WebEdit</a> supports multiple databases via a key encoded in the request's pathInfo. This key maps to the XSL stylesheet and target service that are to be applied.</body>
</html>
</displayContent>
</resource>
