Hello!
Another solution with a bit more factoring:
import module namespace demoboards= "http://www.nxp.com/demoboards";
*declare function local:name-of-board( $board ) {
$board/DemoboardInformation/Name/text() } ;
*let $results := demoboards:filterByName(demoboards:getDemoboards(), 'adc0')
return
*<html "http://www.w3.org/1999/xhtml">
* <head>
<title>Demoboards</title>
</head>
<body>
{
for $result in $results
return
*<div>{ local:name-of-board( $result) }</div>
* }
</body>
</html>
On 30-06-2011 12:59, Robby Pelssers wrote:
Hi Ivan,
I got 2 responses on the xslt mailing list which confirmed what you
replied. Although there seems to be a difference between how XSLT and
XQUERY work.
http://www.biglist.com/lists/lists.mulberrytech.com/xsl-list/archives/201106/msg00125.html
Using below approach I can nicely workaround my issue but I do need to
do some more typing ;-)
import module namespace demoboards= "http://www.nxp.com/demoboards";
declare namespace xhtml = "http://www.w3.org/1999/xhtml";
let $results := demoboards:filterByName(demoboards:getDemoboards(),
'adc0')
return
<xhtml:html>
<xhtml:head>
<xhtml:title>Demoboards</xhtml:title>
</xhtml:head>
<xhtml:body>
{
for $result in $results
return
<xhtml:div>{$result/DemoboardInformation/Name/text()}</xhtml:div>
}
</xhtml:body>
</xhtml:html>
--
Ruvim
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion