GXslt [class]-GoogleMaps/API/doc/ClassReference/10-GXslt-N☆E 学習帳

[ リロード ]   [ ソース ]  [ トップ | 一覧 | 単語検索 | 最新 | バックアップ | ヘルプ ]

Counter: 3119, today: 6, yesterday: 0

GXslt [class]

http://www.google.com/apis/maps/docu­mentation/

Version 2 (2006.4)

This class provides methods to apply XSLT to XML in a browser-independent way.

Static Methods

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.

 

Version 1

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.

Static Methods

Method Description
create(xsltXmlDoc) Returns an GXslt instance from the given XML DOM, which should be an XSLT document

 

Methods

Method Description
transformToHtml(xmlDoc, htmlContainer) Transforms the given XML document using this XSLT, placing the resulting HTML in the given HTML DOM element container