Help on XLS transformation ????

G

Guest

Dear all,

I have a dataset object which is the source of a datagrid server control.
In my application I am using that dataset to generate an XML file.
The am using table mapping to defined my own column names which are
dependant on customer language.

Then from the generate XML file I apply to it an XML stylesheet in order to
format the data properly. The content of my style XLS file is has follow:

=====>
<?xml version="1.0" encoding="ISO-8859-1"?><xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/">
<html>
<body>
<h2>My machine Events</h2>
<table border="0">
<tr bgcolor="#9acd32">
<th align="left">Date</th>
<th align="left">Time</th>
<th align="left">Length</th>
<th align="left">Machine</th>
<th align="left">Severity</th>
<th align="left">Message</th>
</tr>

<tr>
<td><xsl:value-of select="Date"/></td>
<td><xsl:value-of select="Time"/></td>
<td><xsl:value-of select="Length"/></td>
<td><xsl:value-of select="Machine"/></td>
<td><xsl:value-of select="Severity"/></td>
<td><xsl:value-of select="Message"/></td>
</tr>

</table>
</body>
</html>
</xsl:template></xsl:stylesheet>

<==========

Then I add to my XML file a reference to that sytle sheet.

As you can see in that file, fields name are in english like "Date", "Time",
"Length"....

How to handle the styls sheet content then when my customer language is
Spanish. How to extract the content of the field on which its name will comes
from a language ressources ??

thnaks for your help

regards
serge
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top