Miroslav Holubec created PDFBOX-4817:
----------------------------------------
Summary: Generated XMP Metadata with other XSLT processor are XML
invalid
Key: PDFBOX-4817
URL: https://issues.apache.org/jira/browse/PDFBOX-4817
Project: PDFBox
Issue Type: Bug
Components: XmpBox
Affects Versions: 2.0.19
Reporter: Miroslav Holubec
In our system I cannot affect javax.xml.transform.TransformerFactory property,
it is per default set to org.apache.xalan.processor.TransformerFactoryImpl
(Xalan v2.7.2).
When I generate XMP metadata DublinCoreSchema with title, I will get following
piece of XML:
{noformat}
<rdf:Description xmlns:dc="http://purl.org/dc/elements/1.1/" rdf:about="">
<dc:title>
<rdf:Alt>
<rdf:li lang="x-default">some title</rdf:li>
</rdf:Alt>
</dc:title>
</rdf:Description>
{noformat}
Problem is, that before _lang_ attribute is _xml:_ attribute prefix missing,
and then is XML invalid as per specification. With
org.apache.xalan.xsltc.trax.TransformerFactoryImpl is everything OK.
Solution to the problem will be providing DocumentBuilderFactory and
TransformerFactory from outside via constructor.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]