anyattribute ##other?

Discussion in 'XML' started by thomas smith, Aug 12, 2004.

  1. thomas smith

    thomas smith Guest

    hi all,

    I have a question with respect to anyAttribute functionality. Consider
    the following XML excerpt

    <?xml version="1.0" encoding="UTF-8"?>
    <object xmlns="urn:foo:eek:b" xmlns:it="urn:foo:it"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    .....
    <item param="value1" it:test="value2"/>
    .....
    </object>

    now, my schema needs to express/restrict that

    1. the item element (in the urn:foo:eek:b NS) has a required attribute
    param (no NS prefix required).

    2. the item element (in the urn:foo:eek:b NS) can have multiple optional
    attributes (anyAttribute) from a NS other than urn:foo:eek:b. These
    attributes must have a NS prefix.

    Note that using anyAttribute="##other" is not sufficient, as this
    still allows to add attributes without NS prefix.

    can someone help me ahead with this problem?
    many thanks
    thomas
     
    thomas smith, Aug 12, 2004
    #1
    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. CM
    Replies:
    1
    Views:
    599
    Ed Kaim [MSFT]
    Oct 14, 2003
  2. Robert Skidmore

    Fade from one Panel to the other

    Robert Skidmore, Dec 14, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    6,286
    Bob Powell [MVP]
    Dec 14, 2003
  3. Frank
    Replies:
    1
    Views:
    798
    William Ryan
    Dec 31, 2003
  4. Jagadeesh
    Replies:
    0
    Views:
    576
    Jagadeesh
    Jan 14, 2004
  5. Replies:
    0
    Views:
    686
  6. Chris Dollin
    Replies:
    8
    Views:
    564
    Eric Sosman
    Feb 8, 2007
  7. Replies:
    3
    Views:
    611
  8. Diego
    Replies:
    2
    Views:
    283
    Stefan Rusterholz
    Aug 16, 2008
Loading...