Skip to main content

Posts

Showing posts with the label xhtml

What is xhtml"s role attribute? What do you use it for?

I have read w3's page on this here , but it is still vague to me. Is the role attribute's purpose to clarify the code? Or will it be interpreted by some browsers or spiders? Can it be used as a dom selector using some javascript libraries (I am thinking that since the id attribute has to be unique, this could be use to identify multiple resources on a page)? Source: Tips4all

I want to show list items as 2 or more columns (dynamic alignment)

I am able to do the list using float:left; like this But I would like to show it like this (as 2 or more columns) How can I do that? @sandeep gave good solution. Unfortunately does not work in IE(need ie7 and above). any help? Source: Tips4all

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