I don't know if it is right but I created a template:
<xsl:template name="RDFaLite">
<xsl:choose>
<xsl:when test="@prefix != ''"><xsl:attribute name="prefix"><xsl:value-of
select="@prefix"/></xsl:attribute></xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="@property != ''"><xsl:attribute name="property"><xsl:value-of
select="@property"/></xsl:attribute></xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="@resource != ''"><xsl:attribute name="resource"><xsl:value-of
select="@resource"/></xsl:attribute></xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="@typeof != ''"><xsl:attribute name="typeof"><xsl:value-of
select="@typeof"/></xsl:attribute></xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="@vocab != ''"><xsl:attribute name="vocab"><xsl:value-of
select="@vocab"/></xsl:attribute></xsl:when>
</xsl:choose>
</xsl:template>
and added it to <xsl:template match="*" mode="common.html.attributes">
It seems to work but if anyone has an improvement let me know.
Peter
On 23/11/15 10:27, Peter Fleck wrote:
Hi all,
I would like to populate my HTML output with Schema.org.
I've been able to modify the inlines for obvious things like emails
etc but at the block level I need to add the appropriate RDFa Lite
Attributes to the XML (indicated here -
http://www.docbook.org/tdg51/en/html/ref-elements.html#common.attributes).
My question is how to get the RDF attributes passed through to the
HTML. Do I need to write a customization or is there a more obvious way?
Many thanks,
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-h...@lists.oasis-open.org