It's quite complicated, I try to understand it easily. Just follow these steps:
- Create your XSLT file under res / raw,
- either parse your XML, or be prepared with your XML (in res / raw)
- Finally, use them to display in Android Webview
your cdcatalog_with_xsl.xml and cdcatalog.xsl should be in res/raw . I created LoadXSLTinWebview which you need server _
public class LoadXSLTinWebview extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().requestFeature(Window.FEATURE_PROGRESS); WebView webview = new WebView(this); setContentView(webview);
OutPut:

Hope this helps everyone!
source share