Subject: Re: [xsl] [XSLT 2.0] Checking that an element's value has the desired datatype? From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Tue, 17 Oct 2006 13:19:08 +0200 |
You do not need the backslash for the minus sign (end/beginning char class), and I am sure you would want to allow for no spaces at the end. Perhaps this is a little easier to read:Can you think of a value for the Altitude element that the XSLT template would reject, but a schema validator would accept?
Yes. " 23 "
Good catch! The XSLT expression should be:
matches(flt:Aircraft/flt:Altitude, '^\s*[+\-]?[0-9]+\s$')
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] [XSLT 2.0] Checking that , Costello, Roger L. | Thread | Re: [xsl] [XSLT 2.0] Checking that , Dimitre Novatchev |
RE: [xsl] [XSLT 2.0] Checking that , Costello, Roger L. | Date | Re: [xsl] [XSLT 2.0] Checking that , David Carlisle |
Month |