Next in thread →
Next in month →
Re: RDFa Lite Attributes in Docbook 5.1
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:
Next in thread →
Next in month →