Embedding custom XML into XMP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul J. Lucas

    #1

    Embedding custom XML into XMP

    If I want to embed my own XML inside XMP, as far as I can tell, I should
    do something like this:

    <?xpacket begin="" id='W5M0MpCehiH zreSzNTczkc9d'? >
    <x:xmpmeta xmlns:x="adobe: ns:meta/">
    <rdf:RDF xmlns:rdf="http ://www.w3.org/1999/02/22-rdf-syntax-ns#">
    <rdf:Descriptio n xmlns:my="http://www.my.com/rdf:about="">
    <my:Envelope rdf:parseType=" Literal">
    <foo bar="baz">anyth ing I want</foo>
    </my:Envelope>
    </rdf:Description >
    </rdf:RDF>
    </x:xmpmeta>
    <?xpacket end='w'?>

    Yet when I embed such XML inside a TIFF file having tag 700 and open the
    TIFF with Photoshop, Photohop complains that the information is wrong (but
    doesn't say specifically what) and ignores it.

    So how can I embed any XML I want inside an XMP packet?

    - Paul
  • Paul J. Lucas

    #2
    Re: Embedding custom XML into XMP

    Paul J. Lucas <pauljlucas.rem ovethis@removet histoo.mac.comw rote:
    >
    <rdf:Descriptio n xmlns:my="http://www.my.com/rdf:about="">
    Yes, I know that should be:
    <rdf:Descriptio n xmlns:my="http://www.my.com/" rdf:about="">
    The original example was just a bad copy/paste job. The actual XML is
    correct.

    - Paul

    Comment

    • Andy Dingley

      #3
      Re: Embedding custom XML into XMP

      On 31 Jan, 16:53, pauljlucas.remo vet...@removeth istoo.mac.com (Paul J.
      Lucas) wrote:
      So how can I embed any XML I want inside an XMP packet?
      I don't think you can. XMP is a very-much subsetted RDF and it doesn't
      like anything beyond a simple list of properties, certainly not any
      sort of structured graph. As a result I've never really bothered with
      it and sadly can't help further. Adobe do have a good specification of
      it out on the web though and AFAIR they're quite specific about what
      you can and can't do.

      Comment

      • Andy Dingley

        #4
        Re: Embedding custom XML into XMP

        On 31 Jan, 20:32, pauljlucas.remo vet...@removeth istoo.mac.com (Paul J.
        Lucas) wrote:
        So how can I embed any XML I want inside an XMP packet?
        >
        I don't think you can.
        Then explain this:

        >
        The example shows arbitrary XHTML embedded inside the dc:title element.
        Lovely. That's RDF not XMP. Like I said, XMP only supports a _subset_
        of RDF. That's one of the main reasons why I see XMP as a trivial
        irrelevance to anything I work on. If I deal with it, it will only be
        as an obsolete minor export format (like RSS 2.0) that I down-convert
        into from the real data model.

        Read the XMP SDK (download from Adobe)
        In particular, p28 of XMPSpecificatio n.pdf

        :RDF Issues
        :Unsupported Features
        :XMP uses a subset of RDF. Valid XMP is limited to the RDF described
        in the previous
        :sections, along with all equivalent alternate forms of that RDF.
        :[...]
        :● The rdf:parseType=' Literal' attribute is not supported.

        Comment

        • Grant Robertson

          #5
          Re: Embedding custom XML into XMP

          In article <1170335972.613 389.193130@a34g 2000cwb.googleg roups.com>,
          dingbat@codesmi ths.com says...
          Lovely. That's RDF not XMP. Like I said, XMP only supports a _subset_
          of RDF. That's one of the main reasons why I see XMP as a trivial
          irrelevance to anything I work on. If I deal with it, it will only be
          as an obsolete minor export format (like RSS 2.0) that I down-convert
          into from the real data model.
          >
          So, if I were creating a standard, then allowing XMP to be used to
          provide information about images would be wise but allowing only XMP and
          nothing else would be unwise?

          Comment

          Working...