if (srcNode != null) {
node = (Node) xPath.evaluate("@type", srcNode, XPathConstants.NODE);
String srcType = node.getNodeValue();
if (srcType.equals("xslt")) {
String rdfFormat = "rdfxml";
Syntax rdfSyntax = Syntax.RdfXml;
node =
(Node)xPath.evaluate("@syntax", srcNode,
XPathConstants.NODE);
if (node != null) {
rdfFormat = node.getNodeValue();