User Profile

Collapse

Profile Sidebar

Collapse
senglory
senglory
Last Activity: Jun 16 '10, 05:42 PM
Joined: Sep 19 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • senglory
    replied to Why do I get "2" and "2-2" in output?
    in XML
    Another option is

    Code:
    w:p[count(ancestor::w:tbl) = 1]
    See more | Go to post

    Leave a comment:


  • senglory
    started a topic Why do I get "2" and "2-2" in output?
    in XML

    Why do I get "2" and "2-2" in output?

    XSL:

    Code:
    <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)]]">
    ...
    See more | Go to post

  • senglory
    started a topic How does preceding-sibling::* work?
    in XML

    How does preceding-sibling::* work?

    My XSL:
    Code:
    <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>
    ...
    See more | Go to post

  • senglory
    started a topic How to apply template for the first w:p in w:tbl?
    in XML

    How to apply template for the first w:p in w:tbl?

    Regardless of the nesting level in that particular w:tbl. For example:

    Code:
    <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>
    ...
    See more | Go to post

  • It has nothing common with Sql connections, it just reads dat from XML file and I'm 100% sure that there's no problem with this method invoked locally. I tested this.
    See more | Go to post

    Leave a comment:


  • WCF + DataTable in OperationContract = Exception on client side

    My WCF:
    Code:
        [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
    ...
    See more | Go to post
    Last edited by tlhintoq; Dec 3 '09, 08:01 PM. Reason: Formatted the error text for easier reading

  • senglory
    started a topic XMlDeserizlizing issue
    in .NET

    XMlDeserizlizing issue

    XML:




    C# code:

    Code:
    [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>
    ...
    See more | Go to post

  • senglory
    started a topic Xpath to get the nearest preceding sibling - howto?
    in XML

    Xpath to get the nearest preceding sibling - howto?

    I need to write a Xpath for getting the closest sibling to the current node. It should return exactly 1 element. How to write it?
    See more | Go to post

  • senglory
    replied to Why do I get <w:p> w/o attributes?
    in XML
    Thank you for pointing me. Fortunately, I found the right solution:

    <xsl:copy>
    <xsl:copy-of select="@*"/>
    <w:smartTag w:uri="http://schemas.openxml formats.org/2006/smarttags" w:element="live techdocs">
    <w:smartTagPr >


    This is the right way to copy node for me
    See more | Go to post

    Leave a comment:


  • senglory
    replied to Why do I get <w:p> w/o attributes?
    in XML
    Thanks, but LIBXSLT gives me the following error while executing XSL:

    runtime error: file 0.xsl line 29 element copy-of
    Attribute nodes must be added before any child nodes to an element.

    Moreover, the following code produces <w:p> w/o attributes as well:
    Code:
    set xmlDocument= CreateObject("MSXML2.FreeThreadedDomDocument.3.0" )
    xmlDocument.async = false
    xmlDocument.load "I.xml"
    ...
    See more | Go to post
    Last edited by Dormilich; Nov 4 '09, 07:03 PM. Reason: Please use [code] tags when posting code

    Leave a comment:


  • senglory
    started a topic Why do I get <w:p> w/o attributes?
    in XML

    Why do I get <w:p> w/o attributes?

    XML:

    Code:
    <?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"
    ...
    See more | Go to post
No activity results to display
Show More
Working...