XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS