XML Schema of XLink

Discussion in 'XML' started by =?ISO-8859-1?Q?L=E9na=EFc?= Huard, Aug 24, 2004.

  1. -----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
    //\
    V_/_ KeyID: 0x04D2E818
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.4 (GNU/Linux)

    iD8DBQFBKypRjYEjJATS6BgRAl1KAJ9gxECelnT1OoCnb8pB7nwzmeYC6wCePwAi
    ZG+KyCIQvBCfPW1wkwUVaHE=
    =1Y1e
    -----END PGP SIGNATURE-----
     
    =?ISO-8859-1?Q?L=E9na=EFc?= Huard, Aug 24, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Markus
    Replies:
    1
    Views:
    1,664
    Markus
    Nov 23, 2005
  2. Peter Saffrey

    RDF/XLink for linkage in XML Schema

    Peter Saffrey, Jul 1, 2003, in forum: XML
    Replies:
    0
    Views:
    905
    Peter Saffrey
    Jul 1, 2003
  3. Harry Zoroc
    Replies:
    1
    Views:
    495
    Martin Honnen
    Aug 22, 2004
  4. Stanimir Stamenkov
    Replies:
    3
    Views:
    1,329
    Stanimir Stamenkov
    Apr 25, 2005
  5. Replies:
    3
    Views:
    3,174
Loading...

Share This Page