.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "RDF::RDFa::Parser::Config 3pm" .TH RDF::RDFa::Parser::Config 3pm "2021-09-11" "perl v5.32.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" RDF::RDFa::Parser::Config \- configuration sets for RDFa parser .SH "DESCRIPTION" .IX Header "DESCRIPTION" The third argument to the constructor for RDF::RDFa::Parser objects is a configuration set. This module provides such configuration sets. .PP Confguration sets are needed by the parser so that it knows how to handle certain features which vary between different host languages, or different RDFa versions. .PP All you need to know about is the constructor: .PP .Vb 1 \& $config = RDF::RDFa::Parser::Config\->new($host, $version, %options); .Ve .PP \&\f(CW$host\fR is the host language. Generally you would supply one of the following constants; the default is \s-1HOST_XHTML.\s0 Internet media types are accepted (e.g. 'text/html' or 'image/svg+xml'), but it's usually better to use a constant as some media types are shared (e.g. \s-1HTML4\s0 and \s-1HTML5\s0 both use the same media type). .IP "\(bu" 4 \&\fBRDF::RDFa::Parser::Config\->\s-1HOST_ATOM\s0\fR .IP "\(bu" 4 \&\fBRDF::RDFa::Parser::Config\->\s-1HOST_DATARSS\s0\fR .IP "\(bu" 4 \&\fBRDF::RDFa::Parser::Config\->\s-1HOST_HTML32\s0\fR .IP "\(bu" 4 \&\fBRDF::RDFa::Parser::Config\->\s-1HOST_HTML4\s0\fR .IP "\(bu" 4 \&\fBRDF::RDFa::Parser::Config\->\s-1HOST_HTML5\s0\fR .IP "\(bu" 4 \&\fBRDF::RDFa::Parser::Config\->\s-1HOST_OPENDOCUMENT_XML\s0\fR (Flat \s-1XML: \*(L"FODT\*(R", \*(L"FODS\*(R",\s0 etc) .IP "\(bu" 4 \&\fBRDF::RDFa::Parser::Config\->\s-1HOST_OPENDOCUMENT_ZIP\s0\fR (\*(L"\s-1ODT\*(R", \*(L"ODS\*(R",\s0 etc) .IP "\(bu" 4 \&\fBRDF::RDFa::Parser::Config\->\s-1HOST_SVG\s0\fR .IP "\(bu" 4 \&\fBRDF::RDFa::Parser::Config\->\s-1HOST_XHTML\s0\fR .IP "\(bu" 4 \&\fBRDF::RDFa::Parser::Config\->\s-1HOST_XHTML5\s0\fR .IP "\(bu" 4 \&\fBRDF::RDFa::Parser::Config\->\s-1HOST_XML\s0\fR .PP \&\f(CW$version\fR is the RDFa version. Generally you would supply one of the following constants; the default is \s-1RDFA_LATEST.\s0 .IP "\(bu" 2 \&\fBRDF::RDFa::Parser::Config\->\s-1RDFA_10\s0\fR .IP "\(bu" 2 \&\fBRDF::RDFa::Parser::Config\->\s-1RDFA_11\s0\fR .IP "\(bu" 2 \&\fBRDF::RDFa::Parser::Config\->\s-1RDFA_GUESS\s0\fR .IP "\(bu" 2 \&\fBRDF::RDFa::Parser::Config\->\s-1RDFA_LATEST\s0\fR .PP Version guessing: the root element is inspected for an attribute \&'version'. If this exists and matches /\ebRDFa\es+(\ed+\e.\ed+)\eb/i then that is used as the version. Otherwise, the latest version is assumed. .PP \&\f(CW%options\fR is a hash of additional options to use which override the defaults. While many of these are useful, they probably also reduce conformance to the official RDFa specifications. The following options exist; defaults for XHTML+RDFa1.0 and XHTML+RDFa1.1 are shown in brackets. .IP "\(bu" 2 \&\fBalt_stylesheet\fR \- magic rel=\*(L"alternate stylesheet\*(R". [0] .IP "\(bu" 2 \&\fBatom_elements\fR \- process and specially. [0] .IP "\(bu" 2 \&\fBatom_parser\fR \- extract Atom 1.0 native semantics. [0] .IP "\(bu" 2 \&\fBauto_config\fR \- see section \*(L"Auto Config\*(R" [0] .IP "\(bu" 2 \&\fBbookmark_start\fR, \fBbookmark_end\fR, \fBbookmark_name\fR \- Elements to treat like OpenDocument's and element, and associated text:name attribute. Must set all three to use this feature. Use Clark Notation to specify namespaces. [all undef] .IP "\(bu" 2 \&\fBcite_attr\fR \- support \f(CW@cite\fR [0] .IP "\(bu" 2 \&\fBdatetime_attr\fR \- support \f(CW@datetime\fR attribute and \s-1HTML5\s0