From: Adam R. <ada...@de...> - 2007-03-20 12:18:38
|
Something like this perhaps - declare variable $doc { doc("http://example.com/template.xml") }; declare variable $xslt { doc("http://example.com/transform.xslt") }; let $data := <rootElement> { for $x in $doc//testelement return $x } </rootElement> return transform:transform($doc, $xslt, ()) Thanks Adam. On Tue, 2007-03-20 at 17:09 +0530, Anoop K Achuthan wrote: > Hi, > I have an XQUERY document to generate some output. > > For example : > ------------------------------------------------ > declare variable $doc { doc("http://example.com/template.xml") }; > > <rootElement> > { > for $x in $doc//testelement > return $x > } > </rootElement> > -------------------------------------------------- > > I want to apply xsl transformation to the output generated by the above > XQUERY ( The node to which I want to > apply transformation is <rootElement>). Is it possible to assign the > output of the XQUERY to a variable and use transform:transform(or > transform:stream-transform) in the same document to apply the transformtion? > > I understood that if we have an xml source, we can use doc function to > get the node and apply a transformation using transform:transform. > But I don't have a seperate XML source document. I want to do the > transformation, something like using an XSLT response filter. > > Thanks, > Anoop > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open -- Adam Retter Principal Developer Devon Portal Project Room 310 County Hall Topsham Road Exeter EX2 4QD t: 01392 38 3683 f: 01392 38 2966 e: ada...@de... w: www.devonline.gov.uk |