|
Subject: Re: [xsl] selecting w:p nodes based on w:pStyle attributes From: "Jon Gorman" <jonathan.gorman@xxxxxxxxx> Date: Mon, 27 Mar 2006 16:31:29 -0600 |
On 3/27/06, Terry Ofner <tofner@xxxxxxxxxxx> wrote:
> I am trying to select w:p nodes based on w:pStyle attribute. At first
> I was getting no traction because I didn't have all the MS Word
> namespace prefixes assigned. Now that I have that issue addressed, I
> need help with predicates. The p:Style node is a child of the w:p
> node which I want to select and copy to the result tree.
I think you need some clarification here. So do you just want to copy
just the w:p nodes that contains an element pPr which contains an
element pStyle which has a certain valued attibute?
Why not just
<xsl:template match="w:p[w:pPr/w:pStyle/@w:val = 'NL']">
<xsl:copy-of select="."/>
</xsl:template>
and supress other nodes as necessary.
I have a feeling I'm not understanding what you're asking. This is
mostly because I don't know what you're trying to accomplish.
Perhaps an example of what you actually want to happen would be good?
Jon Gorman
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] selecting w:p nodes based, David Carlisle | Thread | [xsl] Conditional statements in XSL, Higino Silva |
| Re: [xsl] Displaying one section of, Gowri Ratakonda | Date | Re: [xsl] Displaying one section of, Jon Gorman |
| Month |