Subject: [xsl] selecting w:p nodes based on w:pStyle attributes From: Terry Ofner <tofner@xxxxxxxxxxx> Date: Mon, 27 Mar 2006 16:41:42 -0500 |
<w:p> <w:pPr> <w:pStyle w:val="A-Head"/> </w:pPr> <w:r> <w:t>Nouns</w:t> </w:r> </w:p> <w:p> <w:pPr> <w:pStyle w:val="NL"/> </w:pPr> <w:r> <w:t>blah blah blah</w:t> </w:r> </w:p>
<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:o="urn:schemas-microsoft.com:office:office" xmlns:aml="http://schemas.microsoft.com/aml2001/core">
<xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template>
<xsl:template match="w:p/w:pPr/w:pStyle[@w:val = 'NL']"> <xsl:copy-of select="ancestor::w:p/node()"/> <xsl:apply-templates/> </xsl:template>
<xsl:template match="w:p"/> <xsl:apply templates select="w:pPr/w:pStyle[@w:val = 'NL']"/>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Using a variable as the x, bharathi kongara | Thread | Re: [xsl] selecting w:p nodes based, G. Ken Holman |
Re: [xsl] Using a variable as the x, bharathi kongara | Date | Re: [xsl] selecting w:p nodes based, G. Ken Holman |
Month |