[Yanel-commits] rev 22376 -
public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources
michi at wyona.com
michi at wyona.com
Fri Feb 2 01:24:16 CET 2007
Author: michi
Date: 2007-02-02 01:24:14 +0100 (Fri, 02 Feb 2007)
New Revision: 22376
Modified:
public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java
Log:
language fixed whereas it still doesn't run offline with the yanel website realm
Modified: public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java
===================================================================
--- public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java 2007-02-02 00:22:53 UTC (rev 22375)
+++ public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java 2007-02-02 00:24:14 UTC (rev 22376)
@@ -128,16 +128,16 @@
transformer.transform(new SAXSource(xmlReader, new org.xml.sax.InputSource(getContentXML(repo, yanelPath, revisionName))), new StreamResult(baos));
InputStream inputStream = new ByteArrayInputStream(baos.toByteArray());
+ defaultView.setInputStream(inputStream);
// TODO: Seems to have problems accessing remote DTDs when being offline
/*
- I18nTransformer i18nTransformer = new I18nTransformer("global", language);
+ I18nTransformer i18nTransformer = new I18nTransformer("global", getLanguage());
SAXParser saxParser = SAXParserFactory.newInstance().newSAXParser();
saxParser.parse(inputStream, i18nTransformer);
defaultView.setInputStream(i18nTransformer.getInputStream());
*/
- defaultView.setInputStream(inputStream);
return defaultView;
} else {
More information about the Yanel-commits
mailing list