Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Convert XMl to Excel using XLST >Thread Next - Re: Convert XMl to Excel using XLST Re: Convert XMl to Excel using XLSTTo: NULL Date: 1/11/2006 4:44:00 PM yeah thats more like what I wanted. But its not quite there. I need for
the MergeDown variable to be the number of "item" elements for that
"room".
I cannot do it. I have tried doing this:
<xsl:if test="position()=1">
<xsl:variable name="name" select="count(../item)"/>
<Cell ss:MergeDown="{$name}">
<Data ss:Type="String">
<xsl:value-of select="$name"/>
</Data>
</Cell>
</xsl:if>
but I get an error in a log file saying:
XML ERROR in Table
REASON: Bad Value
FILE: C:\DOCUME~1\MACUMB~1.DEV\LOCALS~1\Temp\461.tmp
GROUP: Row
TAG: Cell
ATTRIB: Index
VALUE: 0
I dont know why this is, do you?
If I take out the {$name} is the MergeDown attribute to make it work I
can see that the variable I created is actually the right value. But it
doesnt like it when I put it in the MergeDown attribute.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
