XSD meta-attribute

Discussion in 'XML' started by Nicolas Moreau, May 10, 2006.

  1. Hi,

    is there a way to declare in an XSD an attribute of type "an xsd type" ?
    for example <foo bar="xsd:string"/> or <foo bar="xsd:boolean"/>

    thanks,

    Nicolas Moreau
     
    Nicolas Moreau, May 10, 2006
    #1
    1. Advertising

  2. Nicolas Moreau wrote:

    > is there a way to declare in an XSD an attribute of type "an xsd type" ?
    > for example <foo bar="xsd:string"/> or <foo bar="xsd:boolean"/>


    I don't think there is a predefined QName type you could use.
    There is however the predefined
    xsi:type
    attribute that defines the type of an element e.g.
    <element
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:type="xs:string">...</element>

    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
     
    Martin Honnen, May 10, 2006
    #2
    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,187
    Markus
    Nov 22, 2005
  2. Nym Pseudo

    META NAME and META HTTP-EQUIV

    Nym Pseudo, Sep 26, 2003, in forum: HTML
    Replies:
    1
    Views:
    604
    =?iso-8859-1?Q?brucie?=
    Sep 26, 2003
  3. Duane Johnson

    Meta methods to govern meta data?

    Duane Johnson, Oct 25, 2005, in forum: Ruby
    Replies:
    6
    Views:
    274
    Adam Sanderson
    Oct 28, 2005
  4. Erik Veenstra

    Meta-Meta-Programming

    Erik Veenstra, Feb 7, 2006, in forum: Ruby
    Replies:
    29
    Views:
    445
    Erik Veenstra
    Feb 8, 2006
  5. Erik Veenstra

    Meta-Meta-Programming, revisited

    Erik Veenstra, Jul 21, 2006, in forum: Ruby
    Replies:
    21
    Views:
    485
    Erik Veenstra
    Jul 25, 2006
Loading...

Share This Page