Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 22nd, 2006, 08:12 AM
Registered User
Join Date: Jun 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Schema Validation

Hello all,
one more question, which seems to me that it is not clear at all:

How can a xml document be validated against a schema if the schema has also references to other xsd documents????
( In other words: If the whole schema consists of many files ))

As i know I can give in Java just one Schema-file to validate it against a xml document.


Old June 22nd, 2006, 08:23 AM
mhkay's Avatar
Wrox Author
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts

This depends on the schema validator you are using.

One way is to reference a schema document that contains xs:includes or xs:imports for all the other schema documents.

But you may also be able to specify multiple schema documents directly. You can with Saxon, for example, by using configuration.addSchema().

Michael Kay
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bewildering schema error in validation. overcast XSLT 5 August 26th, 2008 01:16 PM
Schema to Schema conversion onlyda XSLT 5 March 23rd, 2006 12:25 PM
XML schema validation problems BrendonMelville XML 3 February 15th, 2006 06:02 PM
XML validation with Schema/DTD using JAXP Hendrik XML 0 December 28th, 2004 06:58 AM
XML Schema Validation without internet esp5a XML 1 September 5th, 2003 06:22 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.