From 1f68e163f34c0df6e1ed1d2462f904fbccc81657 Mon Sep 17 00:00:00 2001 From: bobstayton Date: Sat, 21 Jul 2018 23:21:01 -0700 Subject: [PATCH] fix issue #40 Add support for RDFalite attributes --- xsl/html/html.xsl | 12 +++++++++ xsl/html/param.ent | 1 + xsl/html/param.xweb | 2 ++ xsl/params/copy.rdfa.attributes.xml | 42 +++++++++++++++++++++++++++++ 4 files changed, 57 insertions(+) create mode 100644 xsl/params/copy.rdfa.attributes.xml 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". + + + -- 2.40.0