R
ricky
Here is my XML file: 'MSR.xml':
<?xml version="1.0" standalone="yes"?>
<MSR>
<Info>
<BT30004>4:44</BT30004>
<LASTISA />
<CM10009>3:33</CM10009>
<ES00014>1:00</ES00014>
<LASTSRDY />
<LASTSRM1 />
<LASTSRM2>24:23 PM Monday</LASTSRM2>
<MVS>KL30030->KL50001
BT30004
IS00075->IS60012</MVS>
<SSEC>9:99</SSEC>
<SIVU>4:44</SIVU>
<TNC />
<IPI />
<RPI>3:33 AM</RPI>
<CMHM>6:23 AM</CMHM>
<AutoSys />
</Info>
</MSR>
And here is my XSL file: 'MSR.xsl':
<xsl:stylesheet xmlns:xsl="<http://www.w3.org/1999/XSL/Transform>"
version="1.0">
<xslutput method="xml" indent="yes" />
<xsl:strip-space elements="MVS AutoSys" />
<xsl:template match="/">
<html>
<head>
<title>Daily Operations Status Report</title>
</head>
<body bgcolor="#f0f0f0"><H1 align="center">Daily Operations Status
Report</H1>
<H2 align="left"><U><font color="#ff0000">Critical Application Cycle
End Times</font></U></H2>
<xsl:for-each select="MSR/Info">
<xsl:choose>
<xsl:when test="(string-length(BT30004) >0) or
(string-length(LASTISA) >0)">
<font color="#0000CC" size="4"><STRONG>Critical Path
Insurance/ISA</STRONG></font>
</xsl:when>
<xsltherwise>
</xsltherwise>
</xsl:choose>
<xsl:if test="string-length(BT30004) >0">
<li><strong><xsl:text>Insurance DataBase ended at:
</xsl:text><xsl:value-of select="BT30004" /></strong></li>
</xsl:if>
<xsl:if test="string-length(LASTISA) >0">
<li><strong><xsl:text>ISA DataBase ended at: </xsl:text><xsl:value-of
select="LASTISA" /></strong></li>
</xsl:if>
<br />
<br />
<xsl:choose>
<xsl:when test="(string-length(SSEC) >0) or (string-length(SIVU)
>0)">
<font color="#0000CC" size="4"><STRONG>Securities</STRONG></font>
</xsl:when>
<xsltherwise>
</xsltherwise>
</xsl:choose>
<xsl:if test="string-length(SSEC) >0">
<li><STRONG><xsl:text>Securities System Extract Cycle (2:30 AM SLA)
ended at: </xsl:text><xsl:value-of select="SSEC" /></STRONG></li>
</xsl:if>
<xsl:if test="string-length(SIVU) >0">
<li><STRONG><xsl:text>Securities Investment Warehouse Update (6 AM
SLA) ended at: </xsl:text><xsl:value-of select="SIVU" /></STRONG></li>
</xsl:if>
<br />
<br />
<xsl:choose>
<xsl:when test="(string-length(CM10009) >0) or
(string-length(ES00014) >0)">
<font color="#0000CC" size="4"><STRONG>Commissions</STRONG></font>
</xsl:when>
<xsltherwise>
</xsltherwise>
</xsl:choose>
<xsl:if test="string-length(CM10009) >0">
<li><STRONG><xsl:text>Daily Commissions ended at:
</xsl:text><xsl:value-of select="CM10009" /></STRONG></li>
</xsl:if>
<xsl:if test="string-length(ES00014) >0">
<li><STRONG><xsl:text>Semi-Monthly Commissions ended at:
</xsl:text><xsl:value-of select="ES00014" /></STRONG></li>
</xsl:if>
<br />
<br />
<xsl:choose>
<xsl:when test="(string-length(LASTSRDY) >0) or
(string-length(LASTSRM1) >0) or (string-length(LASTSRM2) >0)">
<font color="#0000CC" size="4"><STRONG>Sales</STRONG></font>
</xsl:when>
<xsltherwise>
</xsltherwise>
</xsl:choose>
<xsl:if test="string-length(LASTSRDY) >0">
<li><STRONG><xsl:text>Daily Sales Reporting Cycle ended at:
</xsl:text><xsl:value-of select="LASTSRDY" /></STRONG></li>
</xsl:if>
<xsl:if test="string-length(LASTSRM1) >0">
<li><STRONG><xsl:text>MonthEnd Sales Day1 (Running) or (LASTSRM1)
ended at: </xsl:text><xsl:value-of select="LASTSRM1" /></STRONG></li>
</xsl:if>
<xsl:if test="string-length(LASTSRM2) >0">
<li><STRONG><xsl:text>MonthEnd Sales Day2 (Running) or (LASTSRM2)
ended at: </xsl:text><xsl:value-of select="LASTSRM2" /></STRONG></li>
</xsl:if>
<br />
<br />
<xsl:choose>
<xsl:when test="(string-length(TNC) >0) or (string-length(IPI)
>0) or (string-length(RPI) >0) or (string-length(CMHM) >0)">
<font color="#0000CC" size="4"><STRONG>EBIS/TNC</STRONG></font>
</xsl:when>
<xsltherwise>
</xsltherwise>
</xsl:choose>
<li><STRONG><xsl:text>EBIS/TNC Data Mart Load Status:
</xsl:text></STRONG></li>
<xsl:if test="string-length(TNC) >0">
<li><STRONG><xsl:text>TNC/Client Information (7am SLA) ended at:
</xsl:text><xsl:value-of select="TNC" /></STRONG></li>
</xsl:if>
<xsl:if test="string-length(IPI) >0">
<li><STRONG><xsl:text>Investment Product Information (8am SLA) ended
at: </xsl:text><xsl:value-of select="IPI" /></STRONG></li>
</xsl:if>
<xsl:if test="string-length(RPI) >0">
<li><STRONG><xsl:text>Risk Product Information (7am SLA) ended at:
</xsl:text><xsl:value-of select="RPI" /></STRONG></li>
</xsl:if>
<xsl:if test="string-length(CMHM) >0">
<li><STRONG><xsl:text>Contact Management Historical Mart ended at:
</xsl:text><xsl:value-of select="CMHM" /></STRONG></li>
</xsl:if>
<br />
<br />
<xsl:if test="string-length(MVS) >0">
<font color="#0000CC" size="4"><STRONG><U><xsl:text>MVS Jobs
Tabled</xsl:text></U></STRONG></font><pre><xsl:value-of select="MVS"
/></pre>
</xsl:if>
<xsl:if test="string-length(AutoSys) >0">
<font color="#0000CC" size="4"><STRONG><U><xsl:text>AutoSys Jobs
Tabled</xsl:text></U></STRONG></font><pre><xsl:value-of
select="AutoSys" /></pre>
</xsl:if>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Here is the HTML output after my VB .Net script transforms the the
XML->XSL->MSR.html. As you can see there is 'blank line' between 'MVS
Jobs Tabled' heading and the first line of data 'KL30030->KL50001'.
The same is with 'AutoSys Jobs Tabled' heading and it's first line of
data 'dailyopsfail'. I've tried '<xslutput method="xml" indent="yes"
/>
<xsl:strip-space elements="MVS AutoSys" />' but the blank lines are
still there. I'm using '<pre>' to preserve the formatting in the 'MVS'
and 'AutoSys' fields.
Daily Operations Status Report
Critical Application Cycle End Times
Critical Path Insurance/ISA
Insurance DataBase ended at: 4:44
Securities
Securities System Extract Cycle (2:30 AM SLA) ended at: 9:99
Securities Investment Warehouse Update (6 AM SLA) ended at: 4:44
Commissions
Daily Commissions ended at: 3:33
Semi-Monthly Commissions ended at: 1:00
Sales
MonthEnd Sales Day2 (Running) or (LASTSRM2) ended at: 24:23 PM Monday
EBIS/TNC
EBIS/TNC Data Mart Load Status:
Risk Product Information (7am SLA) ended at: 3:33 AM
Contact Management Historical Mart ended at: 6:23 AM
MVS Jobs Tabled
KL30030->KL50001
BT30004
IS00075->IS60012
AutoSys Jobs Tabled
dailyopsfail
commissnData
Basically, I have a VB .net app. that users input data into textboxes
except for the MVS and AutoSys these are inputted into RichTextBoxes
to preserve the 'return' character'. Then the app. creates a XML and
formats it against a XSL file and then transforms it into a html page.
I think the script is doing it job ok. But, the XSL file needs to be
looked at.
Any ideas?????
<?xml version="1.0" standalone="yes"?>
<MSR>
<Info>
<BT30004>4:44</BT30004>
<LASTISA />
<CM10009>3:33</CM10009>
<ES00014>1:00</ES00014>
<LASTSRDY />
<LASTSRM1 />
<LASTSRM2>24:23 PM Monday</LASTSRM2>
<MVS>KL30030->KL50001
BT30004
IS00075->IS60012</MVS>
<SSEC>9:99</SSEC>
<SIVU>4:44</SIVU>
<TNC />
<IPI />
<RPI>3:33 AM</RPI>
<CMHM>6:23 AM</CMHM>
<AutoSys />
</Info>
</MSR>
And here is my XSL file: 'MSR.xsl':
<xsl:stylesheet xmlns:xsl="<http://www.w3.org/1999/XSL/Transform>"
version="1.0">
<xslutput method="xml" indent="yes" />
<xsl:strip-space elements="MVS AutoSys" />
<xsl:template match="/">
<html>
<head>
<title>Daily Operations Status Report</title>
</head>
<body bgcolor="#f0f0f0"><H1 align="center">Daily Operations Status
Report</H1>
<H2 align="left"><U><font color="#ff0000">Critical Application Cycle
End Times</font></U></H2>
<xsl:for-each select="MSR/Info">
<xsl:choose>
<xsl:when test="(string-length(BT30004) >0) or
(string-length(LASTISA) >0)">
<font color="#0000CC" size="4"><STRONG>Critical Path
Insurance/ISA</STRONG></font>
</xsl:when>
<xsltherwise>
</xsltherwise>
</xsl:choose>
<xsl:if test="string-length(BT30004) >0">
<li><strong><xsl:text>Insurance DataBase ended at:
</xsl:text><xsl:value-of select="BT30004" /></strong></li>
</xsl:if>
<xsl:if test="string-length(LASTISA) >0">
<li><strong><xsl:text>ISA DataBase ended at: </xsl:text><xsl:value-of
select="LASTISA" /></strong></li>
</xsl:if>
<br />
<br />
<xsl:choose>
<xsl:when test="(string-length(SSEC) >0) or (string-length(SIVU)
>0)">
<font color="#0000CC" size="4"><STRONG>Securities</STRONG></font>
</xsl:when>
<xsltherwise>
</xsltherwise>
</xsl:choose>
<xsl:if test="string-length(SSEC) >0">
<li><STRONG><xsl:text>Securities System Extract Cycle (2:30 AM SLA)
ended at: </xsl:text><xsl:value-of select="SSEC" /></STRONG></li>
</xsl:if>
<xsl:if test="string-length(SIVU) >0">
<li><STRONG><xsl:text>Securities Investment Warehouse Update (6 AM
SLA) ended at: </xsl:text><xsl:value-of select="SIVU" /></STRONG></li>
</xsl:if>
<br />
<br />
<xsl:choose>
<xsl:when test="(string-length(CM10009) >0) or
(string-length(ES00014) >0)">
<font color="#0000CC" size="4"><STRONG>Commissions</STRONG></font>
</xsl:when>
<xsltherwise>
</xsltherwise>
</xsl:choose>
<xsl:if test="string-length(CM10009) >0">
<li><STRONG><xsl:text>Daily Commissions ended at:
</xsl:text><xsl:value-of select="CM10009" /></STRONG></li>
</xsl:if>
<xsl:if test="string-length(ES00014) >0">
<li><STRONG><xsl:text>Semi-Monthly Commissions ended at:
</xsl:text><xsl:value-of select="ES00014" /></STRONG></li>
</xsl:if>
<br />
<br />
<xsl:choose>
<xsl:when test="(string-length(LASTSRDY) >0) or
(string-length(LASTSRM1) >0) or (string-length(LASTSRM2) >0)">
<font color="#0000CC" size="4"><STRONG>Sales</STRONG></font>
</xsl:when>
<xsltherwise>
</xsltherwise>
</xsl:choose>
<xsl:if test="string-length(LASTSRDY) >0">
<li><STRONG><xsl:text>Daily Sales Reporting Cycle ended at:
</xsl:text><xsl:value-of select="LASTSRDY" /></STRONG></li>
</xsl:if>
<xsl:if test="string-length(LASTSRM1) >0">
<li><STRONG><xsl:text>MonthEnd Sales Day1 (Running) or (LASTSRM1)
ended at: </xsl:text><xsl:value-of select="LASTSRM1" /></STRONG></li>
</xsl:if>
<xsl:if test="string-length(LASTSRM2) >0">
<li><STRONG><xsl:text>MonthEnd Sales Day2 (Running) or (LASTSRM2)
ended at: </xsl:text><xsl:value-of select="LASTSRM2" /></STRONG></li>
</xsl:if>
<br />
<br />
<xsl:choose>
<xsl:when test="(string-length(TNC) >0) or (string-length(IPI)
>0) or (string-length(RPI) >0) or (string-length(CMHM) >0)">
<font color="#0000CC" size="4"><STRONG>EBIS/TNC</STRONG></font>
</xsl:when>
<xsltherwise>
</xsltherwise>
</xsl:choose>
<li><STRONG><xsl:text>EBIS/TNC Data Mart Load Status:
</xsl:text></STRONG></li>
<xsl:if test="string-length(TNC) >0">
<li><STRONG><xsl:text>TNC/Client Information (7am SLA) ended at:
</xsl:text><xsl:value-of select="TNC" /></STRONG></li>
</xsl:if>
<xsl:if test="string-length(IPI) >0">
<li><STRONG><xsl:text>Investment Product Information (8am SLA) ended
at: </xsl:text><xsl:value-of select="IPI" /></STRONG></li>
</xsl:if>
<xsl:if test="string-length(RPI) >0">
<li><STRONG><xsl:text>Risk Product Information (7am SLA) ended at:
</xsl:text><xsl:value-of select="RPI" /></STRONG></li>
</xsl:if>
<xsl:if test="string-length(CMHM) >0">
<li><STRONG><xsl:text>Contact Management Historical Mart ended at:
</xsl:text><xsl:value-of select="CMHM" /></STRONG></li>
</xsl:if>
<br />
<br />
<xsl:if test="string-length(MVS) >0">
<font color="#0000CC" size="4"><STRONG><U><xsl:text>MVS Jobs
Tabled</xsl:text></U></STRONG></font><pre><xsl:value-of select="MVS"
/></pre>
</xsl:if>
<xsl:if test="string-length(AutoSys) >0">
<font color="#0000CC" size="4"><STRONG><U><xsl:text>AutoSys Jobs
Tabled</xsl:text></U></STRONG></font><pre><xsl:value-of
select="AutoSys" /></pre>
</xsl:if>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Here is the HTML output after my VB .Net script transforms the the
XML->XSL->MSR.html. As you can see there is 'blank line' between 'MVS
Jobs Tabled' heading and the first line of data 'KL30030->KL50001'.
The same is with 'AutoSys Jobs Tabled' heading and it's first line of
data 'dailyopsfail'. I've tried '<xslutput method="xml" indent="yes"
/>
<xsl:strip-space elements="MVS AutoSys" />' but the blank lines are
still there. I'm using '<pre>' to preserve the formatting in the 'MVS'
and 'AutoSys' fields.
Daily Operations Status Report
Critical Application Cycle End Times
Critical Path Insurance/ISA
Insurance DataBase ended at: 4:44
Securities
Securities System Extract Cycle (2:30 AM SLA) ended at: 9:99
Securities Investment Warehouse Update (6 AM SLA) ended at: 4:44
Commissions
Daily Commissions ended at: 3:33
Semi-Monthly Commissions ended at: 1:00
Sales
MonthEnd Sales Day2 (Running) or (LASTSRM2) ended at: 24:23 PM Monday
EBIS/TNC
EBIS/TNC Data Mart Load Status:
Risk Product Information (7am SLA) ended at: 3:33 AM
Contact Management Historical Mart ended at: 6:23 AM
MVS Jobs Tabled
KL30030->KL50001
BT30004
IS00075->IS60012
AutoSys Jobs Tabled
dailyopsfail
commissnData
Basically, I have a VB .net app. that users input data into textboxes
except for the MVS and AutoSys these are inputted into RichTextBoxes
to preserve the 'return' character'. Then the app. creates a XML and
formats it against a XSL file and then transforms it into a html page.
I think the script is doing it job ok. But, the XSL file needs to be
looked at.
Any ideas?????