html5/markup/tools generate-spec-source.xsl,1.262,1.263

Update of /sources/public/html5/markup/tools
In directory hutz:/tmp/cvs-serv7415/tools

Modified Files:
	generate-spec-source.xsl 
Log Message:
re-word contents of "Linked-data semantics" sections to make context more clear (bug 10083)


Index: generate-spec-source.xsl
===================================================================
RCS file: /sources/public/html5/markup/tools/generate-spec-source.xsl,v
retrieving revision 1.262
retrieving revision 1.263
diff -u -d -r1.262 -r1.263
--- generate-spec-source.xsl	9 Jul 2010 01:22:28 -0000	1.262
+++ generate-spec-source.xsl	12 Jul 2010 14:16:43 -0000	1.263
@@ -1699,11 +1699,84 @@
   <!-- * ***************************************************************** -->
   <xsl:template name="make.linked-data.section">
     <xsl:param name="name"/>
-    <xsl:if test="document(concat('../elements/',$name,'.html'))//h:div[@id='linked-data']">
+    <xsl:if test="
+      ($name='a'
+      or $name='area'
+      or $name='audio'
+      or $name='embed'
+      or $name='iframe'
+      or $name='img'
+      or $name='link'
+      or $name='object'
+      or $name='source'
+      or $name='video')
+      or
+      document(concat('../elements/',$name,'.html'))//h:div[@id='linked-data']">
       <div class="no-number no-toc linked-data" id="{$name}-linked-data">
         <xsl:text>&#10;        </xsl:text>
         <h2 class="element-subhead">Linked-data semantics</h2>
-        <xsl:copy-of select="document(concat('../elements/',$name,'.html'))//h:div[@id='linked-data']"/>
+        <xsl:choose>
+          <xsl:when test="
+            $name='a'
+            or $name='area'
+            or $name='audio'
+            or $name='embed'
+            or $name='iframe'
+            or $name='img'
+            or $name='link'
+            or $name='object'
+            or $name='source'
+            or $name='video'
+            ">
+            <xsl:variable name="attr">
+              <xsl:choose>
+                <xsl:when test="
+                  $name='audio'
+                  or $name='embed'
+                  or $name='iframe'
+                  or $name='img'
+                  or $name='source'
+                  or $name='video'
+                  ">src</xsl:when>
+                <xsl:when test="
+                  $name='a'
+                  or $name='area'
+                  or $name='link'
+                  ">href</xsl:when>
+                <xsl:when test="$name='object' ">data</xsl:when>
+              </xsl:choose>
+            </xsl:variable>
+            <p>The
+              <a href="#{$name}" class="element">
+                <xsl:value-of select="$name"/>
+              </a>
+              element, through its
+              <a href="#{$name}.attrs.{$attr}" class="attribute">
+                <xsl:value-of select="$attr"/>
+              </a>
+              attribute in combination with other
+              linked-data/metadata markup mechanisms, provides a
+              ready means for expressing semantic associations
+              with external content.</p>
+            <p>For example, in the Microdata metadata-markup
+              mechanism, specifying one or more named properties
+              using the Microdata
+              <span class="attribute">itemprop</span>
+              attribute on the
+              <a href="#{$name}" class="element">
+                <xsl:value-of select="$name"/>
+              </a>
+              element associates those named properties with the
+              external content represented by the value of the
+              <a href="#{$name}.attrs.{$attr}" class="attribute">
+                <xsl:value-of select="$attr"/>
+              </a>
+              attribute (if any).</p>
+          </xsl:when>
+          <xsl:when test="document(concat('../elements/',$name,'.html'))//h:div[@id='linked-data']">
+            <xsl:copy-of select="document(concat('../elements/',$name,'.html'))//h:div[@id='linked-data']/node()"/>
+          </xsl:when>
+        </xsl:choose>
       </div>
     </xsl:if>
   </xsl:template>

Received on Monday, 12 July 2010 14:16:48 UTC