attributes block
authorLuc Moreau <l.moreau@ecs.soton.ac.uk>
Mon, 20 Feb 2012 23:14:41 +0000
changeset 1621 12ca0ec89610
parent 1620 140b9618298f
child 1622 65df2ba89c46
attributes block
model/working-copy/Makefile
model/working-copy/glossary.html
model/working-copy/glossary.js
model/working-copy/towards-wd4.html
--- a/model/working-copy/Makefile	Mon Feb 20 22:53:29 2012 +0000
+++ b/model/working-copy/Makefile	Mon Feb 20 23:14:41 2012 +0000
@@ -19,3 +19,20 @@
 	@echo "//Insert glossary definitions with the following "  >> glossary.js
 	@echo "// <div class=\"glossary-ref\" ref=\"glossary-generation\"></div>"  >> glossary.js
 
+
+# uses html2xhtml
+# http://www.it.uc3m.es/jaf/html2xhtml/downloads/html2xhtml-1.1.2-2.tar.gz
+
+
+xsl:
+	html2xhtml -t 1.1 towards-wd4.html -o towards-wd4.xhtml
+	grep -v mdash towards-wd4.xhtml | grep -v "/html" > towards-wd4-2.xhtml
+#	xsltproc transform-examples.xsl towards-wd4-2.xhtml
+	csplit -f out towards-wd4-2.xhtml /body/
+	echo "<html>" > all-divs.html
+	xpath out01 .//div[@class] >> all-divs.html
+	echo "</html>" >> all-divs.html
+
+
+//	xpath towards-wd4.xhtml //div[@class='anexample']
+
--- a/model/working-copy/glossary.html	Mon Feb 20 22:53:29 2012 +0000
+++ b/model/working-copy/glossary.html	Mon Feb 20 23:14:41 2012 +0000
@@ -28,8 +28,7 @@
 </span>
 
 <span class="glossary" id="glossary-derivation">  
-<dfn id="concept-derivation">Derivation</dfn> is the fact that some entity is transformed from, created from, or affected by another entity in the world.  
-</span>
+<dfn id="concept-derivation">Derivation</dfn>  is something by which some entity is transformed from, created from, or affected by another entity in the world.</span>
 
 <span class="glossary" id="glossary-plan">  
 A <dfn id="concept-plan">plan</dfn> is an entity that represent a set of
--- a/model/working-copy/glossary.js	Mon Feb 20 22:53:29 2012 +0000
+++ b/model/working-copy/glossary.js	Mon Feb 20 23:14:41 2012 +0000
@@ -3,7 +3,7 @@
 //  with <script src="glossary.js" class="remove"></script>
 //Insert glossary definitions with the following 
 // <div class="glossary-ref" ref="glossary-generation"></div>
-glossary_hg='http://dvcs.w3.org/hg/prov/file/5b68cdbc1071/model/working-copy/glossary.html';
+glossary_hg='http://dvcs.w3.org/hg/prov/file/7e2a18f9d5d6/model/working-copy/glossary.html';
 glossary_string= 
 ' ' + 
 '<html> ' + 
@@ -35,8 +35,7 @@
 '</span> ' + 
 ' ' + 
 '<span class="glossary" id="glossary-derivation">   ' + 
-'<dfn id="concept-derivation">Derivation</dfn> is the fact that some entity is transformed from, created from, or affected by another entity in the world.   ' + 
-'</span> ' + 
+'<dfn id="concept-derivation">Derivation</dfn>  is something by which some entity is transformed from, created from, or affected by another entity in the world.</span> ' + 
 ' ' + 
 '<span class="glossary" id="glossary-plan">   ' + 
 'A <dfn id="concept-plan">plan</dfn> is an entity that represent a set of ' + 
--- a/model/working-copy/towards-wd4.html	Mon Feb 20 22:53:29 2012 +0000
+++ b/model/working-copy/towards-wd4.html	Mon Feb 20 23:14:41 2012 +0000
@@ -207,7 +207,7 @@
 <li> introduce concepts minimally, just to be able to express 'scruffy provenance' 
 <li> present the data model
 <li>present the upgrade path
-<li>contemplating the organization of the deliverable in two/three separate documents.
+<li>contemplating the organization of the deliverable in two/three separate documents.</li>
 </ul>
 </div>
 
