Group:  General ยป microsoft.public.office.xml
Thread: xslt in word xml

xslt in word xml
Mars 12/18/2008 6:28:01 AM
Hi,
I have the following xsl file which will map an xml to form a word xml. At
the top of the xsl, i have a param defined in the global section:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml">
<xsl:output method="xml" />
<xsl:param name="barCode" />
<xsl:template match="/">

In another section of the xsl, i have this:

<pict>
<v:shape id="_x0000_i1028" type="#_x0000_t75"
style="width:147.75pt;height:57.75pt">
<v:imagedata src="$barCode" />
</v:shape>
</pict>

The problem is $barCode is printed as is in the output. i tried //$barCode
and still the same thing. What is the correct syntax to form the line with
the imagedata tag?
P.S. I have also tried <xsl:text><v:imagedata src"</xsl:text><xsl:value-of
select="$barCode" /><xsl:text>" / <</xsl:text>
But i use Altova to run through this thing and somewhere in the select it
escapes out of evaluation. Any help is appreciated. Also, the top of the doc
is changed to include <?mso-application
progid="Word.Document"?><w:wordDocument w:macros... so word can understand it.
thanks,
bramoin

Home | Search | Terms | Imprint
Newsgroups Reader