By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,144 Members | 1,250 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,144 IT Pros & Developers. It's quick & easy.

XML Schema of XLink

P: n/a
-----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
//\ Le**********@laposte.net
V_/_ KeyID: 0x04D2E818
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBKypRjYEjJATS6BgRAl1KAJ9gxECelnT1OoCnb8pB7n wzmeYC6wCePwAi
ZG+KyCIQvBCfPW1wkwUVaHE=
=1Y1e
-----END PGP SIGNATURE-----
Jul 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.