All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jdom2.test.cases.xpath.TestXalanCompiled Maven / Gradle / Ivy

Go to download

A complete, Java-based solution for accessing, manipulating, and outputting XML data

There is a newer version: 2.0.2
Show newest version
package org.jdom2.test.cases.xpath;

import org.junit.Test;

import org.jdom2.contrib.xpath.xalan.XalanXPathFactory;
import org.jdom2.xpath.XPathFactory;

@SuppressWarnings({"javadoc"})
public class TestXalanCompiled extends AbstractTestXPathCompiled {
	
	public TestXalanCompiled() {
		super(true);
	}

	private static final XPathFactory myfac = new XalanXPathFactory();
	
	@Override
	XPathFactory getFactory() {
		return myfac;
	}
	
	@Override
	public void testAncestorOrSelfFromNamespace() {
		// nothing... can't set a Namespace as a context in Xalan;
	}
	
	@Override
	@Test
	public void testXPathPrecedingNode() {
		// we do not get items outside the root node for Document stuff.
		checkXPath("preceding::node()", child2emt, null, 
				maincomment, mainpi, maintext1, child1emt, child1text, maintext2);
	}
	
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy