[MarkLogic Dev General] layout & format issue with docx
Pete Aven
Pete.Aven at marklogic.com
Mon Nov 14 07:48:03 PST 2011
Hi Gurbeer,
.docx to XHTML conversion is not currently provided with MarkLogic Server. The conversion pipelines that ship with the Server currently convert Office 2003 to XHTML, but not 2007/2010. This leads me to believe you have some custom code that you or someone else has written to perform this conversion.
For more help, I think you might want to try and share some of your code and what you're trying to do, so others may weigh in more effectively. And/Or if you're not the original author of the conversion code, try and contact who is, as they may be able to provide suggestions to you based on their familiarity with what has been written.
Hope this is useful,
Pete
From: general-bounces at developer.marklogic.com [mailto:general-bounces at developer.marklogic.com] On Behalf Of Singh, Gurbeer
Sent: Monday, November 14, 2011 10:40 AM
To: general at developer.marklogic.com
Subject: [MarkLogic Dev General] FW: layout & format issue with docx
Guys any suggestion for this.
~Gurbeer
From: general-bounces at developer.marklogic.com [mailto:general-bounces at developer.marklogic.com] On Behalf Of Singh, Gurbeer (Corporate and Banking Technology)
Sent: Friday, November 11, 2011 4:54 PM
To: general at developer.marklogic.com
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:
* 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.
________________________________
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20111114/b3a82c77/attachment-0001.html
More information about the General
mailing list