RE: [xsl] [XSLT 2.0] Checking that an element's value has the desired datatype?

Subject: RE: [xsl] [XSLT 2.0] Checking that an element's value has the desired datatype?
From: "Costello, Roger L." <costello@xxxxxxxxx>
Date: Tue, 17 Oct 2006 06:43:39 -0400
>>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$')

Agree?

/Roger

Current Thread