@@ -782,7 +782,7 @@
 <h3>Element</h3>
 
 
-   <section id="term-Entity"> 
+   <section id="term-Entty"> 
       
 <h4>Entity</h4>
 
@@ -790,11 +790,11 @@
 <div class="glossary-ref" ref="glossary-entity" withspan='true'></div>
 
 
-<p>An entity<span class="withAsn">, written <span class="name">entity(id, [ attr1=val1, ...])</span> in PROV-ASN, </span> contains:</p>
+<p><div class="attributes-entity">An entity<span class="withAsn">, written <span class="name">entity(id, [ attr1=val1, ...])</span> in PROV-ASN, </span> contains:</p>
 <ul>
 <li><em>id</em>: an identifier identifying an entity; </li>
 <li><em>attributes</em>: an OPTIONAL set of attribute-value pairs representing this entity's situation in the world.</li>
-</ul>
+</ul></div>
 
 <div class="anexample">
 <p>
@@ -842,13 +842,13 @@
 
 <div class="glossary-ref" ref="glossary-activity" withspan='true'></div>
 
-<p> An activity<span class="withAsn">, written <span class="name">activity(id, st, et, [ attr1=val1, ...])</span> in PROV-ASN,</span> contains:</p>
+<p><div class="attributes-activity"> An activity<span class="withAsn">, written <span class="name">activity(id, st, et, [ attr1=val1, ...])</span> in PROV-ASN,</span> contains:</p>
 <ul>
 <li><em>id</em>: an identifier identifying an activity;</li>
 <li><em>startTime</em>: an OPTIONAL time for the start of the activity;</li>
 <li><em>endTime</em>: an OPTIONAL time for the end of the activity;</li>
 <li><em>attributes</em>:  an OPTIONAL set of attribute-value pairs for this activity.</li>
-</ul>
+</ul></div>
 
 <div class="anexample">
 <p>
@@ -1003,7 +1003,8 @@
 
 <div class="glossary-ref" ref="glossary-generation" withspan='true'></div>
 
-<p><dfn title="dfn-Generation">Generation</dfn><span class="withAsn">, written <span class="name">wasGeneratedBy(id,e,a,t,attrs)</span> in PROV-ASN,</span> has the following components:</p>
+<p>
+<div class="attributes-generation"><dfn title="dfn-Generation">Generation</dfn><span class="withAsn">, written <span class="name">wasGeneratedBy(id,e,a,t,attrs)</span> in PROV-ASN,</span> has the following components:</p>
 <ul>
 <li><em>id</em>:  an OPTIONAL identifier identifying a generation;</li> 
 <li><em>entity</em>:  an identifier identifying a created entity; </li>
@@ -1012,7 +1013,7 @@
 <li><em>time</em>: an OPTIONAL "generation time", the time at which the entity was completely created;</li>
 
 <li><em>attributes</em>:  an OPTIONAL set of attribute-value pairs that describes the modalities of generation of this entity by this activity.</li>
-</ul>
+</ul></div>
 <p>While each of the components <em>activity</em>, <em>time</em>, and  <em>attributes</em> is OPTIONAL, at least one of them MUST be present.</p>
 
 
@@ -1053,14 +1054,14 @@
 <div class="glossary-ref" ref="glossary-usage" withspan='true'></div>
 
 
-<p><dfn title="dfn-Usage">Usage</dfn><span class="withAsn">, written <span class="name">used(id,a,e,t,attrs)</span> in PROV-ASN,</span> has the following constituents:</p>
+<p><div class="attributes-generation"><dfn title="dfn-Usage">Usage</dfn><span class="withAsn">, written <span class="name">used(id,a,e,t,attrs)</span> in PROV-ASN,</span> has the following constituents:</p>
 <ul>
 <li><em>id</em>:  an OPTIONAL identifier identifying a usage;</li> 
 <li><em>activity</em>: an identifier for the consuming activity;</li>
 <li><em>entity</em>: an identifier for the consumed entity;</li>
 <li><em>time</em>: an OPTIONAL "usage time", the time at which the entity started to be used;</li>
 <li><em>attributes</em>: an OPTIONAL set of attribute-value pairs that describe the modalities of usage of this entity by this activity.</li>
-</ul>
+</ul></div>
 
 <p>
 A reference to a given entity MAY appear in multiple usages that share