r0k3t
05-12-2009, 11:03 AM
Hi there,
Sorry for the vague title, I am having trouble finding the answer to this because I don't believe I am even able to phrase the question just right. Maybe if I explain someone can point me in the right direction. This is what I have in my XSLT
<xsl:if test="w:p/w:pPr/w:pStyle/@w:val='TABLEHEADINGALLCAPS'">
<xsl:value-of select="w:p/w:r/w:t"/>
</xsl:if>
That actually works but this is the problem, there are multiple instances of the w:p/w:r/w:t element, that value-of line always gets the first one, that is not what I want. What I want it the is - and correct me if I am wrong, the w:r that is a sibling of w:pPr as they both share the same parent, in this case w:p...
At any rate - thank you for you input, I am very new to XSLT and appreciate your help.
Sorry for the vague title, I am having trouble finding the answer to this because I don't believe I am even able to phrase the question just right. Maybe if I explain someone can point me in the right direction. This is what I have in my XSLT
<xsl:if test="w:p/w:pPr/w:pStyle/@w:val='TABLEHEADINGALLCAPS'">
<xsl:value-of select="w:p/w:r/w:t"/>
</xsl:if>
That actually works but this is the problem, there are multiple instances of the w:p/w:r/w:t element, that value-of line always gets the first one, that is not what I want. What I want it the is - and correct me if I am wrong, the w:r that is a sibling of w:pPr as they both share the same parent, in this case w:p...
At any rate - thank you for you input, I am very new to XSLT and appreciate your help.