M
Mark Baird
The latest version of Word has a modified INCLUDETEXT
field that allows you to include nodes of data from an XML
file and at the same time use XSL to transform that data.
The following generates an error when I add in the name of
the XSL to use.
Thanks.
Mark Baird
{ INCLUDETEXT "c:\\format-number.xml" \t "c:\\format-
number.xsl" \x
/root/myNumber }
format-number.xml
<?xml version="1.0" encoding="UTF-8"?>
<root>
<myNumber>136234</myNumber>
</root>
format-number.xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xsl:template match="/">
<xsl:value-of select="format-number
(root/myNumber,'###,##0.####')"/>
</xsl:template>
</xsl:stylesheet>
field that allows you to include nodes of data from an XML
file and at the same time use XSL to transform that data.
The following generates an error when I add in the name of
the XSL to use.
Thanks.
Mark Baird
{ INCLUDETEXT "c:\\format-number.xml" \t "c:\\format-
number.xsl" \x
/root/myNumber }
format-number.xml
<?xml version="1.0" encoding="UTF-8"?>
<root>
<myNumber>136234</myNumber>
</root>
format-number.xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xsl:template match="/">
<xsl:value-of select="format-number
(root/myNumber,'###,##0.####')"/>
</xsl:template>
</xsl:stylesheet>