[xsl] Fwd: using xquey in XSLT transformation

Subject: [xsl] Fwd: using xquey in XSLT transformation
From: Michalmas <michalmas@xxxxxxxxx>
Date: Wed, 18 Mar 2009 23:27:15 +0100
Hello guys,

I have XQuery function. I need to use it in XSLT transformation. Is it possible?

d e c l a r e func t i on l o c a l : g e tPic ( $node as node ( )  ,
$ s ear chValue as x s : s t r i n g   )
 {
 i f ( empty ($ searchValue ) ) then
    $node/ pic-value

 e l s e
      l o c a l : r e f ($ node // de s c endant : :da ta-d e c l a r a t i o n
      [ name=$s earchValue [ 1 ] ] [ 1 ] ,
      $ searchValue [  p o s i t i o n ( )  !=  1 ] )
 };

Current Thread