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. Advertisements

  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. Advertisements

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,692
    Markus
    Nov 22, 2005
  2. Nym Pseudo

    META NAME and META HTTP-EQUIV

    Nym Pseudo, Sep 26, 2003, in forum: HTML
    Replies:
    1
    Views:
    867
    =?iso-8859-1?Q?brucie?=
    Sep 26, 2003
  3. Rick Razzano

    XSD document for XSD defintion

    Rick Razzano, Sep 26, 2003, in forum: XML
    Replies:
    1
    Views:
    718
    C. M. Sperberg-McQueen
    Sep 26, 2003
  4. Replies:
    1
    Views:
    1,214
    Martin Honnen
    Jan 14, 2004
  5. Peter Aberline

    xsd:any as a child of xsd:all

    Peter Aberline, Apr 5, 2004, in forum: XML
    Replies:
    0
    Views:
    1,029
    Peter Aberline
    Apr 5, 2004
  6. Duane Johnson

    Meta methods to govern meta data?

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

    Meta-Meta-Programming

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

    Meta-Meta-Programming, revisited

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