]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
A nit: dc:creator needs to be an ordered Text array.
authorJeremias Maerki <jeremias@apache.org>
Fri, 17 Feb 2006 16:29:14 +0000 (16:29 +0000)
committerJeremias Maerki <jeremias@apache.org>
Fri, 17 Feb 2006 16:29:14 +0000 (16:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@378562 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/pdf/PDFMetadata.java

index 9af42e8b62bffb65302997539177976338ccf6ec..9b21420eb6343bc4aa693f5a744cd4e307cb5355 100644 (file)
@@ -177,7 +177,11 @@ public class PDFMetadata extends PDFStream {
         if (info.getAuthor() != null) {
             el = doc.createElementNS(XMPConstants.DUBLIN_CORE_NAMESPACE, "dc:creator");
             desc.appendChild(el);
-            el.appendChild(doc.createTextNode(info.getAuthor()));
+            Element seq = doc.createElementNS(XMPConstants.RDF_NAMESPACE, "rdf:Seq");
+            el.appendChild(seq);
+            Element li = doc.createElementNS(XMPConstants.RDF_NAMESPACE, "rdf:li");
+            seq.appendChild(li);
+            li.appendChild(doc.createTextNode(info.getAuthor()));
         }
         if (info.getTitle() != null) {
             el = doc.createElementNS(XMPConstants.DUBLIN_CORE_NAMESPACE, "dc:title");