Example usage for com.liferay.portal.kernel.xml SAXReaderUtil createProcessingInstruction

List of usage examples for com.liferay.portal.kernel.xml SAXReaderUtil createProcessingInstruction

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.xml SAXReaderUtil createProcessingInstruction.

Prototype

public static ProcessingInstruction createProcessingInstruction(String target, String data) 

Source Link

Usage

From source file:com.liferay.portlet.journal.action.GetArticleAction.java

License:Open Source License

protected void addStyleSheet(Document doc, String url, Map<String, String> arguments) {

    List<Node> content = doc.content();

    ProcessingInstruction processingInstruction = SAXReaderUtil.createProcessingInstruction("xml-stylesheet",
            arguments);//from w  w w .java  2 s  .  com

    content.add(0, processingInstruction);
}