Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Problem with Positional Grouping from MSXML

From: Yves Forkl <Y.Forkl@------>
To:
Date: 2/2/2007 3:51:00 PM
Andy Carr1 wrote:



If my xml fragment contained a table element  how could that be handled as

it isn't in the w:p group:- it's on the same level as w:p 

It might suffice to extend Darkman's first template in this way:



<xsl:template match="ns0:Body">
  <Body>
    <xsl:for-each-group
        select="w:p|w:tbl"
        group-starting-with="w:p[my:p-style(.) eq 'BodyHeading']">
      <Section>
        <xsl:apply-templates select="current-group()"/>
      </Section>
    </xsl:for-each-group>
  </Body>
</xsl:template>

and to add another template for the table:



<xsl:template match="w:tbl">
  <Table>
      <xsl:apply-templates/>
  </Table>
</xsl:template>

But you probably need more templates for the table content.



  Yves


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent