XSLT and XML does not match -


i have xml on doing xslt transformation. xslt receiving other source, have no control on it. problem occurs when there slight difference between xslt , xml. example xml looks this:

<a>    <b></b>    <c></c> </a> 

later xml changes this:

<a>    <b>       <c></c>    </b> </a> 

so in second case, xslt transformation throws heap space exception. there way can validate xslt against xml? want check if xslt corresponds correct xml. can tell me how can avoid outofmemory exception , if exception, how can prevent application consume jvm heap memory?

do have dtd or xml schema? can validate transformation output. validation of transformation without running it, seems run afoul of incompleteness theorem.

as preventing transformation eat memory, reliable way prevent sandboxing separate process controlled memory constraints.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -