Associatin style sheet
- Dear sir,
I am using TransferResultSet sample for generation of XML document.I want to associate an CSS style sheet with the generated XML document.How can I do that.
[Non-text portions of this message have been removed]
- In the toXML method, the call to dbmsToDOM.retrieveDocument(rs) returns
a DOM tree as the variable named doc. What you need to do is use the DOM
API to add a processing instruction to the Document node in this DOM
tree. The processing instruction has the form:
<?xml-stylesheet type="text/css" href="my_css_file.css"?>
For information on using DOM, see the DOM core (version 2 or 3)
or find a tutorial online.
For information about using XML and CSS see, for example:
It is not clear to me if all browsers support CSS + XML.
> Dear sir,
> I am using TransferResultSet sample for generation of XML document.
> I want to associate an CSS style sheet with the generated XML
> document.How can I do that.