Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XMl with html tags to Excel?

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 3/21/2008 4:15:00 PM

FredB wrote:

> <data>
>     <item><b>BOLD<b></item>  (ignore the non-escaped character for examples 
> sake)
> </data>
> 
> portion of a sample xsl:
> <Row>
> <Cell ss:StyleID="s80"><data ss:Type="string"> <xsl:value-of 
> select="item"/></Data></Cell>
> </Row>
> 
> The Resuting data in my spread sheet is literally "<b>BOLD</b>" as opposed 
> to the text being bolded.
> 
> Is it possible to go straight from html data to the correpsonding format in 
> excel?

I don't know whether Excel recognizes HTML elements like 'b', you would 
have to ask in an Excel group.
If you want to transform those HTML elements then don't use 
<xsl:value-of select="item"/>, instead use <xsl:apply-templates 
select="item"/>
and make sure you write templates to transform e.g. 'b' to the 
corresponding Excel markup e.g.
   <xsl:template match="b">
     <!-- put Excel markup here -->
       <xsl:apply-templates/>
     <!-- put Excel markup here -->
   </xsl:template>

-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/


transparent
Print
Mail
Digg
delicious
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