Hi Folks

Is it possible to post value to a given xquery modules using http-post method in named variable.

For eg. 

Xquery module

/test.xqy

let $x := xdmp:get-request-field("a")
return
$x

From another xquery I want to post the value to test.xqy in the named variable "a". 

xdmp:http-post("http://localhost:8005/test.xqy",
     <options xmlns="xdmp:http">
       <authentication method="digest">
         <username>admin</username>
         <password>admin</password>
       </authentication>
       <data><!--post value to the variable a --></data>
     </options>)[2]

Thanks in advance
Abhishek Srivastav
Systems Engineer
Tata Consultancy Services
Cell:- +91-9883389968
Mailto: abhishek5...@tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________

-----general-boun...@developer.marklogic.com wrote: -----

To: <general@developer.marklogic.com>
From: "Singh, Gurbeer" <gurbeer.si...@morganstanley.com>
Sent by: general-boun...@developer.marklogic.com
Date: 11/12/2011 04:53AM
Subject: [MarkLogic Dev General] layout & format issue with docx

Hi

 

I am facing one issue with docx conversion. It’s a format issue. If I am submitting docx with certain layout it’s not maintained in XHTML

 

 

Original docx contains some format , but XHTML generates it as normal text . Some time its main ting but some time it’s not working, like below is the case

 

For eg.

 

Original document contains

 

Treasurer’s Summary

  1. The Treasurer’s Summary is prepared by State Street Fund Administration and reviewed by MS Fund Administration for inclusion in the Board materials.  Items Required are as follows:
    1. Net Assets
    2. Credit Lines
    3. Dividends Declared for both Open-end and Closed-end Funds
    4. Affiliated Cash Sweep – Yield Comparison
    5. Net Flows
    6. Ratio of Expenses
    7. Fund Actions for the Quarter
    8. NAV Errors for the Quarter

 

 

 

XHTML generated is like this :

 

 

Treasurer’s Summary

 

The Treasurer’s Summary is prepared by State Street Fund Administration and reviewed by MS Fund Administration for inclusion in the Board materials. Items Required are as follows:

 

Net Assets

 

Credit Lines

 

Dividends Declared for both Open-end and Closed-end Funds

 

Affiliated Cash Sweep – Yield Comparison

 

Net Flows

 

Ratio of Expenses

 

Fund Actions for the Quarter

 

NAV Errors for the Quarter

 

 

 

XHTML generated

 

 

 

<html version="-//W3C//DTD XHTML 1.1//EN" xmlns="http://www.w3.org/1999/xhtml">

  <head>

   <style id="dynCom" type="text/css"></style>

    <script type="text/_javascript_" language="_javascript_">

function msoCommentShow(anchor_id, com_id)

{

    if(msoBrowserCheck())

        {

        c = document.all(com_id);

        a = document.all(anchor_id);

        if (null != c &amp;&amp; null == c.length &amp;&amp; null != a &amp;&amp; null == a.length)

            {

            var cw = c.offsetWidth;

            var ch = c.offsetHeight;

            var aw = a.offsetWidth;

            var ah = a.offsetHeight;

            var x  = a.offsetLeft;

            var y  = a.offsetTop;

            var el = a;

            while (el.tagName != "BODY")

                {

                el = el.offsetParent;

                x = x + el.offsetLeft;

                y = y + el.offsetTop;

                }

            var bw = document.body.clientWidth;

            var bh = document.body.clientHeight;

            var bsl = document.body.scrollLeft;

            var bst = document.body.scrollTop;

            if (x + cw + ah / 2 &gt; bw + bsl &amp;&amp; x + aw - ah / 2 - cw &gt;= bsl )

                { c.style.left = x + aw - ah / 2 - cw; }

            else

                { c.style.left = x + ah / 2; }

            if (y + ch + ah / 2 &gt; bh + bst &amp;&amp; y + ah / 2 - ch &gt;= bst )

                { c.style.top = y + ah / 2 - ch; }

            else

                { c.style.top = y + ah / 2; }

            c.style.visibility = "visible";

}    }    }

function msoCommentHide(com_id)

{

    if(msoBrowserCheck())

        {

        c = document.all(com_id);

        if (null != c &amp;&amp; null == c.length)

        {

        c.style.visibility = "hidden";

        c.style.left = -1000;

        c.style.top = -1000;

        } }

}

function msoBrowserCheck()

{

    ms = navigator.appVersion.indexOf("MSIE");

    vers = navigator.appVersion.substring(ms + 5, ms + 6);

    ie4 = (ms &gt; 0) &amp;&amp; (parseInt(vers) &gt;= 4);

    return ie4;

}

if (msoBrowserCheck())

{

    document.styleSheets.dynCom.addRule(".msocomanchor","background: infobackground");

    document.styleSheets.dynCom.addRule(".msocomoff","display: none");

    document.styleSheets.dynCom.addRule(".msocomtxt","visibility: hidden");

    document.styleSheets.dynCom.addRule(".msocomtxt","position: absolute");

    document.styleSheets.dynCom.addRule(".msocomtxt","top: -1000");

    document.styleSheets.dynCom.addRule(".msocomtxt","left: -1000");

    document.styleSheets.dynCom.addRule(".msocomtxt","width: 33%");

    document.styleSheets.dynCom.addRule(".msocomtxt","background: infobackground");

    document.styleSheets.dynCom.addRule(".msocomtxt","color: infotext");

    document.styleSheets.dynCom.addRule(".msocomtxt","border-top: 1pt solid threedlightshadow");

    document.styleSheets.dynCom.addRule(".msocomtxt","border-right: 2pt solid threedshadow");

    document.styleSheets.dynCom.addRule(".msocomtxt","border-bottom: 2pt solid threedshadow");

    document.styleSheets.dynCom.addRule(".msocomtxt","border-left: 1pt solid threedlightshadow");

    document.styleSheets.dynCom.addRule(".msocomtxt","padding: 3pt 3pt 3pt 3pt");

    document.styleSheets.dynCom.addRule(".msocomtxt","z-index: 100");

}

    </script>

    <style>

            del {text-decoration:line-through;color:red;}

                ins {text-decoration:none;}

        

        </style>

  </head>

  <body style=""><p class="Normal-P Normal-H" style="direction:ltr;unicode-bidi:normal;&#10;        margin-left:&#10;      20.25pt;&#10;            ">  </p><p class="Normal-P Normal-H" style="direction:ltr;unicode-bidi:normal;"> <span class="-H" style="&#10;    font-family:Arial;&#10;  font-weight:bold;&#10;    font-size:10pt;&#10;  color:gray;">Treasurer’s Summary</span></p><p class="Normal-P Normal-H" style="direction:ltr;unicode-bidi:normal;"> <span class="-H" style="&#10;    font-family:Arial;&#10;  &#10;    font-size:10pt;&#10;  ">The Treasurer’s Summary is prepared by State Street Fund Administration and reviewed by MS Fund Administration for inclusion in the Board materials.  Items Required are as follows:</span></p><p class="Normal-P Normal-H" style="direction:ltr;unicode-bidi:normal;"> <span class="-H" style="&#10;    font-family:Arial;&#10;  &#10;    font-size:10pt;&#10;  ">Net Assets</span></p><p class="Normal-P Normal-H" style="direction:ltr;unicode-bidi:normal;"> <span class="-H" style="&#10;    font-family:Arial;&#10;  &#10;    font-size:10pt;&#10;  ">Credit Lines</span></p><p class="Normal-P Normal-H" style="direction:ltr;unicode-bidi:normal;"> <span class="-H" style="&#10;    font-family:Arial;&#10;  &#10;    font-size:10pt;&#10;  ">Dividends Declared for both Open-end and Closed-end Funds</span></p><p class="Normal-P Normal-H" style="direction:ltr;unicode-bidi:normal;"> <span class="-H" style="&#10;    font-family:Arial;&#10;  &#10;    font-size:10pt;&#10;  ">Affiliated Cash Sweep – Yield Comparison</span></p><p class="Normal-P Normal-H" style="direction:ltr;unicode-bidi:normal;"> <span class="-H" style="&#10;    font-family:Arial;&#10;  &#10;    font-size:10pt;&#10;  ">Net Flows</span></p><p class="Normal-P Normal-H" style="direction:ltr;unicode-bidi:normal;"> <span class="-H" style="&#10;    font-family:Arial;&#10;  &#10;    font-size:10pt;&#10;  ">Ratio of Expenses</span></p><p class="Normal-P Normal-H" style="direction:ltr;unicode-bidi:normal;"> <span class="-H" style="&#10;    font-family:Arial;&#10;  &#10;    font-size:10pt;&#10;  ">Fund Actions for the Quarter</span></p><p class="Normal-P Normal-H" style="direction:ltr;unicode-bidi:normal;"> <span class="-H" style="&#10;    font-family:Arial;&#10;  &#10;    font-size:10pt;&#10;  ">NAV Errors for the Quarter</span></p><p class="Normal-P Normal-H" style="direction:ltr;unicode-bidi:normal;"> </p></body>

</html>

 

 


NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.
_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you


_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to