Systems Engineer
Tata Consultancy Services
Cell:- +91-9883389968
Mailto: abhishek5...@tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
To: General MarkLogic Developer Discussion <general@developer.marklogic.com>
From: Geert Josten <geert.jos...@dayon.nl>
Sent by: general-boun...@developer.marklogic.com
Date: 11/13/2011 11:39PM
Subject: Re: [MarkLogic Dev General] POST value to named variable_______________________________________________Hi Abhishek,
Yes, it shouldn’t be difficult. Add a content-type header specifying this mime-type: application/x-www-form-urlencoded
And pass the value in as a form encoded body: <data>a=myavalue</data> (make sure to url-encode the values)
Kind regards,
Geert
Van: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] Namens Abhishek53 S
Verzonden: zondag 13 november 2011 17:19
Aan: General MarkLogic Developer Discussion
Onderwerp: [MarkLogic Dev General] POST value to named variable
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 docxHi
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
- 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 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 && null == c.length && null != a && 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 > bw + bsl && x + aw - ah / 2 - cw >= bsl )
{ c.style.left = x + aw - ah / 2 - cw; }
else
{ c.style.left = x + ah / 2; }
if (y + ch + ah / 2 > bh + bst && y + ah / 2 - ch >= 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 && 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 > 0) && (parseInt(vers) >= 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; margin-left: 20.25pt; "> </p><p class="Normal-P Normal-H" style="direction:ltr;unicode-bidi:normal;"> <span class="-H" style=" font-family:Arial; font-weight:bold; font-size:10pt; color:gray;">Treasurer’s Summary</span></p><p class="Normal-P Normal-H" style="direction:ltr;unicode-bidi:normal;"> <span class="-H" style=" font-family:Arial; font-size:10pt; ">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=" font-family:Arial; font-size:10pt; ">Net Assets</span></p><p class="Normal-P Normal-H" style="direction:ltr;unicode-bidi:normal;"> <span class="-H" style=" font-family:Arial; font-size:10pt; ">Credit Lines</span></p><p class="Normal-P Normal-H" style="direction:ltr;unicode-bidi:normal;"> <span class="-H" style=" font-family:Arial; font-size:10pt; ">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=" font-family:Arial; font-size:10pt; ">Affiliated Cash Sweep – Yield Comparison</span></p><p class="Normal-P Normal-H" style="direction:ltr;unicode-bidi:normal;"> <span class="-H" style=" font-family:Arial; font-size:10pt; ">Net Flows</span></p><p class="Normal-P Normal-H" style="direction:ltr;unicode-bidi:normal;"> <span class="-H" style=" font-family:Arial; font-size:10pt; ">Ratio of Expenses</span></p><p class="Normal-P Normal-H" style="direction:ltr;unicode-bidi:normal;"> <span class="-H" style=" font-family:Arial; font-size:10pt; ">Fund Actions for the Quarter</span></p><p class="Normal-P Normal-H" style="direction:ltr;unicode-bidi:normal;"> <span class="-H" style=" font-family:Arial; font-size:10pt; ">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
_______________________________________________ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general