fun addStylesheet(href: String?, type: String?): XMLDocument? { val pi = PI() pi.setTarget("xml-stylesheet").addInstruction("href", href).addInstruction("type", type) prolog.addElement(pi) return this }
This adds a stylesheet to the XML document .