Code:
w:p[count(ancestor::w:tbl) = 1]
w:p[count(ancestor::w:tbl) = 1]
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" version="1.0">
<xsl:output method="xml" encoding="utf-8" indent="no"/>
<xsl:template match="w:p[ancestor::w:tbl[not(ancestor::w:tbl)]]">
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"
version="1.0">
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
<w:p w:rsidR="AAAAAA">
</w:p>
...
<w:tbl>
<w:tblPr>
<w:tblStyle w:val="TableGrid"/>
<w:tblW w:w="0" w:type="auto"/>
<w:tblLook w:val="04A0"/>
</w:tblPr>
[ServiceContract]
public interface IWorkbookService
{
[OperationContract]
DataTable GetDownpayments(KeyValuePair<int, string> sgm);
}
class WorkbookService : IWorkbookService
{
public DataTable GetDownpayments(KeyValuePair<int, string> sgm)
{
/// works fine, no exceptions here
[Serializable]
public class ActionClass
{
[XmlElement(Form=XmlSchemaForm.Unqualified)]
public string ActionType { get; set; }
[XmlElement(Form = XmlSchemaForm.Unqualified)]
public DateTime ActionDate { get; set; }
}
public class ActionModel : List<ActionClass>
set xmlDocument= CreateObject("MSXML2.FreeThreadedDomDocument.3.0" )
xmlDocument.async = false
xmlDocument.load "I.xml"
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <w:document xmlns:ve="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"
Leave a comment: