[oXygen-user] problem with xlink in METS files
Fri Sep 1 08:31:50 CDT 2006
In your XML document the prefix "xlink" is associated to the
"http://www.w3.org/TR/xlink" namespace while the mets.xsd schema imports
xlink.xsd with the target namespace "http://www.w3.org/1999/xlink".
oXygen looks in your document for a prefix associated to the target
namespace of the schema and it does not find one so it provides a
default prefix (ns1, ns2, etc) instead of the declared prefix "xlink".
Christian Wittern wrote:
> Hi there,
> I am having a strange problem with editing / validating METS
> instances. Using the schema from
> http://www.loc.gov/standards/mets/mets.xsd (which imports xlink.xsd at
> the same location),
> I am editing a file with the following root:
> <mets xmlns="http://www.loc.gov/METS/"
> xsi:schemaLocation="http://www.loc.gov/METS/ file:mets.xsd"
> i.e. I am defining a NS prefix xlink for the xlink namespace.
> Nevertheless, when I place attributes from this namespace on elements
> (e.g. on Flocat), oXygen claims they are not valid there and instead
> offers the very same attributes, but with namespace prefixes like ns1,
> ns2 etc. This seems to be wrong, but I am at a loss how to fix this.
> Is this a bug in oXygen or am I doing something wrong?
> Any help appreciated,
> Christian Wittern
More information about the oXygen-user