[Home] [By Thread] [By Date] [Recent Entries]
I tried "<xsl:value-of select="current-group()/w:p/w:r/w:t"/>", but now
the <pageContent> node is empty.
----------------------------
RECEIVED_OUTPUT.XML
----------------------------
<?xml version='1.0' encoding='utf-8' ?>
<root
xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
<pageData>
<pageTitle>1. Web Page Title</pageTitle>
<pageContent/>
</pageData>
<pageData>
<pageTitle>2. Web Page Title</pageTitle>
<pageContent/>
</pageData>
</root>To me it seems like the only information I can get to from within the for-each-group instruction is the pageTitle. Thanks, Frank > -----Original Message----- > Date: Mon, 15 Jan 2007 11:55:30 -0000 > To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> > From: "Michael Kay" <mike@xxxxxxxxxxxx> > Subject: RE: Grouping Word 2007 content by customXml nodes > Message-ID: <00ec01c7389c$0e78cd40$6401a8c0@turtle> > > In this expression: > > <xsl:value-of select="//w:p/w:r/w:t"/> > > "//" selects from the root of the document. You want to select relative to > what's selected by xsl:for-each-group, that is current-group(). So try: > > <xsl:value-of select="current-group()/w:p/w:r/w:t"/>
|

Cart



