Pavadaidurai A <[email protected]> writes:
> To add to the complexity, now we need to do certain data look ups in
> other xml’s as well. Is there an API which allows multiple nodes
> (xdmp:xslt-eval allows only one node) to be passed as parameter for
> the transformation? 

You can't pass more than one stylesheet, but you can pass additional
nodes as parameters:

  let $param := map:map()
  let $_     := map:put($param, "myparamname", $someNode)
  let $_     := mpa:put($parma, "othername", $otherExpression)
  return
    xdmp:xslt-eval($stylesheet, $document, $param)

Then in $stylesheet, insert

  <xsl:param name="myparamname"/>
  <xsl:param name="othername"/>

at the top level. When you need to query them, you can do so in XSLT
with those parameters.

Hope that helps.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh
Lead Engineer
MarkLogic Corporation
Phone: +1 512 761 6676
www.marklogic.com
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to