<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>XML Developer India &#187; Programming</title>
	<atom:link href="http://www.xmldeveloperindia.com/category/programming/feed" rel="self" type="application/rss+xml" />
	<link>http://www.xmldeveloperindia.com</link>
	<description></description>
	<lastBuildDate>Mon, 30 Aug 2010 17:37:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Schema Typed Parameters and Return Values in Library
	Modules</title>
		<link>http://www.xmldeveloperindia.com/schema-typed-parameters-and-return-values-in-librarymodules.html</link>
		<comments>http://www.xmldeveloperindia.com/schema-typed-parameters-and-return-values-in-librarymodules.html#comments</comments>
		<pubDate>Mon, 19 Jul 2010 19:16:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Utility]]></category>

		<guid isPermaLink="false">http://www.xmldeveloperindia.com/schema-typed-parameters-and-return-values-in-librarymodules.html</guid>
		<description><![CDATA[ I think if I were writing a library for a vocabulary where schema validation is the norm (like FpML , say), and assuming that the schema is suitable for use in XQuery (most element names either global or having a named complex type) then I would declare the functions with types that assume the data is pre-validated. I wouldn't expect client code to be invoking validate{} explicitly - I would expect that most of the time, the function is called to operate directly on input data, which is validated at source outside the query. (But that might not be how Zorba works, I don't know.) The main reason is that it's a good idea in an interface definition to be as precise as possible about what you expect to cross the interface]]></description>
			<content:encoded><![CDATA[<p> I think if I were writing a library for a vocabulary where schema validation is the norm (like FpML , say), and assuming that the schema is suitable for use in XQuery (most element names either global or having a named complex type) then I would declare the functions with types that assume the data is pre-validated. I wouldn&#8217;t expect client code to be invoking validate{} explicitly &#8211; I would expect that most of the time, the function is called to operate directly on input data, which is validated at source outside the query. (But that might not be how Zorba works, I don&#8217;t know.) The main reason is that it&#8217;s a good idea in an interface definition to be as precise as possible about what you expect to cross the interface</p>
<p>See the rest here:<br />
<a target="_blank" href="http://www.stylusstudio.com/xquerytalk/201007/004180.html" title="Schema Typed Parameters and Return Values in Library<br />
	Modules">Schema Typed Parameters and Return Values in Library<br />
	Modules</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xmldeveloperindia.com/schema-typed-parameters-and-return-values-in-librarymodules.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
