From: bobstayton Date: Sun, 22 Jul 2018 06:21:01 +0000 (-0700) Subject: fix issue #40 Add support for RDFalite attributes X-Git-Tag: snapshot/2018-09-29-177^0 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f68e163f34c0df6e1ed1d2462f904fbccc81657;p=docbook-dsssl fix issue #40 Add support for RDFalite attributes --- diff --git a/xsl/html/html.xsl b/xsl/html/html.xsl index aa0b90603..b55e2b908 100644 --- a/xsl/html/html.xsl +++ b/xsl/html/html.xsl @@ -354,6 +354,10 @@ + + + + @@ -382,6 +386,14 @@ + + + + + + + + diff --git a/xsl/html/param.ent b/xsl/html/param.ent index ccaf16579..5fa849d28 100644 --- a/xsl/html/param.ent +++ b/xsl/html/param.ent @@ -328,3 +328,4 @@ + diff --git a/xsl/html/param.xweb b/xsl/html/param.xweb index f1b31383c..644d39ea9 100644 --- a/xsl/html/param.xweb +++ b/xsl/html/param.xweb @@ -169,6 +169,7 @@ &generate.revhistory.link; &html.head.legalnotice.link.types; &html.head.legalnotice.link.multiple; +©.rdfa.attributes; Reference Pages &funcsynopsis.decoration; @@ -502,6 +503,7 @@ around all these parameters. + diff --git a/xsl/params/copy.rdfa.attributes.xml b/xsl/params/copy.rdfa.attributes.xml new file mode 100644 index 000000000..d1397f891 --- /dev/null +++ b/xsl/params/copy.rdfa.attributes.xml @@ -0,0 +1,42 @@ + + +copy.rdfa.attributes +boolean + + +copy.rdfa.attributes +Copy RDFA attributes to HTML output + + + + + + + + +Description + +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. + +DocBook 5.1 added support for the RDFa Lite attributes to +the DocBook schema. Those attributes are vocab, +typeof, property, resource, +prefix. + +If the parameter copy.rdfa.attributes 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". + + +