Menu
  • HOME
  • TAGS

XML XInclude looses namespace in included nodes

xml,xml-namespaces,xsd-validation,xinclude

Well, it seems that you have a few modifications to perform: 1) In your XML fragment, you need to declare the same namespace as as the "master" document <inner_element xmlns="urn:mynamespace"> <description>Test</description> </inner_element> 2) In the resulting document, an xml:base attribute is automatically set (see XInclude spec, ยง4.5.5 and C.1) so...

How to use multiple configuration files for log4j2

java,xml,log4j2,xinclude

This may be helpful: Log4j2 will first look for log4j2-test.xml in the classpath if that file is not found, it will look for log4j2.xml in the classpath So one option is to copy the library's configuration (log4j2.xml) to log4j2-test.xml and add your own configuration to log4j2-test.xml. Furthermore, Log4j2 supports XInclude...

java xalan transform with and without xinclude in the same app

java,xml,xslt,xalan,xinclude

I think that is more a question related to the XML parser than to the XSLT processor. According to http://xerces.apache.org/xerces2-j/features.html you can set import javax.xml.parsers.SAXParser; import org.xml.sax.SAXException; import org.xml.sax.XMLReader; SAXParser parser = /* created from SAXParserFactory */; XMLReader reader = parser.getXMLReader(); try { reader.setFeature("http://apache.org/xml/features/xinclude", true); } catch (SAXException e) {...

solrException. XML parser doesn't support XInclude option

xml,tomcat,solr,lucene,xinclude

This can be triggered by other configuration options than solr.xml and solrconfig.xml - the exact error message seems to be produced by the Currency field, which require XInclude to load its list of currencies. While I'm not sure about the exact reason for this, my guess is that Tomcat bundles...

xslt document function doesn't resolve the xinclude tags in the referenced xml file

xml,xslt,saxon,xinclude,xerces2-j

I just added a URI Resolver at the commandline. -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration net.sf.saxon.Transform -x:org.apache.xml.resolver.tools.ResolvingXMLReader -y:org.apache.xml.resolver.tools.ResolvingXMLReader -r:org.apache.xml.resolver.tools.CatalogResolver I want to thank Mickael Kay and Dave Pawson for the help....

jQuery Ajax calling XML with Xinclude

jquery,ajax,xml,xinclude

XML is just text to the AJAX request, so you need to request the original file, then loop through the xi:includes and request each of those files and so on.