RELAX NG - How to define attribute value types?

R

Robert Dailey

Hi,

I'm curious as to how you can specify that a "value" is to be a
number, float, etc? So far the only thing I see that you can do is:

<value type="string"/>

What about

<value type="integer"/>

Of course, the "integer" is invalid. Is there a way to restrict an
attribute value to a number? Float? etc. Also is there a way to say
that the number type has to be between a specific range. Say 0-50?

Thanks.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
474,008
Messages
2,570,270
Members
46,872
Latest member
Stephendes

Latest Threads

Top