xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmad Morad <mo...@db.informatik.uni-kassel.de>
Subject XMLReaderFactory
Date Wed, 03 Jan 2001 12:22:36 GMT
In the following code i try to produce a Stylesheet processor object from a 
stylesheet file, to avoid parsing the xsl file every time i transform the xml 
document. 

...
private Processor tableProcessor;
private Templates tableTemplates;

tableProcessor = Processor.newInstance("xslt");
tableTemplates = tableProcessor.process(new InputSource(
					new StringReader(standardTableStyle)));

...

Within a "normal" application these works well, but within an applet
i got the error that the system property "org.xml.sax.driver" is not specified
at 
org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:90)
at 
org.apache.xalan.processor.StylesheetProcessor.process(StylesheetProcessor.java:160) 

I can't know where is these property, and why can't an applet found these 
propperty but an application. 

Note:
I added the following to my java.policy file:
grant {
      // sax driver property
      permission java.util.PropertyPermission "org.xml.sax.driver", "read";
};
                                              
--

Thank you for help!
Morad.

-- 
Dipl. Math. Morad Ahmad ///\\ morad@db.informatik.uni-kassel.de 
Universitaet Gh. Kassel['`|'`]www.db.informatik.uni-kassel.de/~morad
Heinrich-Plett-Str. 40 { ^ }Tel.: ++49(561)804-4101 
D-34109 Kassel, Germany \\// Fax: ++49(561)804-4199

Mime
View raw message