<xsl:template match="o:CustomDocumentProperties">
<xsl:copy>
<xsl:apply-templates select ="@*|node()" />
</xsl:copy>
</xsl:template>
In word 2003, I am able to get the word's document 2003's custom properties with the xsl:template match statement above.
What is the syntax to use if I am working on office Word 2007 or 2010?
Custom document properties are maintained under a
Properties
element and use the following namespace:An example of a custom property for Telephone Number:
Assuming that you declare the namespace with the prefix "prop" in your stylesheet like this:
if you save as a single XML file, you can locate them with the following XPath:
and you could create a template match like this: