Hello,

------
ClassLoader loader = this.getClass().getClassLoader();
        
InputStream ips = loader.getResourceAsStream("cv.xsl");
System.out.println(ips);
            
System.setProperty( "javax.xml.parsers.SAXParserFactory" ,
"org.apache.xerces.jaxp.SAXParserFactoryImpl");
            
System.setProperty("org.xml.sax.driver" ,
"org.apache.xerces.parsers.SAXParser");
            
            
TransformerFactory tFactory = TransformerFactory.newInstance();
            
Transformer transformer = tFactory.newTransformer(new StreamSource(ips));
----



This generates the following error ....

------
[2001/10/31 13:04:30][0         ][I]: SystemId Unknown; Line 1; Column 146; 
[2001/10/31 13:04:30][0         ][I]: ** Transformer Factory error
[2001/10/31 13:04:30][0         ][I]:
javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException: xsl:stylesheet is not allowed in
this position in the stylesheet!
---




does anyone know why?


a view lines form cv.xsl

----


<?xml version="1.0"?><xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:fo="http://www.w3.org/1999/XSL/Format";><xsl:template match="CV">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
<fo:layout-master-set>
<fo:simple-page-master master-name="main" height="29.7cm" width="21cm"
margin-top="1cm" margin-bottom="2cm" margin-left="2.5cm"
margin-right="2.5cm">

etc etc etc







Gerard


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to