Thread: XSLT to HTML

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2011
    Posts
    3
    Rep Power
    0

    XSLT to HTML


    I have spent quite a long time attempting to determine how to display various "elements" and "attributes" in HTML, but I have been having some issues. From what I have gathered I need to create an XSLT file that I can then reference in HTML, correct? When I try to create it using the w3schools XSLT Tryit Editor,but I cannot seem to get it to work. I am trying to figure out how to display various static data from the the XML example below such as "Schedule WEBSITE" or any of the embedded data. I assume I simply have my syntax wrong, but I cannot find any XML/XSLT where that data is formatted with elements and attributes. For example, how would I go about calling some of the data that is nested multiple levels deep? If I wanted to loop through all events and display unique data, how would I do so? Any help would be greatly appreciated!!

    XML EXAMPLE:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <Schedule WEBSITE="Sample1" PUBLISH_DATE="06/04/2011" PUBLISH_TIME="09:55" TS="1307195737009">
    <EventType CODE1="AC" CODE2="3" CODE3="Spo" CODE4="l.Spo.com" GROUP="E" ID="Spo" NAME="Sample Spo Name - Spo Lin">
    <Date DTEXT="Sun, Jun 5, 11" TS="1307318400000">
    <Event DenySameG="false" G_CLOCK="" G_STATUS="" ID="829403" LineOrder="D" NAME="G #3" Publish="true" STATUS="Open">
    <Competitor CODE1="ABC" CODE3="ABC" CODE4="l.Spo.com-t.2" ID="45" LineOrderOverride="" NAME="ABC" NUM="1" ROT="705" SCORE="">
    <LINK href="CODE3" xml:link="simple">Home Page</LINK>
    <Line ORDER="2" TYPE="MoLi"/>
    <Line ORDER="1" QUALITY="Restricted" TYPE="PoSp">
    <Choice ID="7538029" NUMBER="2" PREV="7538019" TS="1307127797249" VALUE="+2">
    <Od FRACTION="10/11" Line="-110" MULTIPLIER="1.91" RISK="110" WIN="100"/>
    </Choice>
    </Line>
    </Competitor>
    <Competitor CODE1="XYZ" CODE3="XYZ" CODE4="l.Spo.com-t.16" ID="37" LineOrderOverride="" NAME="XYZ" NUM="2" ROT="706" SCORE="">
    <LINK href="CODE3" xml:link="simple">Home Page</LINK>
    <Line ORDER="2" TYPE="MoLi"/>
    <Line ORDER="1" QUALITY="Restricted" TYPE="PoSp">
    <Choice ID="7538030" NUMBER="-2" PREV="7538020" TS="1307127797249" VALUE="-2">
    <Od FRACTION="10/11" Line="-110" MULTIPLIER="1.91" RISK="110" WIN="100"/>
    </Choice>
    </Line>
    </Competitor>
    <SEGMENT CODE="SpoWG" SEQUENCE_NUMBER="1" SHORT_NAME="G"/>
    <NOTE>Best of ##</NOTE>
    <Time TS="1307318400000" TTEXT="8:00p EDT"/>
    <WagerStopTime TS="1307318580000" TTEXT="8:03p EDT"/>
    <Line ORDER="3" QUALITY="Restricted" TYPE="Total">
    <Choice ID="7539300" NUMBER="189" PREV="7539292" TS="1307148604196" VALUE="189 (-105)">
    <Od FRACTION="20/21" Line="-105" MULTIPLIER="1.95" RISK="105" WIN="100"/>Over</Choice>
    <Choice ID="7539301" NUMBER="189" PREV="7539293" TS="1307148604196" VALUE="189 (-115)">
    <Od FRACTION="20/23" Line="-115" MULTIPLIER="1.87" RISK="115" WIN="100"/>Under</Choice>
    </Line>
    </Event>
    </Date>
    <Date DTEXT="Tue, Jun 7, 11" TS="1307494800000">
    <Event DenySameG="false" G_CLOCK="" G_STATUS="" ID="830755" LineOrder="D" NAME="G #4" Publish="true" STATUS="Open">
    <Competitor CODE1="ABC" CODE3="ABC" CODE4="l.Spo.com-t.2" ID="45" LineOrderOverride="" NAME="ABC" NUM="1" ROT="707" SCORE="">
    <LINK href="CODE3" xml:link="simple">Home Page</LINK>
    <Line ORDER="2" TYPE="MoLi"/>
    <Line ORDER="1" TYPE="PoSp"/>
    </Competitor>
    <Competitor CODE1="XYZ" CODE3="XYZ" CODE4="l.Spo.com-t.16" ID="37" LineOrderOverride="" NAME="XYZ" NUM="2" ROT="708" SCORE="">
    <LINK href="CODE3" xml:link="simple">Home Page</LINK>
    <Line ORDER="2" TYPE="MoLi"/>
    <Line ORDER="1" TYPE="PoSp"/>
    </Competitor>
    <SEGMENT CODE="SpoWG" SEQUENCE_NUMBER="1" SHORT_NAME="G"/>
    <NOTE>Best of ##</NOTE>
    <Time TS="1307494800000" TTEXT="9:00p EDT"/>
    <WagerStopTime TS="1307494980000" TTEXT="9:03p EDT"/>
    <Line ORDER="3" TYPE="Total">
    <Choice>Over</Choice>
    <Choice>Under</Choice>
    </Line>
    </Event>
    </Date>
    </EventType>
    </Schedule>
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2009
    Posts
    191
    Rep Power
    49
    please mark the information which you need

    use the color of font to display


    Code:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <Schedule WEBSITE="Sample1" PUBLISH_DATE="06/04/2011" PUBLISH_TIME="09:55" TS="1307195737009">
    	<EventType CODE1="AC" CODE2="3" CODE3="Spo" CODE4="l.Spo.com" GROUP="E" ID="Spo" NAME="Sample Spo Name - Spo Lin">
    		<Date DTEXT="Sun, Jun 5, 11" TS="1307318400000">
    			<Event DenySameG="false" G_CLOCK="" G_STATUS="" ID="829403" LineOrder="D" NAME="G #3" Publish="true" STATUS="Open">
    				<Competitor CODE1="ABC" CODE3="ABC" CODE4="l.Spo.com-t.2" ID="45" LineOrderOverride="" NAME="ABC" NUM="1" ROT="705" SCORE="">
    					<LINK href="CODE3" xml:link="simple">Home Page</LINK>
    					<Line ORDER="2" TYPE="MoLi"/>
    					<Line ORDER="1" QUALITY="Restricted" TYPE="PoSp">
    						<Choice ID="7538029" NUMBER="2" PREV="7538019" TS="1307127797249" VALUE="+2">
    							<Od FRACTION="10/11" Line="-110" MULTIPLIER="1.91" RISK="110" WIN="100"/>
    						</Choice>
    					</Line>
    				</Competitor>
    				<Competitor CODE1="XYZ" CODE3="XYZ" CODE4="l.Spo.com-t.16" ID="37" LineOrderOverride="" NAME="XYZ" NUM="2" ROT="706" SCORE="">
    					<LINK href="CODE3" xml:link="simple">Home Page</LINK>
    					<Line ORDER="2" TYPE="MoLi"/>
    					<Line ORDER="1" QUALITY="Restricted" TYPE="PoSp">
    						<Choice ID="7538030" NUMBER="-2" PREV="7538020" TS="1307127797249" VALUE="-2">
    							<Od FRACTION="10/11" Line="-110" MULTIPLIER="1.91" RISK="110" WIN="100"/>
    						</Choice>
    					</Line>
    				</Competitor>
    				<SEGMENT CODE="SpoWG" SEQUENCE_NUMBER="1" SHORT_NAME="G"/>
    				<NOTE>Best of ##</NOTE>
    				<Time TS="1307318400000" TTEXT="8:00p EDT"/>
    				<WagerStopTime TS="1307318580000" TTEXT="8:03p EDT"/>
    				<Line ORDER="3" QUALITY="Restricted" TYPE="Total">
    					<Choice ID="7539300" NUMBER="189" PREV="7539292" TS="1307148604196" VALUE="189 (-105)">
    						<Od FRACTION="20/21" Line="-105" MULTIPLIER="1.95" RISK="105" WIN="100"/>Over</Choice>
    					<Choice ID="7539301" NUMBER="189" PREV="7539293" TS="1307148604196" VALUE="189 (-115)">
    						<Od FRACTION="20/23" Line="-115" MULTIPLIER="1.87" RISK="115" WIN="100"/>Under</Choice>
    				</Line>
    			</Event>
    		</Date>
    		<Date DTEXT="Tue, Jun 7, 11" TS="1307494800000">
    			<Event DenySameG="false" G_CLOCK="" G_STATUS="" ID="830755" LineOrder="D" NAME="G #4" Publish="true" STATUS="Open">
    				<Competitor CODE1="ABC" CODE3="ABC" CODE4="l.Spo.com-t.2" ID="45" LineOrderOverride="" NAME="ABC" NUM="1" ROT="707" SCORE="">
    					<LINK href="CODE3" xml:link="simple">Home Page</LINK>
    					<Line ORDER="2" TYPE="MoLi"/>
    					<Line ORDER="1" TYPE="PoSp"/>
    				</Competitor>
    				<Competitor CODE1="XYZ" CODE3="XYZ" CODE4="l.Spo.com-t.16" ID="37" LineOrderOverride="" NAME="XYZ" NUM="2" ROT="708" SCORE="">
    					<LINK href="CODE3" xml:link="simple">Home Page</LINK>
    					<Line ORDER="2" TYPE="MoLi"/>
    					<Line ORDER="1" TYPE="PoSp"/>
    				</Competitor>
    				<SEGMENT CODE="SpoWG" SEQUENCE_NUMBER="1" SHORT_NAME="G"/>
    				<NOTE>Best of ##</NOTE>
    				<Time TS="1307494800000" TTEXT="9:00p EDT"/>
    				<WagerStopTime TS="1307494980000" TTEXT="9:03p EDT"/>
    				<Line ORDER="3" TYPE="Total">
    					<Choice>Over</Choice>
    					<Choice>Under</Choice>
    				</Line>
    			</Event>
    		</Date>
    	</EventType>
    </Schedule>
    Helmut Hagemann Germany

    fallen to the bottom of the facts?
    I reach my hand and we go together


    wer lesen und google kann ist klar im Vorteil
    who read and google is able is clear in the advantage
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2011
    Posts
    3
    Rep Power
    0
    To clarify, my end result is display a variety of data from the XML example below in HTML. Also, please remember that XML "feed" is external and not hosted locally. I have color coded a few examples of data that I would like to display in HTML. If possible, I would like to loop through for unique items like "/Event/ID" and find the data for each ID like "/Competitor/Code1" and "Competitor/Type/Number". Once I understand how to display the data, I can figure out how to structure/format how the data is display. I would like to Thank you in advance. I really appreciate your assistance!!


    Originally Posted by xml-profi
    please mark the information which you need

    use the color of font to display


    Code:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <Schedule WEBSITE="Sample1" PUBLISH_DATE="06/04/2011" PUBLISH_TIME="09:55" TS="1307195737009">
    	<EventType CODE1="AC" CODE2="3" CODE3="Spo" CODE4="l.Spo.com" GROUP="E" ID="Spo" NAME="Sample Spo Name - Spo Lin">
    		<Date DTEXT="Sun, Jun 5, 11" TS="1307318400000">
    			<Event DenySameG="false" G_CLOCK="" G_STATUS="" ID="829403" LineOrder="D" NAME="G #3" Publish="true" STATUS="Open">
    				<Competitor CODE1="ABC" CODE3="ABC" CODE4="l.Spo.com-t.2" ID="45" LineOrderOverride="" NAME="ABC" NUM="1" ROT="705" SCORE="">
    					<LINK href="CODE3" xml:link="simple">Home Page</LINK>
    					<Line ORDER="2" TYPE="MoLi"/>
    					<Line ORDER="1" QUALITY="Restricted" TYPE="PoSp">
    						<Choice ID="7538029" NUMBER="2" PREV="7538019" TS="1307127797249" VALUE="+2">
    							<Od FRACTION="10/11" Line="-110" MULTIPLIER="1.91" RISK="110" WIN="100"/>
    						</Choice>
    					</Line>
    				</Competitor>
    				<Competitor CODE1="XYZ" CODE3="XYZ" CODE4="l.Spo.com-t.16" ID="37" LineOrderOverride="" NAME="XYZ" NUM="2" ROT="706" SCORE="">
    					<LINK href="CODE3" xml:link="simple">Home Page</LINK>
    					<Line ORDER="2" TYPE="MoLi"/>
    					<Line ORDER="1" QUALITY="Restricted" TYPE="PoSp">
    						<Choice ID="7538030" NUMBER="-2" PREV="7538020" TS="1307127797249" VALUE="-2">
    							<Od FRACTION="10/11" Line="-110" MULTIPLIER="1.91" RISK="110" WIN="100"/>
    						</Choice>
    					</Line>
    				</Competitor>
    				<SEGMENT CODE="SpoWG" SEQUENCE_NUMBER="1" SHORT_NAME="G"/>
    				<NOTE>Best of ##</NOTE>
    				<Time TS="1307318400000" TTEXT="8:00p EDT"/>
    				<WagerStopTime TS="1307318580000" TTEXT="8:03p EDT"/>
    				<Line ORDER="3" QUALITY="Restricted" TYPE="Total">
    					<Choice ID="7539300" NUMBER="189" PREV="7539292" TS="1307148604196" VALUE="189 (-105)">
    						<Od FRACTION="20/21" Line="-105" MULTIPLIER="1.95" RISK="105" WIN="100"/>Over</Choice>
    					<Choice ID="7539301" NUMBER="189" PREV="7539293" TS="1307148604196" VALUE="189 (-115)">
    						<Od FRACTION="20/23" Line="-115" MULTIPLIER="1.87" RISK="115" WIN="100"/>Under</Choice>
    				</Line>
    			</Event>
    		</Date>
    		<Date DTEXT="Tue, Jun 7, 11" TS="1307494800000">
    			<Event DenySameG="false" G_CLOCK="" G_STATUS="" ID="830755" LineOrder="D" NAME="G #4" Publish="true" STATUS="Open">
    				<Competitor CODE1="ABC" CODE3="ABC" CODE4="l.Spo.com-t.2" ID="45" LineOrderOverride="" NAME="ABC" NUM="1" ROT="707" SCORE="">
    					<LINK href="CODE3" xml:link="simple">Home Page</LINK>
    					<Line ORDER="2" TYPE="MoLi"/>
    					<Line ORDER="1" TYPE="PoSp"/>
    				</Competitor>
    				<Competitor CODE1="XYZ" CODE3="XYZ" CODE4="l.Spo.com-t.16" ID="37" LineOrderOverride="" NAME="XYZ" NUM="2" ROT="708" SCORE="">
    					<LINK href="CODE3" xml:link="simple">Home Page</LINK>
    					<Line ORDER="2" TYPE="MoLi"/>
    					<Line ORDER="1" TYPE="PoSp"/>
    				</Competitor>
    				<SEGMENT CODE="SpoWG" SEQUENCE_NUMBER="1" SHORT_NAME="G"/>
    				<NOTE>Best of ##</NOTE>
    				<Time TS="1307494800000" TTEXT="9:00p EDT"/>
    				<WagerStopTime TS="1307494980000" TTEXT="9:03p EDT"/>
    				<Line ORDER="3" TYPE="Total">
    					<Choice>Over</Choice>
    					<Choice>Under</Choice>
    				</Line>
    			</Event>
    		</Date>
    	</EventType>
    </Schedule>
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2009
    Posts
    191
    Rep Power
    49
    think in template
    it possible to use for-each
    but it better use the template rules

    Code:
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    	<xsl:output indent="yes" method="html"/>
    	<xsl:template match="/">
    		<html>
    		<style>table{
    		border: 2px black solid
    		}
    td{
    		border: 2px black solid
    		}
    		</style>
    			<body>
    				<xsl:apply-templates select="Schedule"/>
    			</body>
    		</html>
    	</xsl:template>
    
    
    	<xsl:template match="Schedule">
    		<h1>
    			<xsl:value-of select="@WEBSITE"/>
    		</h1>
    		<xsl:value-of select="@PUBLISH_DATE"/>
    		<xsl:apply-templates select="@PUBLISH_TIME"/>
    		<xsl:apply-templates select="EventType"/>
    	</xsl:template>
    
    	<xsl:template match="EventType">
    		<table>
    			<caption></caption>
    			<tr>
    				<td></td>
    			</tr>
    			<xsl:apply-templates select="Date"/>
    		</table>
    	</xsl:template>
    
    
    	<xsl:template match="Date">
    		<tr>
    			<td>
    				<xsl:value-of select="@DTEXT"/>
    			</td>
    			<xsl:apply-templates select="Event"/>
    		</tr>
    	</xsl:template>
    
    	<xsl:template match="Event">
    		<xsl:apply-templates select="Competitor"/>
    		<xsl:apply-templates select="Line"/>
    	</xsl:template>
    
    	<xsl:template match="Competitor">
    		<tr>
    			<td>code</td>
    			<td>
    				<xsl:value-of select="@CODE1"/>
    			</td>
    		</tr>
    		<xsl:apply-templates select="Line"/>
    	</xsl:template>
    
    	<xsl:template match="Line">
    		<tr>
    			<td>type</td>
    			<td>
    				<xsl:value-of select="@TYPE"/>
    			</td>
    		</tr>
    		<xsl:if test="Choice/@VALUE">
    			<tr>
    				<td>value</td>
    				<td>
    					<xsl:value-of select="Choice/@VALUE"/>
    				</td>
    			</tr>
    			<tr>
    				<td>fraction</td>
    				<td>
    					<xsl:value-of select="Choice/Od/@FRACTION"/>
    				</td>
    			</tr>
    		</xsl:if>
    	</xsl:template>
    </xsl:stylesheet>

    result
    Code:
    <html>
      <style>table{
    		border: 2px black solid
    		}
    td{
    		border: 2px black solid
    		}
    		
      </style>
      <body>
        <h1>Sample1</h1>06/04/201109:55
        <table>
          <caption></caption>
          <tr>
            <td></td>
          </tr>
          <tr>
            <td>Sun, Jun 5, 11</td>
            <tr>
              <td>code</td>
              <td>ABC</td>
            </tr>
            <tr>
              <td>type</td>
              <td>MoLi</td>
            </tr>
            <tr>
              <td>type</td>
              <td>PoSp</td>
            </tr>
            <tr>
              <td>value</td>
              <td>+2</td>
            </tr>
            <tr>
              <td>fraction</td>
              <td>10/11</td>
            </tr>
            <tr>
              <td>code</td>
              <td>XYZ</td>
            </tr>
            <tr>
              <td>type</td>
              <td>MoLi</td>
            </tr>
            <tr>
              <td>type</td>
              <td>PoSp</td>
            </tr>
            <tr>
              <td>value</td>
              <td>-2</td>
            </tr>
            <tr>
              <td>fraction</td>
              <td>10/11</td>
            </tr>
            <tr>
              <td>type</td>
              <td>Total</td>
            </tr>
            <tr>
              <td>value</td>
              <td>189 (-105)</td>
            </tr>
            <tr>
              <td>fraction</td>
              <td>20/21</td>
            </tr>
          </tr>
          <tr>
            <td>Tue, Jun 7, 11</td>
            <tr>
              <td>code</td>
              <td>ABC</td>
            </tr>
            <tr>
              <td>type</td>
              <td>MoLi</td>
            </tr>
            <tr>
              <td>type</td>
              <td>PoSp</td>
            </tr>
            <tr>
              <td>code</td>
              <td>XYZ</td>
            </tr>
            <tr>
              <td>type</td>
              <td>MoLi</td>
            </tr>
            <tr>
              <td>type</td>
              <td>PoSp</td>
            </tr>
            <tr>
              <td>type</td>
              <td>Total</td>
            </tr>
          </tr>
        </table>
      </body>
    </html>
    Helmut Hagemann Germany

    fallen to the bottom of the facts?
    I reach my hand and we go together


    wer lesen und google kann ist klar im Vorteil
    who read and google is able is clear in the advantage
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2011
    Posts
    3
    Rep Power
    0
    Thank you very much for the information. That was very helpful in assisting me to understand how to format things. However I still have a few questions, so again, thank you in advance!

    1) How do I call the "code"? Should I save the "code" as an XSL or XSLT file? Do I embed the code into an HTML file? In the end, I want to display tables of the output XML data in an HTML document that already exists.

    2) In the "code", how do I point to the external XML feed (for example: "(URL address blocked: See forum rules)") so that it knows where to parse the data from in the template?

    Thanks again for your help and patience.





    Originally Posted by xml-profi
    think in template
    it possible to use for-each
    but it better use the template rules

    Code:
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    	<xsl:output indent="yes" method="html"/>
    	<xsl:template match="/">
    		<html>
    		<style>table{
    		border: 2px black solid
    		}
    td{
    		border: 2px black solid
    		}
    		</style>
    			<body>
    				<xsl:apply-templates select="Schedule"/>
    			</body>
    		</html>
    	</xsl:template>
    
    
    	<xsl:template match="Schedule">
    		<h1>
    			<xsl:value-of select="@WEBSITE"/>
    		</h1>
    		<xsl:value-of select="@PUBLISH_DATE"/>
    		<xsl:apply-templates select="@PUBLISH_TIME"/>
    		<xsl:apply-templates select="EventType"/>
    	</xsl:template>
    
    	<xsl:template match="EventType">
    		<table>
    			<caption></caption>
    			<tr>
    				<td></td>
    			</tr>
    			<xsl:apply-templates select="Date"/>
    		</table>
    	</xsl:template>
    
    
    	<xsl:template match="Date">
    		<tr>
    			<td>
    				<xsl:value-of select="@DTEXT"/>
    			</td>
    			<xsl:apply-templates select="Event"/>
    		</tr>
    	</xsl:template>
    
    	<xsl:template match="Event">
    		<xsl:apply-templates select="Competitor"/>
    		<xsl:apply-templates select="Line"/>
    	</xsl:template>
    
    	<xsl:template match="Competitor">
    		<tr>
    			<td>code</td>
    			<td>
    				<xsl:value-of select="@CODE1"/>
    			</td>
    		</tr>
    		<xsl:apply-templates select="Line"/>
    	</xsl:template>
    
    	<xsl:template match="Line">
    		<tr>
    			<td>type</td>
    			<td>
    				<xsl:value-of select="@TYPE"/>
    			</td>
    		</tr>
    		<xsl:if test="Choice/@VALUE">
    			<tr>
    				<td>value</td>
    				<td>
    					<xsl:value-of select="Choice/@VALUE"/>
    				</td>
    			</tr>
    			<tr>
    				<td>fraction</td>
    				<td>
    					<xsl:value-of select="Choice/Od/@FRACTION"/>
    				</td>
    			</tr>
    		</xsl:if>
    	</xsl:template>
    </xsl:stylesheet>

    result
    Code:
    <html>
      <style>table{
    		border: 2px black solid
    		}
    td{
    		border: 2px black solid
    		}
    		
      </style>
      <body>
        <h1>Sample1</h1>06/04/201109:55
        <table>
          <caption></caption>
          <tr>
            <td></td>
          </tr>
          <tr>
            <td>Sun, Jun 5, 11</td>
            <tr>
              <td>code</td>
              <td>ABC</td>
            </tr>
            <tr>
              <td>type</td>
              <td>MoLi</td>
            </tr>
            <tr>
              <td>type</td>
              <td>PoSp</td>
            </tr>
            <tr>
              <td>value</td>
              <td>+2</td>
            </tr>
            <tr>
              <td>fraction</td>
              <td>10/11</td>
            </tr>
            <tr>
              <td>code</td>
              <td>XYZ</td>
            </tr>
            <tr>
              <td>type</td>
              <td>MoLi</td>
            </tr>
            <tr>
              <td>type</td>
              <td>PoSp</td>
            </tr>
            <tr>
              <td>value</td>
              <td>-2</td>
            </tr>
            <tr>
              <td>fraction</td>
              <td>10/11</td>
            </tr>
            <tr>
              <td>type</td>
              <td>Total</td>
            </tr>
            <tr>
              <td>value</td>
              <td>189 (-105)</td>
            </tr>
            <tr>
              <td>fraction</td>
              <td>20/21</td>
            </tr>
          </tr>
          <tr>
            <td>Tue, Jun 7, 11</td>
            <tr>
              <td>code</td>
              <td>ABC</td>
            </tr>
            <tr>
              <td>type</td>
              <td>MoLi</td>
            </tr>
            <tr>
              <td>type</td>
              <td>PoSp</td>
            </tr>
            <tr>
              <td>code</td>
              <td>XYZ</td>
            </tr>
            <tr>
              <td>type</td>
              <td>MoLi</td>
            </tr>
            <tr>
              <td>type</td>
              <td>PoSp</td>
            </tr>
            <tr>
              <td>type</td>
              <td>Total</td>
            </tr>
          </tr>
        </table>
      </body>
    </html>
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2009
    Posts
    191
    Rep Power
    49
    I understand it that way.
    XSL template file is.
    where an xslt tranzformatrion is described

    is basically the same

    xslt says from what parser / browser can be used
    For example, data from xml generate a pdf or html or xhtml
    or link with css

    with the second question I can not do anything
    what will happen with url

    if you have the xsl file in the xml file uses you can view the result with browser

    Code:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <?xml-stylesheet href="Schedule.xsl" type="text/xsl" ?>
    <Schedule WEBSITE="Sample1" PUBLISH_DATE="06/04/2011" PUBLISH_TIME="09:55" TS="1307195737009">
    	.
            .
            .
            .
    </Schedule>
    Helmut Hagemann Germany

    fallen to the bottom of the facts?
    I reach my hand and we go together


    wer lesen und google kann ist klar im Vorteil
    who read and google is able is clear in the advantage

IMN logo majestic logo threadwatch logo seochat tools logo