|
EUROPEAN
POOL » |
|
<%@ page language="java" contentType="text/html" %>
<%@ page import="javax.xml.transform.*"%>
<%@ page import="javax.xml.transform.stream.*"%>
<%
/**
* This JSP may use PMA to set param1 in the
* foo.xsl stylesheet before using the
* stylesheet to transform foo.xml
* and outputing the result.
* HTML tags are not in this release, as it is an include and requires none.
* The xincludes folder is at the root of the sports directory.
* To use:
*
* @authors Paul Campbell seapwc@halcyon.com, Khal Shariff khal_shariff@cbc.ca
* @version $Id: transFormer.jsp,v 1.2 2004/06/08 21:10:10 shariffk Exp $
*/
String docPath = application.getRealPath("/");
String furtherPath = "";
docPath = docPath + furtherPath;
String paramValue = request.getParameter("PMA");
String xmlFile = request.getParameter("XML");
String xslFile = request.getParameter("XSL");
xmlFile = docPath + xmlFile;
xslFile = docPath + xslFile;
TransformerFactory tFactory =
TransformerFactory.newInstance();
Transformer transformer =
tFactory.newTransformer(new StreamSource(xslFile));
transformer.setParameter("param1", paramValue);
transformer.transform(
new StreamSource(xmlFile), new StreamResult(out));
%>
|
Shane Doan Canada
Notched goal that won tournament. |
|
Tuomo Ruutu Finland
Scored prettiest goal of tourney. |
|
Martin Brodeur Canada
Made 27 saves with sore wrist. |
|
|
|
|
|
| Team Canada captures World Cup over Finland
Canada remains on top of the hockey world after defeating Finland 3-2 in
the World Cup final on Tuesday.
» FULL STORY
|
|
|
|
|
|
|
|
|
Tuesday
Sept. 14| Finland vs. Canada |
|
|
|
|
|
|
|
|
|
|
|
|
|
To see the full cartoon, check out: |
|
|
|
|
|
|
|
|
|
|
|
The
struggle over the game
The countdown has begun on what may be one of the National Hockey
League's biggest crises. What are the issues, and where does each
side stand? |
|
|
|
|
|
|
|
|
|
|
|
Canada-Soviet
Hockey Series, 1972
From the game 1 shocker to Esposito's rant and Henderson's epoch-making
goal, a look back at eight grueling games that changed hockey forever. |
|
|
|
|
|
|
|
|
<%@ page language="java" contentType="text/html" %>
<%@ page import="javax.xml.transform.*"%>
<%@ page import="javax.xml.transform.stream.*"%>
<%
/**
* This JSP may use PMA to set param1 in the
* foo.xsl stylesheet before using the
* stylesheet to transform foo.xml
* and outputing the result.
* HTML tags are not in this release, as it is an include and requires none.
* The xincludes folder is at the root of the sports directory.
* To use:
*
* @authors Paul Campbell seapwc@halcyon.com, Khal Shariff khal_shariff@cbc.ca
* @version $Id: transFormer.jsp,v 1.2 2004/06/08 21:10:10 shariffk Exp $
*/
String docPath = application.getRealPath("/");
String furtherPath = "";
docPath = docPath + furtherPath;
String paramValue = request.getParameter("PMA");
String xmlFile = request.getParameter("XML");
String xslFile = request.getParameter("XSL");
xmlFile = docPath + xmlFile;
xslFile = docPath + xslFile;
TransformerFactory tFactory =
TransformerFactory.newInstance();
Transformer transformer =
tFactory.newTransformer(new StreamSource(xslFile));
transformer.setParameter("param1", paramValue);
transformer.transform(
new StreamSource(xmlFile), new StreamResult(out));
%>
Watch Saturday's semifinal and the final game on HDTV.
More about HDTV
|
|
|
|
|
|
|
|
|