[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Problem with Positional Grouping from MSXML

Subject: Re: Problem with Positional Grouping from MSXML
From: Yves Forkl <Y.Forkl@xxxxxx>
Date: Fri, 02 Feb 2007 16:50:29 +0100
Re:  Problem with Positional Grouping from MSXML
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.