openxml word: be more specific for extracting text, avoids treating some image parameters as text
This commit is contained in:
parent
b8be14bd7b
commit
b4306b71c0
@ -14,14 +14,15 @@
|
||||
|
||||
<xsl:template match="/">
|
||||
<div>
|
||||
<xsl:apply-templates/>
|
||||
<xsl:for-each select="//w:p">
|
||||
<p>
|
||||
<xsl:for-each select=".//w:t">
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:value-of select="." />
|
||||
</xsl:for-each>
|
||||
</p>
|
||||
</xsl:for-each>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="w:p">
|
||||
<p>
|
||||
<xsl:value-of select="."/>
|
||||
</p>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user