<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: XQuery Annoyances&#8230;</title>
	<atom:link href="http://dubinko.info/blog/2008/05/21/xquery-annoyances/feed/" rel="self" type="application/rss+xml" />
	<link>http://dubinko.info/blog/2008/05/21/xquery-annoyances/</link>
	<description>From an XML geek, a reader, a writer, a connector, a man of the people (says keep hope alive)</description>
	<lastBuildDate>Fri, 16 Jul 2010 15:31:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jeni Tennison</title>
		<link>http://dubinko.info/blog/2008/05/21/xquery-annoyances/comment-page-1/#comment-3992</link>
		<dc:creator>Jeni Tennison</dc:creator>
		<pubDate>Thu, 22 May 2008 10:51:25 +0000</pubDate>
		<guid isPermaLink="false">http://dubinko.info/blog/?p=264#comment-3992</guid>
		<description>Micah,

Congrats on your move to MarkLogic!

Bear in mind that if you use $book/bk:title/text() you&#039;ll run into problems with mixed content (that&#039;s why we don&#039;t do that in XSLT). If that&#039;s something you need to worry about, you probably want to pass the bk:title to a function that handles its content properly.

If bk:title doesn&#039;t have mixed content, or if you don&#039;t care about the mixed content, I&#039;d be inclined to use data($book/bk:title) or $book/bk:title/data(.) if you prefer, which returns an atomic value, rather than $book/bk:title/text(), which returns a sequence of nodes. But I think this is because of years of suffering with first-item semantics in XSLT.</description>
		<content:encoded><![CDATA[<p>Micah,</p>
<p>Congrats on your move to MarkLogic!</p>
<p>Bear in mind that if you use $book/bk:title/text() you&#8217;ll run into problems with mixed content (that&#8217;s why we don&#8217;t do that in XSLT). If that&#8217;s something you need to worry about, you probably want to pass the bk:title to a function that handles its content properly.</p>
<p>If bk:title doesn&#8217;t have mixed content, or if you don&#8217;t care about the mixed content, I&#8217;d be inclined to use data($book/bk:title) or $book/bk:title/data(.) if you prefer, which returns an atomic value, rather than $book/bk:title/text(), which returns a sequence of nodes. But I think this is because of years of suffering with first-item semantics in XSLT.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
