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

Re: selecting w:p nodes based on w:pStyle attributes

Subject: Re: selecting w:p nodes based on w:pStyle attributes
From: "Jon Gorman" <jonathan.gorman@xxxxxxxxx>
Date: Mon, 27 Mar 2006 16:31:29 -0600
Re:  selecting w:p nodes based on w:pStyle attributes
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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.