I reworked my XmpQualifier object removing calls to the XOM library and
extended XmpArray as you suggested. (I overrided the toString() method)
The result cleaned up the issue with XPath ID.
I now get the snippet still transforming XML to rdf:li rdf:parseTyep="Resource":
<plm:car>
<rdf:Bag>
<rdf:li rdf:parseType="Resource">
<rdf:value>automobile</rdf:value>
<plm:color>red</plm:color>
<plm:model>Valiant</plm:model>
<plm:model_year>1962</plm:model_year>
</rdf:li>
</rdf:Bag>
</plm:car>
which is a change from the XmpQualifier.toString() output:
<plm:car>
<rdf:Bag>
<rdf:li>
<!-- XmpQualifier output start -->
<rdf:Description>
<plm:color>red</plm:color>
<plm:model>Valiant</plm:model>
<plm:model_year>1962</plm:model_year>
<rdf:value>automobile</rdf:value>
</rdf:Description>
<!--XmpQualifier output end -->
</rdf:li>
</rdf:Bag>
</plm:car>
I am not sure how the DublinCoreSchema fits in to your suggestion and it
appears that the transform to RDF Resource Type is happening outside the
XmpArray.
Thanks for your help!
-Chris
From: 1T3XT BVBA [mailto:i...@1t3xt.info]
Sent: Wednesday, August 31, 2011 12:14 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] XMP Qualifier support or lack there of
On 30/08/2011 19:58, Lindberg, Chris J. wrote:
I created a XmpQualifier object with a method that outputs the RDF/XML for the
qualifiers.
I would extend XmpArray to fit my needs and then set the property in the
DublinCoreSchema using the setProperty method.
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php