
<xsl:template match="w:r">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="w:t"><xsl:value-of select="text()" /></xsl:template>
<xsl:template match="w:br|w:cr"><br /></xsl:template>
Being one of the zillion programmers jumping into rough waters of XML, XSLT and AJAX (combined with ASP back-end) I had my own share of "reinventing the wheel" experience. Hopefully by documenting some of these reinventions, I'll save you a few minutes of hair-pulling.
<xsl:template match="w:r">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="w:t"><xsl:value-of select="text()" /></xsl:template>
<xsl:template match="w:br|w:cr"><br /></xsl:template>
No comments:
Post a Comment