Skip to main content

Posts

Showing posts with the label xslt

Creating xml based on html using xslt in java

Please help me i am doing project of file conversion that is converting xml to html using xsl in java and also i need to convert html to xml using the xsl. my first process is got over.but i structed in second part of conversion.. Is there is any possibility to do that conversion.I will tell you the exact flow of the first process... This is my sample xml file: tabl.xml: <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xml" href="testxsl.xsl"?> <mainpara> <epigraph> <para>Though successful research demands a deep <emphasis role="italic">trained</emphasis> <emphasis role="italic">taught</emphasis> to regard. </para> <para>Kuhn (1976, p. 66)</para> </epigraph> <blockquote role="extract"> <para>Though successful research demands a deep commitment to the status quo. <emphasis role="italic">train

Using xsltproc style sheet in java

I would like to convert an xml to a text with java. Until now i have used xsltproc with a style sheet file. Now i would like to do this inside a java class, and i would be very happy if i can do this reusing the style sheet of xsltproc. Is there any way to do this?