org.benow.web.nls
Class NLSProcessor
java.lang.Object
org.benow.web.nls.NLSProcessor
- All Implemented Interfaces:
- DOMPostProcessor
public class NLSProcessor
- extends java.lang.Object
- implements DOMPostProcessor
Scans input for elements with nlsid attribute and replaces with values found in nls files for users lang.
ie if the user has an assigned language, say 'fr', and is accessing /some/nlsd.page, then all elements
with an nlsid after the nlsd.page transformation are scanned. nls values for /some/nlsd.lang-fr.xml
are read and have an id. Values for nlsid attributes are replaced with values with of matching nlsid from lang
file.
In addition, if the user has NLSService.invoke, nls'd tags are augmented, to allow linking to nls management page.
- Author:
- andy
|
Method Summary |
void |
postPocessHTML(org.w3c.dom.Document htmlDoc,
java.util.Map<java.lang.String,java.lang.Object> templateParams,
org.benow.xml.xsl.XSL generator)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NLSProcessor
public NLSProcessor()
postPocessHTML
public void postPocessHTML(org.w3c.dom.Document htmlDoc,
java.util.Map<java.lang.String,java.lang.Object> templateParams,
org.benow.xml.xsl.XSL generator)
throws java.lang.Throwable
- Specified by:
postPocessHTML in interface DOMPostProcessor
- Throws:
java.lang.Throwable