Next in thread → Next in month →

Re: [xml-dev] Validating tab-delimited text files against an XML Schema?

From
Mukul Gandhi <>
To
"Costello, Roger L." <>
Date
2012-09-23T08:17:40Z
ID
<CABuuzNP6E-se+EHLc3tA+kbwmg_C28s-9d8Nj=>
Thread
Re: [xml-dev] Validating tab-delimited text files against an XML Schema?
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
Next in thread → Next in month →