http://www.google.com/apis/maps/documentation/
This class provides methods to apply XSLT to XML in a browser-independent way.
Static Methods | Return Value | Description |
---|---|---|
create(xsltnode) | GXslt | Creates a GXslt instance from the XSLT stylesheet given as DOM representation. |
transformToHtml(xmlnode, htmlnode) | Boolean | Uses the XSLT stylesheet given in the constructor of this GXslt instance to transform the XML document given as DOM representation in xmlnode. Appends the resulting HTML document fragment to the given htmlnode. This only works if the browser natively supports XSL transformations, in which case it will return true. Otherwise, this function will do nothing and return false. |
The GXslt class provides factory methods to apply XSLT to XML in a brower-independent way. The class should work on any browser, though it falls back on a JavaScript XSLT implementation by default if there is no native XSLT processor in the web browser. This can be quite slow depending on the browser's JavaScript implementation.
Method | Description |
---|---|
create(xsltXmlDoc) | Returns an GXslt instance from the given XML DOM, which should be an XSLT document |
Method | Description |
---|---|
transformToHtml(xmlDoc, htmlContainer) | Transforms the given XML document using this XSLT, placing the resulting HTML in the given HTML DOM element container |