Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Please see the complete working example, created as a part of "AndStatus" application. It uses XSLT to show localized (!) Application Change Log in a WebView of the HelpActivity.</p> <p>The working example consists of these parts:</p> <ol> <li><p>The small utility class without any dependencies (i.e. it may be easily reused) which has this function:</p> <p>/**</p> <ul> <li>Transform XML input files using supplied XSL stylesheet and show it in the WebView</li> <li>@param activity Activity hosting the WebView</li> <li>@param resView WebView in which the output should be shown</li> <li>@param resXml XML file to transform. This file is localized! It should be put into "raw-" folder </li> <li>@param resXsl XSL stylesheet. In the "raw" folder. May be single for all languages... */ public static void toWebView(Activity activity, int resView, int resXml, int resXsl) { ... } See full source code here: <a href="https://github.com/andstatus/andstatus/blob/master/src/org/andstatus/app/util/Xslt.java" rel="nofollow">Xslt.java</a></li> </ul></li> <li><p>The example of its usage: See <a href="https://github.com/andstatus/andstatus/blob/master/src/org/andstatus/app/HelpActivity.java" rel="nofollow">HelpActivity.java</a></p></li> <li><p>The XML file to be transformed: <a href="https://github.com/andstatus/andstatus/blob/master/res/raw/changes.xml" rel="nofollow">changes.xml</a> and the corresponding XSL stylesheet: <a href="https://github.com/andstatus/andstatus/blob/master/res/raw/changesxsl.xsl" rel="nofollow">changesxsl.xsl</a></p></li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload