XML Schema of XLink

  • Thread starter =?ISO-8859-1?Q?L=E9na=EFc?= Huard
  • Start date
?

=?ISO-8859-1?Q?L=E9na=EFc?= Huard

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I wonder wether the W3C has published an XML Schema for XLink.

I want in a schema to describe an element which must have the XLink
attributes.
How can I do this ?

I started my schema with :

<?xml version="1.0" encoding="ISO-8859-1" ?>
<xs:schema xmlns="http://Photos"
xmlns:photo="http://Photos"
targetNamespace="http://Photos"
xmlns:xl="http://www.w3.org/1999/xlink"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="qualified">
<xs:import namespace="http://www.w3.org/1999/xlink" />

Then, if I want myLink to be a link element which can have xl:type, xl:href
and so on attributes, can I declare it with :

<xs:element name="myLink" type="photo:myLinkType" />

<xs:complexType name="myLinkType">
<xs:attributeGroup ref="xl:WhatShouldIPutHere" />
</xs:complexType>

I don't know wether such a declaration is possible and what I should put as
reference of the attributeGroup.

Does any XML guru have an idea ?
Google gave me only home-made minimalist XLink schema...
Thanks,
Lénaïc.
- --
(o_ Lénaïc HUARD
//\ (e-mail address removed)
V_/_ KeyID: 0x04D2E818
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBKypRjYEjJATS6BgRAl1KAJ9gxECelnT1OoCnb8pB7nwzmeYC6wCePwAi
ZG+KyCIQvBCfPW1wkwUVaHE=
=1Y1e
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top