Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Convert XMl to Excel using XLST

From: "Kram" <mark.macumber@-----.--->
To: 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.



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent