Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

format a simple table with XLST

$
0
0

I'd like to format a simple table so that it is 9pt Arial throughout the entire table. The following works, except the rows are not 9pt. New to XSLT.

Here is my XSLT:

<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/"><html><body><p><font size="2" color="red"><font face="Arial"><p>Last Names in CRM</p><table border="1"><tr bgcolor="#81BEF7"><th style="text-align:left;font-family:Arial;font-size:9pt">Last Name</th><th style="text-align:left;font-family:Arial;font-size:9pt">First Name</th><th style="text-align:left;font-family:Arial;font-size:9pt">Job Title</th><th style="text-align:left;font-family:Arial;font-size:9pt">Email Address</th><th style="text-align:left;font-family:Arial;font-size:9pt">Telephone</th><th style="text-align:left;font-family:Arial;font-size:9pt">Mobile Phone</th><th style="text-align:left;font-family:Arial;font-size:9pt">Parent Customer</th></tr><xsl:for-each select="Contacts/Customer"><tr ><td ><xsl:value-of select="LastName"/></td><td><xsl:value-of select="FirstName"/></td><td><xsl:value-of select="JobTitle"/></td><td><xsl:value-of select="EmailAddress1"/></td><td><xsl:value-of select="Telephone1"/></td><td><xsl:value-of select="MobilePhone"/></td><td><xsl:value-of select="ParentCustomerIdName"/></td></tr></xsl:for-each></table></body></html></xsl:template></xsl:stylesheet>
It's a tag which is very simple. The header row and title are fine, the text of the table is in a larger font. Any tips are appreciated. Thank you.


John



Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>