[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] Validating tab-delimited text files against an XML Schema?
- From: Mukul Gandhi <gandhi.mukul@gmail.com>
- To: "Costello, Roger L." <costello@mitre.org>
- Date: Sun, 23 Sep 2012 13:47:40 +0530
I realized that the following assertion would also have worked,
<xs:assertion test="every $rec1 in tokenize($value, '\r?\n')[position() gt 1]
satisfies (
(tokenize($rec1, '\t')[1] castable as xs:integer) and
(tokenize($rec1, '\t')[3] castable as xs:decimal)
)
"/>
The "for" expression was unnecessary in my previous schema document.
--
Regards,
Mukul Gandhi
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]