TransformerException: A location step was expected following the '/' or '//

I'm new to using the JAVA API to transform XML to HTML via XSLT
I am attempting to create an application that generates this html file. I can generate the file through the command line with no problems.
I don't know if it's because my folder name has a space in the path.
All help is appreciated. THANKS in advance.
Environment is WSAD. Xalan.jar, xsltc.jar, xercesImpl.jar have been included in the jars on the build path.
Java Code
public void createHTMLFile() {
     TransformerFactory tFactory;
     Transformer transformer;
     String stylesheet = "C://Folder Name//Project//properties//inputXSL.xsl";
     String sourceID = "C://Folder Name//Project//properties//inputXML.xml";
     File outputHTML =
          new File("C://Folder Name//Project//properties//index.html");
     FileOutputStream os;
     try {
          tFactory = TransformerFactory.newInstance();
          os = new FileOutputStream(outputHTML);
// Exception occurs here
          transformer = tFactory.newTransformer(new StreamSource(stylesheet));
          transformer.transform(new StreamSource(sourceID),
                    new StreamResult(os));
          catch (Exception e) {
               System.out.println(e.getMessage());
     part of XSL File
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xalan="http://xml.apache.org/xslt">
<xsl:output method="html" encoding="UTF-8" />

Here's my complete code
XSL
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xalan="http://xml.apache.org/xslt">
<xsl:output method="html" encoding="UTF-8" />
<xsl:template match="/">
     <html>
          <head>
               <title>HI315B</title>
          </head>
          <body>
          <table bgcolor="black" width="100%" border="1">
          <tr>
          <td>
          <div align="center">
          <b>
          <font size="6" color="#FFFF00">Data Monitoring System</font>
          </b>
          </div>
          </td>
          </tr>
     </table>
          <br />
          <br />
          <br />
     <table width="100%">
          <tr>
          <td bgcolor="#000000" colspan="4">
          <font color="#FF0000">
          <b>
                                             <font color="#FFFF00">Title Message</font>
     </b>
     </font>
          </td>
          </tr>
          <tr>
          <xsl:for-each select="/input/set/">
          <td>
          <xsl:value-of select="locationID" />
          </td>
          </xsl:for-each>
          </tr>
          <tr>
          <xsl:for-each select="/input/set/">
          <td>
          <a>
          <xsl:attribute name="href">
          <xsl:value-of select="locationID" />
                                                    <xsl:text disable-output-escaping="yes">_</xsl:text>
                                                  <xsl:value-of select="setID" />
                                                  <xsl:text disable-output-escaping="yes">.pdf</xsl:text>
                                             </xsl:attribute>
                                             <xsl:attribute name="target">_blank</xsl:attribute>
                                             <xsl:value-of select="setID" />
     </a>
     </td>
     </xsl:for-each>
     </tr>
     </table>
     <br />
     <center>
     <font size="4">
     <a href="./NotifierEmailLog.txt" target="_blank">Alert Message Log File</a>
     </font>
     </center>
</body>
</html>
</xsl:template>
</xsl:stylesheet>XML Code
<input>
<set>
     <setID>9999999</setID>
     <locationID>M3021A</locationID>
</set>
<set>
     <setID>9999999</setID>
     <locationID>M3021B</locationID>
</set>
<set>
     <setID>9999999</setID>
     <locationID>M3051A</locationID>
</set>
<set>
     <setID>9999999</setID>
     <locationID>M3051B</locationID>
</set>
<set>
     <setID>9999999</setID>
     <locationID>M3039A</locationID>
</set>
<set>
     <setID>REF</setID>
     <locationID>REF</locationID>
</set>
</input>

Similar Messages

Maybe you are looking for

  • Mac mini "Overtemp" signal and sleep received regularly.

    mac mini "Overtemp" signal received regularly. been researching the regular "Overtemp signal" received by my mini (Mac Mini PPC G4/PowerMac 10,1, 1.42GHz, 1G RAM, Tiger 10.4.11) followed by forced sleep since around the time i updated adobe flash a m

  • FTR_SUBSCR  Function Group Download in a EHP4 version

    Hi Guys Im facing an upgrade from 4.6C to an Ecc 6.0 and unfortunally my client had the brilliant idea to install the EHP4 in your QAS system but ddnt installed in the DEV system... I dont need to mention that transporting the requests from DEV to QA

  • Help with treemap and other stuff

    hi guys.. i m new to this forum.. and this is my first post....so if i act a little naive .....please bare with me. and if this is not the correct place to post ..i m sorry for that. i have an assignment to submit....i m getting the whole picture ...

  • Can't scroll to top of table

    Hello,   I have a strange problem with a spreadsheet in Numbers for iPad and Numbers for Mac (both current versions). For some reason I can't scroll to the top of the table (it has less than 200 rows and 5 columns). My table has a fixed header row (r

  • Unable to access time machine backups after upgrade

    I have an airport extreme with an USB disk that I've been using with my 10.8 system. I've decided to format and do a clean install of mavericks.  After that even tough I can access the timemachine and see scroll with the mouse I can't use the arrows