<?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>MicahLogic &#187; XForms</title>
	<atom:link href="http://dubinko.info/blog/tags/standards/xforms/feed/" rel="self" type="application/rss+xml" />
	<link>http://dubinko.info/blog</link>
	<description>From an XML geek, a reader, a writer, a connector, a man of the people (says keep hope alive)</description>
	<lastBuildDate>Thu, 02 Feb 2012 06:43:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Resurgence of MVC in XQuery</title>
		<link>http://dubinko.info/blog/2011/12/08/mvc-in-xquery/</link>
		<comments>http://dubinko.info/blog/2011/12/08/mvc-in-xquery/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 21:27:30 +0000</pubDate>
		<dc:creator>mdubinko</dc:creator>
				<category><![CDATA[Mark Logic]]></category>
		<category><![CDATA[trends]]></category>
		<category><![CDATA[XForms]]></category>
		<category><![CDATA[xml]]></category>
		<category><![CDATA[XQuery]]></category>

		<guid isPermaLink="false">http://dubinko.info/blog/?p=956</guid>
		<description><![CDATA[There&#8217;s been an increasing amount of talk about MVC in XQuery, notably David Cassel&#8217;s great discussion and to an extent Kurt Cagle&#8217;s platform discussion that touched on forms interfaces. Lots of Smart People are thinking in this area, and that&#8217;s a good thing. A while back I recorded my thoughts on what I called MET, or [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s been an increasing amount of talk about MVC in XQuery, notably David Cassel&#8217;s <a title="Models in XQuery" href="http://blog.davidcassel.net/2011/12/models-in-xquery/">great discussion</a> and to an extent Kurt Cagle&#8217;s <a title="The MarkLogic Platform" href="http://xmltoday.org/content/marklogic-platform">platform discussion</a> that touched on forms interfaces. Lots of Smart People are thinking in this area, and that&#8217;s a good thing.</p>
<p>A while back I recorded my thoughts on what I called MET, or the <a title="Model Endpoint Template" href="http://dubinko.info/blog/2009/11/29/model-endpoint-template/">Model Endpoint Template</a> organizational pattern, as used in MarkLogic Application Builder. One difference between 2009 and now, though, is that browsers have distanced themselves even farther from XML, which tends to undercut the eliminate-the-impedance-mismatch argument. In particular, the forms model in HTML5 continues to prefer flat data, which to me indicates that models still play an important role in XQuery web apps.</p>
<p>So I envision the app lifecycle like this:</p>
<ol>
<li>The browser requests a particular page, say the one that lets you configure sorting options in the app you’re building</li>
<li>An HTML page loads.</li>
<li>Client-side script requests the project state from a designated endpoint, the server transforms the XML into a flat list, and delivers it as JSON (as an optimization, the server can package the initial data into the page delivered in the prior step)</li>
<li>Standard form interaction and client-side scripting happens, including manipulation of repeating structures mediated by JavaScript</li>
<li>A standard form submit happens (possibly via script), sending a flat list back to the client, which performs an update to the stored XML.</li>
</ol>
<div>It&#8217;s pretty easy to envision data-mapping tools and libraries that help automate the construction of the transforms mentioned in steps 3 and 5.</div>
<p>Another thing that&#8217;s changed is the emergence of XQuery plugin technology in MarkLogic. There&#8217;s a rapidly-growing library of reusable components, initially centered around Information Studio but soon to cover more ground. This is going to have a major impact on XQuery app designs as components of the app (think visualization widgets) can be seamlessly added to apps.</p>
<p>Endpoints still make a ton of sense for XQuery apps, and provide the additional advantage that you now have a testable, concern-separated data layer for your app. Other apps have a clean way to interop, and even command-line operaton is possible with off-the-shelf-tools like wget.</p>
<p>Lastly, Templates. Even if you use plugins for the functional core of your app, there&#8217;s still a lot of boilerplate stuff you&#8217;d not want to repeat. Something like <a title="mustache.xq" href="http://developer.marklogic.com/code/mustache.xq">Mustache.xq</a> is a good fit for this.</p>
<p>Which is all good&#8211;but is it MVC? This organizational pattern (let&#8217;s call it MET 2.0) is a lot closer to it. Does MET need a controller? Probably. (MarkLogic now ships a pretty good one called rest:rewrite) Like MVC, MET separates the important essences of your application. XQuery will never be Ruby or Java, and its frameworks will never be Rails or Spring, but rather something uniquely poised to capture the expressive power of the language to build apps on top of unstructured and big data. -m</p>
]]></content:encoded>
			<wfw:commentRss>http://dubinko.info/blog/2011/12/08/mvc-in-xquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XForms Training: Feb 14, 15 in Maryland</title>
		<link>http://dubinko.info/blog/2011/01/07/xforms-training-feb-14-15-in-maryland/</link>
		<comments>http://dubinko.info/blog/2011/01/07/xforms-training-feb-14-15-in-maryland/#comments</comments>
		<pubDate>Sat, 08 Jan 2011 06:12:45 +0000</pubDate>
		<dc:creator>mdubinko</dc:creator>
				<category><![CDATA[announcement]]></category>
		<category><![CDATA[XForms]]></category>
		<category><![CDATA[blackmesa]]></category>
		<category><![CDATA[mulberry]]></category>
		<category><![CDATA[training]]></category>

		<guid isPermaLink="false">http://dubinko.info/blog/?p=911</guid>
		<description><![CDATA[The remarkable C. M. Sperberg-McQueen is offering XForms training in Maryland (at Mulberry Technologies), Feb 14 &#38; 15, 2011. This is a two-day hands-on introduction to XForms. Check it out. This is a great opportunity to learn more about XForms. -m]]></description>
			<content:encoded><![CDATA[<p>The remarkable C. M. Sperberg-McQueen is offering XForms training in Maryland (at Mulberry Technologies), Feb 14 &amp; 15, 2011. This is a two-day hands-on introduction to XForms. <a href="http://www.blackmesatech.com/2011/02/XForms/">Check it out</a>. This is a great opportunity to learn more about XForms. -m</p>
]]></content:encoded>
			<wfw:commentRss>http://dubinko.info/blog/2011/01/07/xforms-training-feb-14-15-in-maryland/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is XForms really MVC?</title>
		<link>http://dubinko.info/blog/2010/09/02/is-xforms-really-mvc/</link>
		<comments>http://dubinko.info/blog/2010/09/02/is-xforms-really-mvc/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 03:56:00 +0000</pubDate>
		<dc:creator>mdubinko</dc:creator>
				<category><![CDATA[intentional web]]></category>
		<category><![CDATA[languages]]></category>
		<category><![CDATA[patternalia]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[stuff]]></category>
		<category><![CDATA[XForms]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[model]]></category>
		<category><![CDATA[mvc]]></category>
		<category><![CDATA[mvp]]></category>
		<category><![CDATA[oo]]></category>
		<category><![CDATA[pattern]]></category>
		<category><![CDATA[view]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://dubinko.info/blog/?p=890</guid>
		<description><![CDATA[This epic posting on MVC helped me better understand the pattern, and all the variants that have flowed outward from the original design. One interesting observation is that the earlier designs used Views primarily as output-only, and Controllers primarily as input-only, and as a consequence the Controller was the one true path for getting data [...]]]></description>
			<content:encoded><![CDATA[<p>This <a href="http://www.aspiringcraftsman.com/2007/08/interactive-application-architecture/">epic posting</a> on MVC helped me better understand the pattern, and all the variants that have flowed outward from the original design. One interesting observation is that the earlier designs used Views primarily as output-only, and Controllers primarily as input-only, and as a consequence the Controller was the one true path for getting data into the Model.</p>
<p>But with browser forms, input and output are tightly intermingled. The View takes care of input and output. Something else has primary responsibility for mediating the data flow to and from the model&#8211;and that something has been called a Presenter. This yields the MVP pattern.</p>
<p>The terminology gets confusing quickly, but roughly</p>
<p>XForms Instance == MVP Model</p>
<p>XForms Model == MVP Presenter</p>
<p>XForms User Interface == MVP View</p>
<p>It&#8217;s not wrong to associate XForms with MVC&#8211;the term has become so blurry that it&#8217;s easy to lump variants like MVP into the same bucket. But to the extent that it makes sense to talk about more specific patterns, maybe we should be calling the XForms design pattern MVP instead of MVC. Comments? Criticism? Fire away below. -m</p>
]]></content:encoded>
			<wfw:commentRss>http://dubinko.info/blog/2010/09/02/is-xforms-really-mvc/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>XForms: binding to an optional element</title>
		<link>http://dubinko.info/blog/2010/01/20/xforms-binding/</link>
		<comments>http://dubinko.info/blog/2010/01/20/xforms-binding/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 08:06:30 +0000</pubDate>
		<dc:creator>mdubinko</dc:creator>
				<category><![CDATA[annoyance]]></category>
		<category><![CDATA[XForms]]></category>
		<category><![CDATA[optional]]></category>
		<category><![CDATA[relevant]]></category>
		<category><![CDATA[schema]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://dubinko.info/blog/?p=782</guid>
		<description><![CDATA[I asked this on the XSLTForms list, but it&#8217;s worth casting a wider net. Say I have an XML instance like this: &#60;root&#62; &#60;format&#62;xml&#60;/format&#62; &#60;/root&#62; Possible values for the format element are &#8220;xml&#8221;, &#8220;text&#8221;, &#8220;binary&#8221;, or a default setting, indicated by a complete absence of the &#60;format&#62; element. I&#8217;d like this to attach to a [...]]]></description>
			<content:encoded><![CDATA[<p>I asked this on the XSLTForms list, but it&#8217;s worth casting a wider net.</p>
<p>Say I have an XML instance like this:<br />
&lt;root&gt;<br />
&lt;format&gt;xml&lt;/format&gt;<br />
&lt;/root&gt;</p>
<p>Possible values for the format element are &#8220;xml&#8221;, &#8220;text&#8221;, &#8220;binary&#8221;, or a default setting, indicated by a complete absence of the &lt;format&gt; element. I&#8217;d like this to attach to a select1 with four choices:</p>
<p>&lt;xf:select1 ref=&#8221;format&#8221;&gt;&#8230;</p>
<p>* xml<br />
* text<br />
* binary<br />
* default</p>
<p>Where the first three set the value of the &lt;format&gt; element, and the fourth omits the element altogether. In XForms 1.0, the difficulty comes from binding to a nonexistent element, which causes it to become non-relevant. Are there features from 1.1, 1.2, or extensions that make this case easier? Anyone have an example?</p>
<p>-m</p>
]]></content:encoded>
			<wfw:commentRss>http://dubinko.info/blog/2010/01/20/xforms-binding/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The Model Endpoint Template (MET) organizational pattern for XRX apps</title>
		<link>http://dubinko.info/blog/2009/11/29/model-endpoint-template/</link>
		<comments>http://dubinko.info/blog/2009/11/29/model-endpoint-template/#comments</comments>
		<pubDate>Sun, 29 Nov 2009 21:09:08 +0000</pubDate>
		<dc:creator>mdubinko</dc:creator>
				<category><![CDATA[browsers]]></category>
		<category><![CDATA[Mark Logic]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[XForms]]></category>
		<category><![CDATA[XQuery]]></category>
		<category><![CDATA[application builder]]></category>
		<category><![CDATA[endpoint]]></category>
		<category><![CDATA[marklogic]]></category>
		<category><![CDATA[met]]></category>
		<category><![CDATA[model]]></category>
		<category><![CDATA[mvc]]></category>
		<category><![CDATA[rest]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[xquery]]></category>
		<category><![CDATA[xrx]]></category>

		<guid isPermaLink="false">http://dubinko.info/blog/?p=730</guid>
		<description><![CDATA[One of the lead bullets describing why XForms is cool always mentions that it is based on a Model View Controller framework. When building a full XRX app, though, MVC might not be the best choice to organize things overall. Why not? Consider a typical XRX app, like MarkLogic Application Builder. (You can download a [...]]]></description>
			<content:encoded><![CDATA[<p>One of the lead bullets describing why <a title="XForms Institute" href="http://xformsinstitute.com">XForms</a> is cool always mentions that it is based on a Model View Controller framework. When building a full <a href="http://en.wikibooks.org/wiki/XRX">XRX</a> app, though, <a href="http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller">MVC</a> might not be the best choice to organize things overall. Why not?</p>
<p>Consider a typical XRX app, like MarkLogic Application Builder. (You can download a your copy of MarkLogic, including Application Builder, under the community license at the <a href="http://developer.marklogic.com/download/">developer site</a>.) For each page, the cycle goes like this:</p>
<ol>
<li>The browser requests a particular page, say the one that lets you configure sorting options in the app you&#8217;re building</li>
<li>The page loads, including client-side <a href="http://sourceforge.net/projects/xsltforms/">XForms via JavaScript</a></li>
<li>XForms requests the project state as XML from a designated endpoint; this becomes the XForms Instance Data</li>
<li>Stuff happens on the page that changes the client-side state</li>
<li>Just before leaving the page, XML representing the updated state is HTTP PUT back to the endpoint</li>
</ol>
<p>The benefit of this approach is that you are dealing with XML all the way through, no impedance mismatches like you might find on an app that awkwardly transitions from (say) relational data to Java objects to urlencoded name/value pairs embedded in HTML syntax.</p>
<p>So why not do this in straight MVC? Honestly, MVC isn&#8217;t a bad choice, but it can get unwieldy. If an endpoint consists of a separate model+view+controller files, and each individual page consists of separate model+view+controller files, it adds up to a lot of stuff to keep track of. In truly huge apps, this much attention to organization might be worth it, but most apps aren&#8217;t that big. Thus the MET pattern.</p>
<p>Model: It still makes sense to keep the code that deals with particular models (closely aligned with Schemas) as a separate thing. All of Application Builder, for example, has only one model.</p>
<p>Endpoint: The job of an endpoint is to GET and PUT (and possibly POST and DELETE) XML, or other equivalent resource bundles depending on how many media types you want to deal with. It combines an aspect of controllers by being activated by a particular URL and views by providing the data in a consistent format.</p>
<p>Template: Since XForms documents already contain MVC mechanics, it not a high-payoff situation to further use MVC to construct the XForms and XHTML wrapper themselves. The important stuff happens within XForms, and then you need various templating mechanisms for example to provide consistent headers, footers, and other pieces across multiple pages. For this, an ordinary templating mechanism suffices. I can imagine dynamic assembly scenarios where this wouldn&#8217;t be the case, but again, many apps don&#8217;t need this kind of flexibility, and the complexity that comes along with it.</p>
<p>What about separation of concerns? Oh yeah, what about it? :-) Technically both Endpoints and Templates violate classical <acronym title="separation of concerns">SOC</acronym>. In an XRX app, this typically doesn&#8217;t lead to the kinds of spaghetti situations that it might otherwise. Endpoints are self contained, and can focus on doing just one thing well; with limited scope comes limited ability to get into trouble. For those times when you need to dig into the XQuery code of an endpoint, it&#8217;s actually helpful to see both the controller and view pieces laid out in one file.</p>
<p>As for Templates, simplicity wins. With the specifics of models and endpoints peeled away, the remaining challenge in developing individual pages is getting the XForms right, and again, it&#8217;s helpful to minimize the numbers of files one XForms page are split across. <a title="You ain't gonna need it" href="http://en.wikipedia.org/wiki/You_ain%27t_gonna_need_it">YAGNI</a> applies to what&#8217;s left, at least in the stuff I&#8217;ve built.</p>
<p>So, I&#8217;ve been careful in the title to call this an &#8220;organizational pattern&#8221;, not a &#8220;design pattern&#8221; or an (ugh) &#8220;architectural pattern&#8221;. Nothing too profound here. I&#8217;d be happy to start seeing XRX apps laid out with directory names like &#8220;models&#8221;, &#8220;endpoints&#8221;, and &#8220;templates&#8221;.</p>
<p>What do you think? Comments welcome.</p>
<p>-m</p>
]]></content:encoded>
			<wfw:commentRss>http://dubinko.info/blog/2009/11/29/model-endpoint-template/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Application Builder behind-the-scenes</title>
		<link>http://dubinko.info/blog/2009/10/21/application-builder-behind-the-scenes/</link>
		<comments>http://dubinko.info/blog/2009/10/21/application-builder-behind-the-scenes/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 19:04:43 +0000</pubDate>
		<dc:creator>mdubinko</dc:creator>
				<category><![CDATA[announcement]]></category>
		<category><![CDATA[Mark Logic]]></category>
		<category><![CDATA[XForms]]></category>
		<category><![CDATA[XQuery]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[functional]]></category>
		<category><![CDATA[hof]]></category>
		<category><![CDATA[novamug]]></category>
		<category><![CDATA[relax]]></category>
		<category><![CDATA[relaxng]]></category>
		<category><![CDATA[speaking]]></category>
		<category><![CDATA[xquery]]></category>
		<category><![CDATA[xrx]]></category>

		<guid isPermaLink="false">http://dubinko.info/blog/?p=680</guid>
		<description><![CDATA[I&#8217;ll be speaking next Tuesday (Oct 27) at the Northern Virginia MarkLogic User Group (NOVAMUG). Here&#8217;s what I&#8217;ll be talking about. Application Builder consists of two main parts: Search API to enable Google-style search string processing, and the actual UI wizard that steps users through building a complete search app. It uses a number of [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll be speaking next Tuesday (Oct 27) at the Northern Virginia MarkLogic User Group (NOVAMUG). Here&#8217;s what I&#8217;ll be talking about.</p>
<p>Application Builder consists of two main parts: Search API to enable Google-style search string processing, and the actual UI wizard that steps users through building a complete search app. It uses a number of technologies that have not (at least not up until now!) been widely associated with MarkLogic. <em>Why</em> some technologies that seem like a perfect fit for XML apps are less used in the Mark Logic ecosystem is anyone&#8217;s guess, but one thing App Builder can contribute to the environment is some fresh DNA. Maybe your apps can benefit from these as well.</p>
<p><strong>XForms and XRX</strong>. Clicking through the screens of App Builder is really a fancy way of editing XML. Upon first arriving on a page, the client makes a GET request to an &#8220;Application XML Endpoint&#8221; (axe.xqy) to get the current state of the project, which is rendered in the user interface. Interacting with the page edits the in-memory XML. Afterwards, the updated state is PUT back to the same endpoint upon clicking &#8216;Save&#8217; or prior to navigating away. This is a classic XRX architecture. MarkLogic ships with a copy of the <a href="http://sourceforge.net/projects/xsltforms/">XSLTForms</a> engine, which makes use of client-side XSLT to transform XForms Markup into divs, spans, classes, and JavaScript that can be processed entirely in the browser. Thus XForms works on all supported browsers all the way back to IE6. The apps built by the App Builder don&#8217;t use any XForms (yet!) but as App Builder itself demonstrates, it is a great platform for application development.</p>
<p>To be honest, many XForms apps have fallen short on the polished UI department. Not so with App Builder, IMHO. An early, and in hindsight somewhat misdirected, thrust of XForms advocacy pushed the angle of building apps with zero script needed. But one advantage of using a JavaScript implementation of XForms is that it frees you to use script as needed. So in many places, large amounts of UI, all mapped to XML, are able to be hidden away with CSS, and selectively revealed (or mapped to yet other HTML form controls) in small, self-contained overlays triggered via script. While it doesn&#8217;t fulfill the unrealistic promise of completely eliminating script, it&#8217;s a useful technique, one I predict we&#8217;ll see more of in the future.</p>
<p><strong>Relax NG</strong>. XML Schema has its roots deep into the XML infrastructure. The type system of XQuery and XSLT 2.0 is based on it. Even XForms has ties to it. But for its wide reach, XML Schema 1.0 has some maddening limitations, and &#8220;takes some getting used to&#8221; before one can sight read it. In the appendices of many recent W3C specifications use the highly-readable compact syntax to describe content models is a way equally human and machine-readable.</p>
<p>What are these limitations I speak of? XML Schema 1.1 goes a long way toward resolving these, but isn&#8217;t yet widely in use. Take this example, the content model of the &lt;options&gt; element from Search API:</p>
<pre>start = Options | Response

# Root element
OptionsType = (
 AdditionalQuery? &amp;
 Annotation* &amp;
 ConcurrencyLevel? &amp;
 Constraint* &amp;
 Debug? &amp;
 DefaultSuggestionSource? &amp;
 Forest* &amp;
 Grammar? &amp;
 Operator* &amp;
 PageLength? &amp;
 QualityWeight? &amp;
 ReturnConstraints? &amp;
 ReturnFacets? &amp;
 ReturnMetrics? &amp;
 ReturnQtext? &amp;
 ReturnQuery? &amp;
 ReturnResults? &amp;
 ReturnSimilar? &amp;
 SearchOption* &amp;
 SearchableExpression? &amp;
 SortOrder* &amp;
 SuggestionSource* &amp;
 Term? &amp;
 TransformResults?
)</pre>
<p>The start line indicates that, within this namespace, there are two possible root elements, either &lt;options&gt; or &lt;response&gt; (not shown here). An instance with a root of, say search:annotation is by definition not valid. Try representing that in XML Schema.</p>
<p>The definition of OptionsType allows a wide variety of child elements, some zeroOrMore times, other optional (zero or one occurrence), with no ordering restrictions at all between anything. XML Schema can&#8217;t represent this either. James Clark&#8217;s trang tool converts Relax NG into XML Schema, and has to approximate this as an xsd:choice with maxOccurs=&#8221;unbounded&#8221;, thus the elements that can only occur once are not schema-enforced. Thus the Relax NG description of the content model, besides being more readable, actually contains more information than the closest XML Schema. So particularly for XML vocabularies that are optimized for human use, Relax NG is a good choice for schema development.</p>
<p><strong>Out of line validation.</strong> So if XML Schema doesn&#8217;t fully describe the &lt;options&gt; node, how can authors be sure they have constructed one correctly? Take a step back: even if XML Schema could fully represent the content model, for performance reasons you wouldn&#8217;t want to repeatedly validate the node on every query. The options node tends to change infrequently, mainly during a development cycle. Both of these problems can be solved with out-of-line validation: a separate function call search:check-options().</p>
<p>Inside this function you&#8217;ll find a validate expression that will make as much use of the Schema as it can, but also much more. The full power of XQuery can be leveraged against the proposed &lt;options&gt; node to check for errors or inconsistencies, and provide helpful feedback to the developer. Since it happens out-of-line, these checks can take substantially longer than actually handing the query based on them. The code can go as in-depth as it needs to without performance worries. This is a useful technique in many situations. One potential shortfall is that people might forget to call your validation function, but in practice this hasn&#8217;t been too much trouble.</p>
<p><strong>Higher-order functions</strong>. The predecessor to Search API had a problem that it was so popular that users would modify it to suit their unique requirements, which lead to dozens of minor variations floating around in the wild. Different users have different needs and expectations for the library, and making a one-size-fits-all solution is perhaps not possible. One way to relieve this kind of feature pressure is to provide enough extension hotspots to allow all the kinds of tweaks that users will want, preserving the mainline code. This involves prediction, which is difficult (especially about the future). But a good design makes this possible.</p>
<p>Look inside the built-app and you will find a number of function pointers, implemented as a new datatype xdmp:function. XQuery 1.1 will have a more robust mechanism for this, but it might be a while before this is widespread. By modifying one file, changing a pointer to different code, nearly every aspect of the application can be adjusted.</p>
<p>Similarly, a few hotspots in the Search API can be customized, to hook in different kinds of parsers or snippet-generators. This powerful technique can take your own apps to the next level.</p>
<p>-m</p>
]]></content:encoded>
			<wfw:commentRss>http://dubinko.info/blog/2009/10/21/application-builder-behind-the-scenes/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>XForms 1.1 is out</title>
		<link>http://dubinko.info/blog/2009/10/21/xforms-1-1-is-out/</link>
		<comments>http://dubinko.info/blog/2009/10/21/xforms-1-1-is-out/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 07:01:22 +0000</pubDate>
		<dc:creator>mdubinko</dc:creator>
				<category><![CDATA[announcement]]></category>
		<category><![CDATA[standards]]></category>
		<category><![CDATA[XForms]]></category>
		<category><![CDATA[recommendation]]></category>
		<category><![CDATA[w3c]]></category>
		<category><![CDATA[webdev]]></category>
		<category><![CDATA[xforms11]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://dubinko.info/blog/?p=676</guid>
		<description><![CDATA[XForms 1.1 is now a full W3C Recommendation. Compared to version 1.0, which went live a bit more than 6 years ago, version 1.1 offers lots of road-tested tools that make development easier and more powerful, including new datatypes and XPath functions, a significantly more powerful submission subsystem, and a more flexible event model. And [...]]]></description>
			<content:encoded><![CDATA[<p>XForms 1.1 is now a full W3C <a href="http://www.w3.org/TR/2009/REC-xforms-20091020/">Recommendation</a>. Compared to version 1.0, which went live a bit more than 6 years ago, version 1.1 offers lots of road-tested tools that make development easier and more powerful, including new datatypes and XPath functions, a significantly more powerful submission subsystem, and a more flexible event model.</p>
<p>And <a href="http://sourceforge.net/projects/xsltforms/">XSLTForms</a> already supports almost all of the new goodies. -m</p>
]]></content:encoded>
			<wfw:commentRss>http://dubinko.info/blog/2009/10/21/xforms-1-1-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XForms Developer Zone</title>
		<link>http://dubinko.info/blog/2009/09/22/xforms-developer-zone/</link>
		<comments>http://dubinko.info/blog/2009/09/22/xforms-developer-zone/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 06:14:09 +0000</pubDate>
		<dc:creator>mdubinko</dc:creator>
				<category><![CDATA[announcement]]></category>
		<category><![CDATA[web20]]></category>
		<category><![CDATA[XForms]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[site]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[xrx]]></category>

		<guid isPermaLink="false">http://dubinko.info/blog/?p=647</guid>
		<description><![CDATA[Another XForms site launched this week. This one seems pretty close to what I would like XForms Institute to become, if I had an extra 10 hours per week. -m]]></description>
			<content:encoded><![CDATA[<p>Another XForms <a href="http://xformsdz.org/">site</a> launched this week. This one seems pretty close to what I would like <a title="XForms Institute" href="http://xformsinstitute.com">XForms Institute</a> to become, if I had an extra 10 hours per week. -m</p>
]]></content:encoded>
			<wfw:commentRss>http://dubinko.info/blog/2009/09/22/xforms-developer-zone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XForms Institute moved to SVN</title>
		<link>http://dubinko.info/blog/2009/05/30/xforms-institute-moved-to-svn/</link>
		<comments>http://dubinko.info/blog/2009/05/30/xforms-institute-moved-to-svn/#comments</comments>
		<pubDate>Sat, 30 May 2009 18:02:07 +0000</pubDate>
		<dc:creator>mdubinko</dc:creator>
				<category><![CDATA[announcement]]></category>
		<category><![CDATA[XForms]]></category>
		<category><![CDATA[institute]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://dubinko.info/blog/?p=545</guid>
		<description><![CDATA[About a week ago I moved XForms Institute over to Subversion. Now the entire site is under version control, with a local copy I can edit. Publishing is as easy as logging in and running the command &#8216;svn up&#8217;. Honestly, I should have done this long ago. And any future sites I work on will [...]]]></description>
			<content:encoded><![CDATA[<p>About a week ago I moved <a title="XForms Institute" href="http://xformsinstitute.com">XForms Institute</a> over to Subversion. Now the entire site is under version control, with a local copy I can edit. Publishing is as easy as logging in and running the command &#8216;svn up&#8217;. Honestly, I should have done this long ago. And any future sites I work on will use this approach too&#8211;it&#8217;s fantastic.</p>
<p>If you notice any glitches, let me know. -m</p>
]]></content:encoded>
			<wfw:commentRss>http://dubinko.info/blog/2009/05/30/xforms-institute-moved-to-svn/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>XForms validator: disabling Google ads, no more blank pages</title>
		<link>http://dubinko.info/blog/2009/04/26/xforms-validator-disabling-google-ads-no-more-blank-pages/</link>
		<comments>http://dubinko.info/blog/2009/04/26/xforms-validator-disabling-google-ads-no-more-blank-pages/#comments</comments>
		<pubDate>Sun, 26 Apr 2009 18:23:19 +0000</pubDate>
		<dc:creator>mdubinko</dc:creator>
				<category><![CDATA[announcement]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[standards]]></category>
		<category><![CDATA[XForms]]></category>
		<category><![CDATA[validator]]></category>
		<category><![CDATA[xfv]]></category>

		<guid isPermaLink="false">http://dubinko.info/blog/?p=506</guid>
		<description><![CDATA[Thanks to those who wrote in with bug reports about the XForms Validator: something changed recently and made the inserted Google Ads script confuse browsers, resulting in a blank page where you&#8217;d expect results. I&#8217;ve turned off the response-page ads, which were only getting in the way, and the problem seems to have vanished. Carry [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks to those who wrote in with bug reports about the <a href="http://xformsinstitute.com/validator/">XForms Validator</a>: something changed recently and made the inserted Google Ads script confuse browsers, resulting in a blank page where you&#8217;d expect results. I&#8217;ve turned off the response-page ads, which were only getting in the way, and the problem seems to have vanished. Carry on. :-) -m</p>
]]></content:encoded>
			<wfw:commentRss>http://dubinko.info/blog/2009/04/26/xforms-validator-disabling-google-ads-no-more-blank-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XSLTForms beta</title>
		<link>http://dubinko.info/blog/2009/02/04/xsltforms-beta/</link>
		<comments>http://dubinko.info/blog/2009/02/04/xsltforms-beta/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 07:54:35 +0000</pubDate>
		<dc:creator>mdubinko</dc:creator>
				<category><![CDATA[announcement]]></category>
		<category><![CDATA[browsers]]></category>
		<category><![CDATA[XForms]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[schema]]></category>
		<category><![CDATA[xrx]]></category>
		<category><![CDATA[XSLT]]></category>
		<category><![CDATA[xsltforms]]></category>

		<guid isPermaLink="false">http://dubinko.info/blog/?p=424</guid>
		<description><![CDATA[XSLTForms, the cross-browser XForms engine (written about previously) that makes ingenious use of built-in XSLT processing, reached an important milestone today, with a beta release. Tons of bug fixes and additional support for CSS and Schema. If you&#8217;re thinking about getting involved with XForms and are looking for something small and approachable, give it a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://sourceforge.net/projects/xsltforms/">XSLTForms</a>, the cross-browser XForms engine (written about <a href="http://dubinko.info/blog/2008/12/19/xsltforms-looks-promising/">previously</a>) that makes ingenious use of built-in XSLT processing, reached an important milestone today, with a beta release. Tons of bug fixes and additional support for CSS and Schema.</p>
<p>If you&#8217;re thinking about getting involved with XForms and are looking for something small and approachable, give it a look. -m</p>
]]></content:encoded>
			<wfw:commentRss>http://dubinko.info/blog/2009/02/04/xsltforms-beta/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>XForms for HTML</title>
		<link>http://dubinko.info/blog/2008/12/22/xforms-for-html/</link>
		<comments>http://dubinko.info/blog/2008/12/22/xforms-for-html/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 08:20:10 +0000</pubDate>
		<dc:creator>mdubinko</dc:creator>
				<category><![CDATA[announcement]]></category>
		<category><![CDATA[standards]]></category>
		<category><![CDATA[XForms]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[w3c]]></category>

		<guid isPermaLink="false">http://dubinko.info/blog/?p=407</guid>
		<description><![CDATA[I&#8217;ve heard not a peep about this before, but here it is: XForms for HTML. Let&#8217;s read this together. Feel free to drop any comments or observations below. -m]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve heard not a peep about this before, but here it is: <a href="http://www.w3.org/TR/2008/WD-XForms-for-HTML-20081219/">XForms for HTML</a>. Let&#8217;s read this together. Feel free to drop any comments or observations below. -m</p>
]]></content:encoded>
			<wfw:commentRss>http://dubinko.info/blog/2008/12/22/xforms-for-html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XSLTForms looks promising</title>
		<link>http://dubinko.info/blog/2008/12/19/xsltforms-looks-promising/</link>
		<comments>http://dubinko.info/blog/2008/12/19/xsltforms-looks-promising/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 07:42:36 +0000</pubDate>
		<dc:creator>mdubinko</dc:creator>
				<category><![CDATA[browsers]]></category>
		<category><![CDATA[intentional web]]></category>
		<category><![CDATA[XForms]]></category>
		<category><![CDATA[ajaxforms]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[ubiquity]]></category>
		<category><![CDATA[xsltforms]]></category>

		<guid isPermaLink="false">http://dubinko.info/blog/?p=405</guid>
		<description><![CDATA[Implementing client-side forms libraries is, and has been, all the rage. I&#8217;ve seen Mozquito Factory do amazing things in Netscape 4, Technical Pursuits TIBET on the perpetual verge of release, UGO, and others. In a more recent time scale, Ubiquity XForms impresses me and many others, and it has the right combination of funding and [...]]]></description>
			<content:encoded><![CDATA[<p>Implementing client-side forms libraries is, and has been, all the rage. I&#8217;ve seen Mozquito Factory do amazing things in Netscape 4, Technical Pursuits TIBET on the perpetual verge of release, UGO, and others. In a more recent time scale, Ubiquity XForms <a href="http://code.google.com/p/ubiquity-xforms/">impresses</a> me and many others, and it has the right combination of funding and willing developers.</p>
<p>From a comment on my recent posting about Ubiquity XForms, I was pleased to learn about <a href="http://www.agencexml.com/xsltforms/">XSLTforms</a>, a rebirth of AjaxForms, which I thought well of two years ago until its developer mysteriously left the project. But Software Libre lives on, and a new developer has taken over, this time using client-side XSLT instead of server-side Java to do the first pass of processing. Given the strong foundation, the project has come a long way in a short time, and already runs against a wide array of non-trivial examples. Check it out.</p>
<p>I&#8217;d like to hear what others think about this project. -m</p>
]]></content:encoded>
			<wfw:commentRss>http://dubinko.info/blog/2008/12/19/xsltforms-looks-promising/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XML 2008 liveblog: Ubiquity XForms</title>
		<link>http://dubinko.info/blog/2008/12/08/xml-2008-liveblog-ubiquity-xforms/</link>
		<comments>http://dubinko.info/blog/2008/12/08/xml-2008-liveblog-ubiquity-xforms/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 17:01:30 +0000</pubDate>
		<dc:creator>mdubinko</dc:creator>
				<category><![CDATA[browsers]]></category>
		<category><![CDATA[intentional web]]></category>
		<category><![CDATA[XForms]]></category>
		<category><![CDATA[xml]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[birbeck]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[xml2008]]></category>
		<category><![CDATA[yui]]></category>

		<guid isPermaLink="false">http://dubinko.info/blog/?p=393</guid>
		<description><![CDATA[I will talk about one or more sessions from XML 2008 here. Mark Birbeck of Web Backplane talking about Ubiquity XForms. Browsers are slow to adopt new standards. Ajax libraries have attempted to work around this. Lots of experimentation which is both good and bad, but at least has legitimzed extensions to browsers. JavaScript is [...]]]></description>
			<content:encoded><![CDATA[<p>I will talk about one or more sessions from <a href="http://www.idealliance.org/xml2008/schedule.asp">XML 2008</a> here.</p>
<p>Mark Birbeck of Web Backplane talking <a href="http://code.google.com/p/ubiquity-xforms/">about</a> Ubiquity XForms.</p>
<p>Browsers are slow to adopt new standards. Ajax libraries have attempted to work around this. Lots of experimentation which is both good and bad, but at least has legitimzed extensions to browsers. JavaScript is the assembly language of the web.</p>
<p>Ubiquity XForms is part of a library, which wil also include RDFa and SMIL. Initially based on YUI, but in theory sould be adaptable to other libraries like jQuery.</p>
<p>Declarative: tools for creation and validation. Easier to read. Ajax libraries are approaching the level of being their own language anyway, so might as well take advantage of a standard.</p>
<p>Example: setting the &#8220;inner value&#8221; of a span: <code>&lt;span value="now()"&gt;&lt;/span&gt;</code>.</p>
<p>Script can do this easily: <code>onclick="this.innerHTML = Date().toLocaleString();"</code> But crosses the line from semantics to specific behavior. The previous one is exactly how xforms:output works.</p>
<p>Another exapmple: tooltips. Breaks down to onmouseover, onmouseout event handlers, show and hide. A jQuery-like approach can search the document for all <code>tooltip</code> elements and add the needed handlers, avoiding explicit behavioral code. This is the essence of Ubiquity XForms (and in fact XForms itself).</p>
<p>Patterns like these compose under XForms. A button (xf:trigger) or any form control can easily have a tooltip (xf:hint). These are all regular elements, stylable with CSS, accesible via DOM, and so forth. Specific events (like xforms-hint) fire for specific events, and a spreadsheet-like engine can update interdependencies.</p>
<p>Question: Is this client-side? A: Yes, all running within Firefox. The entire presentation is one XForms document.</p>
<p>Demo: a range control with class=&#8221;geolocation&#8221; that displays as a map w/ Google Maps integration. The Ubiquity XForms library contains many such extensibility points.</p>
<p>Summary: Why? Simple, declarative. Not a programming language. Speeds up development. Validatable. <a href="http://ubiquity.googlecode.com">Link</a>: ubiquity.googlecode.com.</p>
<p>Q&amp;A: Rich text? Not yet, but not hard (especially with YUI). Formally XForms compliant? Very nearly 1.1 conforming.</p>
<p>-m</p>
]]></content:encoded>
			<wfw:commentRss>http://dubinko.info/blog/2008/12/08/xml-2008-liveblog-ubiquity-xforms/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>XiX: Details about XForms in XQuery</title>
		<link>http://dubinko.info/blog/2008/11/04/xix-details-about-xforms-in-xquery/</link>
		<comments>http://dubinko.info/blog/2008/11/04/xix-details-about-xforms-in-xquery/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 07:05:20 +0000</pubDate>
		<dc:creator>mdubinko</dc:creator>
				<category><![CDATA[XForms]]></category>
		<category><![CDATA[xpath]]></category>
		<category><![CDATA[XQuery]]></category>
		<category><![CDATA[calculate]]></category>
		<category><![CDATA[functional]]></category>
		<category><![CDATA[model]]></category>
		<category><![CDATA[xix]]></category>
		<category><![CDATA[xquery]]></category>

		<guid isPermaLink="false">http://dubinko.info/blog/?p=380</guid>
		<description><![CDATA[I was asked offline for more details about what I have in mind around XiX. Take a simple piece of XML, like this: &#60;root&#62;&#60;a&#62;3&#60;/a&#62;&#60;b&#62;4&#60;/b&#62;&#60;total/&#62;&#60;/root&#62;. An XForms Model can be applied, in an out-of-line fashion, to that instance. This is done through a bind element, with XPath to identify the nodes in question, plus other &#8220;model [...]]]></description>
			<content:encoded><![CDATA[<p>I was asked offline for more details about what I have in mind around XiX.</p>
<p>Take a simple piece of XML, like this: <code>&lt;root&gt;&lt;a&gt;3&lt;/a&gt;&lt;b&gt;4&lt;/b&gt;&lt;total/&gt;&lt;/root&gt;</code>.</p>
<p>An XForms Model can be applied, in an out-of-line fashion, to that instance. This is done through a <code>bind</code> element, with XPath to identify the nodes in question, plus other &#8220;model item properties&#8221; to annotate the instance. The <code>calculate</code> property is a good one: <code>&lt;bind nodeset="total" calculate="../a + ../b"/&gt;</code>. When called upon to refresh the instance, as you would expect, the result contains the node <code>&lt;total&gt;7&lt;/total&gt;</code>.</p>
<p>Like lots of algorithms, though, XForms is defined in a thoroughly procedural manner. Functional programming has a stricture against assignment operators, like setting the value &#8220;7&#8243; into the calculated node above. So the challenge is coming up with an implementation that works within these bounds. For example, perhaps a function that takes an original instance as input, and returns a newly-created updated instance. Simple enough for the example here, but in more complex cases with different and interacting model item properties, regenerating the entire instance frequently has performance penalties.</p>
<p>So, I&#8217;m trying to find the right expression of the XForms Model in a functional guise. (As <a href="http://rdfa.info/wiki/Functional_RDFa">with</a> RDFa). I&#8217;m curious about what anyone else has come up with in this area. -m</p>
]]></content:encoded>
			<wfw:commentRss>http://dubinko.info/blog/2008/11/04/xix-details-about-xforms-in-xquery/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

