List of usage examples for com.liferay.portal.kernel.xml SAXReaderUtil createProcessingInstruction
public static ProcessingInstruction createProcessingInstruction(String target, String data)
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); }