<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Normalizing Excel&#8217;s SpreadsheetML using XSLT - Part 2</title>
	<atom:link href="http://eric.van-der-vlist.com/blog/2006/06/07/2442_normalizing_excels_spreadsheetml_using_xslt_-_part_2/feed/" rel="self" type="application/rss+xml" />
	<link>http://eric.van-der-vlist.com/blog/2006/06/07/2442_normalizing_excels_spreadsheetml_using_xslt_-_part_2/</link>
	<description>XML, apiculture et pré-vergers</description>
	<pubDate>Fri, 30 Jul 2010 13:20:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Carl van Denzen</title>
		<link>http://eric.van-der-vlist.com/blog/2006/06/07/2442_normalizing_excels_spreadsheetml_using_xslt_-_part_2/#comment-50596</link>
		<dc:creator>Carl van Denzen</dc:creator>
		<pubDate>Mon, 14 Sep 2009 15:34:43 +0000</pubDate>
		<guid isPermaLink="false">http://eric.van-der-vlist.com/blog/?p=59#comment-50596</guid>
		<description>I get this error in Netbeans 6.5.1 when I run the code that I will also paste in this comment.
  file:/H:/NetBeansProjects/Roosterdiensten/src/nl/prhc/roosterdiensten/resources/normalize-excel-sheet.xslt: line 29: Attribute 'ss:Index' outside of element.

Code:
File xmlFile = new File("H:\\TEMP\\rooster-sal.xml");
        File xsltFile = new File("H:\\NetBeansProjects\\Roosterdiensten\\src\\nl\\prhc\\roosterdiensten\\resources\\normalize-excel-sheet.xslt");

        // JAXP reads data using the Source interface
        Source xmlSource = new StreamSource(xmlFile);
        Source xsltSource = new StreamSource(xsltFile);

        // the factory pattern supports different XSLT processors
        TransformerFactory transFact =
                TransformerFactory.newInstance();
        Transformer trans;
        try {
            trans = transFact.newTransformer(xsltSource);
            trans.transform(xmlSource, new StreamResult(new File("H:\\TEMP\\rooster-sal-out.xml")));
        } catch (TransformerException ex) {
            Logger.getLogger(RoosterdienstenView.class.getName()).log(Level.SEVERE, null, ex);
        }

    }</description>
		<content:encoded><![CDATA[<p>I get this error in Netbeans 6.5.1 when I run the code that I will also paste in this comment.<br />
  file:/H:/NetBeansProjects/Roosterdiensten/src/nl/prhc/roosterdiensten/resources/normalize-excel-sheet.xslt: line 29: Attribute &#8217;ss:Index&#8217; outside of element.</p>
<p>Code:<br />
File xmlFile = new File(&#8221;H:\\TEMP\\rooster-sal.xml&#8221;);<br />
        File xsltFile = new File(&#8221;H:\\NetBeansProjects\\Roosterdiensten\\src\\nl\\prhc\\roosterdiensten\\resources\\normalize-excel-sheet.xslt&#8221;);</p>
<p>        // JAXP reads data using the Source interface<br />
        Source xmlSource = new StreamSource(xmlFile);<br />
        Source xsltSource = new StreamSource(xsltFile);</p>
<p>        // the factory pattern supports different XSLT processors<br />
        TransformerFactory transFact =<br />
                TransformerFactory.newInstance();<br />
        Transformer trans;<br />
        try {<br />
            trans = transFact.newTransformer(xsltSource);<br />
            trans.transform(xmlSource, new StreamResult(new File(&#8221;H:\\TEMP\\rooster-sal-out.xml&#8221;)));<br />
        } catch (TransformerException ex) {<br />
            Logger.getLogger(RoosterdienstenView.class.getName()).log(Level.SEVERE, null, ex);<br />
        }</p>
<p>    }</p>
]]></content:encoded>
	</item>
</channel>
</rss>
