<xsl:with-param name="class" select="$class"/>
<xsl:with-param name="inherit" select="$inherit"/>
</xsl:apply-templates>
+ <xsl:if test="$copy.rdfa.attributes != 0">
+ <!-- copy through any RDFA attributes -->
+ <xsl:apply-templates select="." mode="rdfa.html.attributes"/>
+ </xsl:if>
</xsl:template>
<xsl:template match="*" mode="common.html.attributes">
<xsl:call-template name="its.attributes"/>
</xsl:template>
+<xsl:template match="*" mode="rdfa.html.attributes">
+ <xsl:copy-of select="@vocab"/>
+ <xsl:copy-of select="@typeof"/>
+ <xsl:copy-of select="@property"/>
+ <xsl:copy-of select="@resource"/>
+ <xsl:copy-of select="@prefix"/>
+</xsl:template>
+
<!-- Pass through any lang attributes -->
<xsl:template name="generate.html.lang">
<xsl:apply-templates select="." mode="html.lang.attribute"/>
&generate.revhistory.link;
&html.head.legalnotice.link.types;
&html.head.legalnotice.link.multiple;
+©.rdfa.attributes;
</reference>
<reference xml:id="refentry"><title>Reference Pages</title>
&funcsynopsis.decoration;
<src:fragref linkend="collect.xref.targets.frag"/>
<src:fragref linkend="component.label.includes.part.label.frag"/>
<src:fragref linkend="contrib.inline.enabled.frag"/>
+<src:fragref linkend="copy.rdfa.attributes.frag"/>
<src:fragref linkend="css.decoration.frag"/>
<src:fragref linkend="current.docid.frag"/>
<src:fragref linkend="custom.css.source.frag"/>
--- /dev/null
+<refentry xmlns="http://docbook.org/ns/docbook"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+ xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="5.0" xml:id="copy.rdfa.attributes">
+<refmeta>
+<refentrytitle>copy.rdfa.attributes</refentrytitle>
+<refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>copy.rdfa.attributes</refname>
+<refpurpose>Copy RDFA attributes to HTML output</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment xml:id="copy.rdfa.attributes.frag">
+<xsl:param name="copy.rdfa.attributes" select="1"/>
+</src:fragment>
+</refsynopsisdiv>
+
+<refsection><info><title>Description</title></info>
+
+<para>RDFa (or Resource Description Framework in Attributes) is a
+W3C Recommendation that adds a set of attribute-level extensions
+to HTML, XHTML and various XML-based document types for
+embedding rich metadata within Web documents. RDFa Lite is a
+core subset of attributes also defined as a W3C Recommendation.</para>
+
+<para>DocBook 5.1 added support for the RDFa Lite attributes to
+the DocBook schema. Those attributes are <tag>vocab</tag>,
+<tag>typeof</tag>, <tag>property</tag>, <tag>resource</tag>,
+<tag>prefix</tag>.</para>
+
+<para>If the parameter <parameter>copy.rdfa.attributes</parameter> is nonzero,
+any RDFa Lite attributes appearing on elements in the XML source will
+be copied through to the corresponding element in the generated HTML.
+If the parameter is zero, then those attributes are not copied though.
+The default value is "1".</para>
+
+</refsection>
+</refentry>