xsl-list
[Top] [All Lists]

Re: [xsl] selecting w:p nodes based on w:pStyle attributes

2006-03-27 15:31:51
On 3/27/06, Terry Ofner <tofner(_at_)comcast(_dot_)net> 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--