You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by Jason Cupp <jc...@esri.com> on 2003/05/15 07:03:51 UTC

Creating a result-tree-fragment

How do you create a result-tree-fragment and return it from an extension
function. I'm making extension functions that interoperate with swi-prolog
and RDF... basically my extension functions query an RDF database, and the
results I want to be tree-fragments:

<xsl:variable name="solutions"
select="rdf:query('Resource','dc:title','Title')"/>

and solutions might contain:

<solutions>
	<solution>
		<term variable="Resource">http://blah</term>
		<term>dc:title</term>
		<term variable="Title">My Web Page</term>
...