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>&lt;v:imagedata src"</xsl:text><xsl:value-of select="$barCode" /><xsl:text>" / &lt;</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

Have you checked to see that you can output the correct value of $barCode outside of the <pict> section using <xsl:message> or similar?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.