Pattern facet in Schema

Discussion in 'XML' started by kosaraju.puneeth@gmail.com, Oct 28, 2005.

  1. Guest

    hi,

    I am writing a pattern facet which will recognise Current/voltages
    Values.

    example:

    <xs:pattern value
    ="[-]?[[?[0-9]*[\.[0-9]*]?V]|[?[0-9]*[\.[0-9]*]?mV]|[?[0-9]*[\.[0-9]*]?uV]|[?[0-9]*[\.[0-9]*]?nV]"/>

    usage : -2.0V, 10.9mV, 7nV,...

    i am using Xml spy 2006 and it doesnt find the input as faulty when i
    give >>"-2.0A" instead of "-2.0V"<< ,it just says that XML file is
    valid!!

    can anybody tell whats the problem with the PAttern
     
    , Oct 28, 2005
    #1
    1. Advertising

  2. Guest

    hey...iĀ“messed up with the [] and () .. hahahahahaha.

    <xs:pattern
    value="[\-]?[0-9]+(\.[0-9]*)?V|[\-]?[0-9]+(\.[0-9]*)?mV|[\-]?[0-9]+(\.[0-9]*)?uV|[\-]?[0-9]+(\.[0-9]*)?nV"/>


    is the right one...
     
    , Oct 28, 2005
    #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. Jean-Marie Condom
    Replies:
    0
    Views:
    702
    Jean-Marie Condom
    Dec 16, 2004
  2. Markus
    Replies:
    1
    Views:
    1,637
    Markus
    Nov 23, 2005
  3. FC
    Replies:
    4
    Views:
    5,979
    Keith Davies
    Oct 27, 2003
  4. Johann Sijpkes
    Replies:
    2
    Views:
    470
    Johann Sijpkes
    Jul 14, 2004
  5. Stanimir Stamenkov
    Replies:
    3
    Views:
    1,312
    Stanimir Stamenkov
    Apr 25, 2005
Loading...

Share This Page