Hi there,
Please bear with me as I am a beginner trying to understand a new system in my company making exstensive use of XML and XSLT.
We basically have an C++ application that sends information to a web application using XML, storing the data in a database. We then have XSLT files which grab this data and transform it into HTML for clients to view through the browser.
In the C++ app, we can change the fonts of the text - so, say for example ive changed it to Comic Sans. When i view the data through the web browser, it is also in comic sans, as it should be. However, if i try and modify the XSLT file so that it displays the font as Arial instead, it doesn't work......
Here is some of the XML file:
<code>
- <ISSUES>
- <ISSUE ID="67108882">
<TITLE>myxslt</TITLE>
<CODE>EX.1</CODE>
<TYPE ID="67108879" />
<TEXTFIELD1><html> <head> <title></title> <meta name="GENERATOR" content="TmXml"> </head> <BODY BGCOLOR="#FFFFFF"><font COLOR="#000000" FACE="Comic Sans MS" SIZE="2" >cvxgxdgsdgsdgsdg sdgsdgs hello <br> </font> </body> </html></TEXTFIELD1>
</code>
and this is the relevant part of the xslt file which grabs the data out of the database and transforms it into html:
<code>
<xsl:template match="/">
<HTML>
<LINK REL='STYLESHEET' HREF="NewTableReportStyles.css"/>
<STYLE>
BR.page { page-break-after: always }
</STYLE>
<HEAD>
<META HTTP-EQUIV="expires" CONTENT="-1"/>
<title><xsl:value-of select="$ReportTitle"/></title>
<STYLE TYPE="text/css">
.header1 { FONT-FAMILY:Arial; font-weight:bold; font-size:8pt }
.header2 { FONT-FAMILY:Arial; font-weight:normal; font-size:8pt }
</STYLE>
</HEAD>
....
<TD>
<span class="header1">--><xsl:value-of select="TM_ISSUE.TEXTFIELD3" disable-output-escaping="yes"/><!--</span>--> </TD>
</span>
</code>
Can anyone decipher what im trying to do and assist?
Thanks in advance!
Divinyl
Please bear with me as I am a beginner trying to understand a new system in my company making exstensive use of XML and XSLT.
We basically have an C++ application that sends information to a web application using XML, storing the data in a database. We then have XSLT files which grab this data and transform it into HTML for clients to view through the browser.
In the C++ app, we can change the fonts of the text - so, say for example ive changed it to Comic Sans. When i view the data through the web browser, it is also in comic sans, as it should be. However, if i try and modify the XSLT file so that it displays the font as Arial instead, it doesn't work......
Here is some of the XML file:
<code>
- <ISSUES>
- <ISSUE ID="67108882">
<TITLE>myxslt</TITLE>
<CODE>EX.1</CODE>
<TYPE ID="67108879" />
<TEXTFIELD1><html> <head> <title></title> <meta name="GENERATOR" content="TmXml"> </head> <BODY BGCOLOR="#FFFFFF"><font COLOR="#000000" FACE="Comic Sans MS" SIZE="2" >cvxgxdgsdgsdgsdg sdgsdgs hello <br> </font> </body> </html></TEXTFIELD1>
</code>
and this is the relevant part of the xslt file which grabs the data out of the database and transforms it into html:
<code>
<xsl:template match="/">
<HTML>
<LINK REL='STYLESHEET' HREF="NewTableReportStyles.css"/>
<STYLE>
BR.page { page-break-after: always }
</STYLE>
<HEAD>
<META HTTP-EQUIV="expires" CONTENT="-1"/>
<title><xsl:value-of select="$ReportTitle"/></title>
<STYLE TYPE="text/css">
.header1 { FONT-FAMILY:Arial; font-weight:bold; font-size:8pt }
.header2 { FONT-FAMILY:Arial; font-weight:normal; font-size:8pt }
</STYLE>
</HEAD>
....
<TD>
<span class="header1">--><xsl:value-of select="TM_ISSUE.TEXTFIELD3" disable-output-escaping="yes"/><!--</span>--> </TD>
</span>
</code>
Can anyone decipher what im trying to do and assist?
Thanks in advance!
Divinyl