xml - How do i span fo:table-cell from one named column to another? -


I am changing this XML table to PDF using Xslt. Insertion / @notely it detects where the span is the beginning and Entry / No Namred knows where the span will end.

I have spread the cells before the numerical @ colname value, but this one stump help me please.

This is my source xml:

  & lt; Table & gt; & Lt; Title & gt; Table title & lt; / Title & gt; & Lt; Tgroup cols = "5" colsep = "1" rowsep = "1" & gt; & Lt; Colspec colname = "colspec0" colwidth = "557 *" /> & Lt; Colspec colname = "colspec2" colwidth = "823 *" /> & Lt; Colspec colname = "colspec1" colwidth = "702 *" /> & Lt; Colspec colname = "col1" colwidth = "4452 *" /> & Lt; Colspec colname = "col2" colwidth = "4646 *" /> & Lt; Thead & gt; & Lt; Line & gt; & Lt; Entry named = "Kolspec 0" Named = "Call 1" Wallis = "Medium" Align = "Center" & gt; & Lt; Paragraph & gt; This cell should be for the fourth column & lt; / Paragraph & gt; & Lt; / Entry & gt; & Lt; Entry valign = "middle" align = "center" & gt; & Lt; Paragraph & gt; Non span cell & lt; / Paragraph & gt; & Lt; / Entry & gt; & Lt; / Row & gt; & Lt; / Thead & gt; & Lt; Tbody & gt; ... & lt; / Tbody & gt; & Lt; / Tgroup & gt; & Lt; / Table & gt;  

This is a snippet of my XSLT:

  & lt; Xsl: template match = "colspec" & gt; & Lt; To: Table column & gt; & Lt; Xsl: attribute name = "column-number"> & Lt; Xsl: select value = "count (preceding-word :: colspec + 1)" & gt; & Lt; / Xsl: value-by> & Lt; / XSL: Specialty & gt; & Lt; Xsl: attribute name = "column-width"> & Lt; Xsl: Select Value = "$ mm-to-in" & gt; & Lt; / Xsl: value-of & gt; & Lt; / Xsl: attribute & gt; & Lt; XSL: implemented-templates / & gt; & Lt; For /: Table column & gt; & Lt; / XSL: Templates & gt; & Lt; Xsl: Template Match = "Entry" & gt; & Lt; Fo: table-cell blank-cells = "show" xls: use-attribute-set = "table.cal.padding" & gt; & Lt; Xsl: if test = "@ named and @nomede" & gt; & Lt; Xsl: attribute name = "number-column-spanning" & gt; & Lt; Xsl: Select the value = "(@named - @namest) + 1" /> & Lt; / XSL: Specialty & gt; & Lt; / XSL: If & gt; & Lt; To: Block & gt; & Lt; XSL: Select & gt; & Lt; Xsl: when test = "string-length (text ()) & amp; lt; 1" & gt; & Lt; XSL: implemented-templates / & gt; & Amp; # 160; & Lt; / XSL: When & gt; & Lt; XSL: otherwise & gt; & Lt; XSL: implemented-templates / & gt; & Lt; / XSL: otherwise & gt; & Lt; / XSL: Select & gt; & Lt; For /: Block & gt; & Lt; For /: Table Cell & gt;  


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -