From: Dan M. <dan...@gm...> - 2011-05-20 11:29:07
|
The following article is a good comparison of recursive copy functions in both XSLT and XQuery: http://en.wikipedia.org/wiki/Identity_transform This should help you get started with the concepts of recursive filters. There are also many examples of recursion in the XQuery Wikibook: http://en.wikibooks.org/wiki/XQuery/ Specifically you may want to read the "Filtering Nodes" examples: http://en.wikibooks.org/wiki/XQuery/Filtering_Nodes - Dan 2011/5/19 Василий Старцев <wst...@gm...> > hi! > > i try to transform document with xslt in recursive function like: > > declare function local:clean-document(node, xslt){ > (: transform node with xslt :) > > (: check transformation result :) > > (: if need do it again :) > local:clean-document(document, xslt) > > (: else return node :) > } > > and this transformation except with memory allocation error. > > i want to clearly understand: xq copy node in each call function? > > how to make recursive function to work with one node in each iteration? > > -- > С наилучшими пожеланиями > Василий Старцев > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Exist-development mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-development > > -- Dan McCreary Semantic Solutions Architect office: (952) 931-9198 cell: (612) 986-1552 |