|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to create xsl-stylesheet processing instruction with
"Meukens, Kris" wrote:
>
> How can I create a xsl-stylesheet <?xml-stylesheet
> href="hello-page-html.xsl" type="text/xsl"?> processing instruction with the
> DOM API?
I'm not an expert on the DOM, but wouldn't the following work?
pi = document.createProcessingInstruction("xml-stylesheet",
"href=\"hello-page-html.xsl\" type=\"text/xsl\"");
document.insertBefore(pi, document.getDocumentElement());
The only thing I'm not sure about is if putting it before the
root element works - maybe this is what you were asking?
--
Warren Hedley
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








