XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
RE: [xml-dev] XMP to XML translation?

Thanks Lech,

That sounds simpler than I thought... OK. It sounds like I can just plug in the XMP elements to the XSD I already have for the target schema without an intermediary schema...?

Great! :) this is actually what I was thinking would be best but wasn't sure if it could be that simple, as a total beginner at XSLT.

One slight complication is that it may be desirable to retain some structural points, like the rdf:Seq and rdf:Alt from the XMP, where this has meaning that needs to be preserved, but I'm guessing this may also be possible with XSLT?

Thanks again,

Michael

-----Original Message-----
From: Lech Rzedzicki [mailto:xchaotic@gmail.com] 
Sent: 11 April 2012 19:11
To: Michael Hopwood
Cc: xml-dev@lists.xml.org
Subject: Re: [xml-dev] XMP to XML translation?

On 10 April 2012 17:46, Michael Hopwood <michael@editeur.org> wrote:
> Hi all,
> 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).


Definitely more XSL would work, just identify what info are you after and write XSL templates to match that and discard everything else. For example for image dimensions, the template would be:

<template match="exif:PixelXDimension"> and <template match="exif:PixelYDimension">


Lech


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


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS