File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes How to use XInclude with xalan/xerces for XSD validation and XSLT? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "How to use XInclude with xalan/xerces for XSD validation and XSLT?" Watch "How to use XInclude with xalan/xerces for XSD validation and XSLT?" New topic
Author

How to use XInclude with xalan/xerces for XSD validation and XSLT?

Siegfried Heintze
Ranch Hand

Joined: Aug 11, 2000
Posts: 359
I have XInclude working for XSLT using Microsoft's .NET API and now I am trying to incorporate it in my xsd file.

Does xerces/xalan implement XInclude? I tried performing an XSLT with the sample xalan command line too and while it did not give me an error it did not execute the include (i.e., insert the contents from the specified file).

I extracted xinclude.xsd from
http://www.w3.org/TR/2002/CR-xinclude-20020221/#syntax so I would not be
hitting someone's web site every time I validated my xml.

Here is the beginning of my xsd file:


Here are the errors I am getting from xerces' saxcount command line tool.



What am I doing wrong?

Since someone in another forum pointed out that my schema statement was inconsistency to my import statement (2001 v. 2003) I tried playing with this as well but no luck.

Thanks!
Siegfried
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to use XInclude with xalan/xerces for XSD validation and XSLT?
 
Similar Threads
problem with loading mapping.xml
wsdl schema import problem
resolve namespace
Need help regarding <p>
text in XML tag