|
[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Cast Your Vote
We need your help – Vote for DataDirect XML Products!
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! Subscribe in XML format
|







