?
=?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"
xmlnshoto="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-----
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"
xmlnshoto="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-----