[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XMP to XML translation?

  • From: "G. Ken Holman" <gkholman@CraneSoftwrights.com>
  • To: Michael Hopwood <michael@editeur.org>,"xml-dev@l..." <xml-dev@l...>
  • Date: Tue, 10 Apr 2012 11:54:29 -0400

Re:  XMP to XML translation?
Is there something here that might help?

   http://www.CraneSoftwrights.com/resources/#XMP

What I found with the flat XMP structure is that 
it was too restrictive for me to include my own 
XML as marked up XML ... I ended up including it 
as escaped text and I wrote a stylesheet to 
translate the escaped text into the embedded XML instance.

In my case it is an embedded UBL document found in the XMP content.

My package includes a Python application for 
extracting the XMP content from the PDF file.

I hope this helps somewhat, though it isn't exactly what you were asking for.

. . . . . . . . Ken

At 2012-04-10 16:46 +0100, Michael Hopwood wrote:
>I’m looking for a quick and simple method to 
>transform XMP files into well-formed XML, 
>possibly according to an extremely simplified 
>schema (i.e. effectively a root node and a list 
>of allowed elements from selected namespaces, all with cardinality 0-n).
>
>The use case here is to import XMP data into an 
>XSLT engine I’m using, but the existing software 
>can’t handle the RDF/XML of the raw XMP.
>
>Since the XMP is relatively flat, I thought 
>there might be a standard or at least well-known 
>way to get this stuff into a very simple XML 
>form, from whence it could be input into my XSLT 
>engine (which auto-detects the “schema” of the 
>input data before creating an XSLT to transform 
>it and future uploads to a new schema).
>
>I’ve identified which namespaces need to be 
>included in my pseudo-schema, I just wondered if 
>there are some existing tools, preferably free, 
>which can do the job? Can this be done with more XSLT…?
>
>Michael Hopwood
>Linked Heritage Project Lead
>EDItEUR
>United House, North  Road
>London N7 9DP
>UK
>
>Tel: +44 20 7503 6418
>Mob: +44 7811 591036
>Skype: michael.hopwood.editeur
><http://www.linkedheritage.org/>http://www.linkedheritage.org/
>http://editeur.org/



--
Public XSLT, XSL-FO, UBL and code list classes in Europe -- May 2012
Contact us for world-wide XML consulting and instructor-led training
Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm
Crane Softwrights Ltd.            http://www.CraneSoftwrights.com/x/
G. Ken Holman                   mailto:gkholman@CraneSoftwrights.com
Google+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.