Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 54542 invoked from network); 24 Jul 2007 22:46:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jul 2007 22:46:24 -0000 Received: (qmail 49290 invoked by uid 500); 24 Jul 2007 22:46:19 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 49247 invoked by uid 500); 24 Jul 2007 22:46:19 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 49236 invoked by uid 99); 24 Jul 2007 22:46:19 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2007 15:46:18 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of enjoyjava@gmail.com designates 209.85.146.179 as permitted sender) Received: from [209.85.146.179] (HELO wa-out-1112.google.com) (209.85.146.179) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2007 15:46:17 -0700 Received: by wa-out-1112.google.com with SMTP id k22so2726waf for ; Tue, 24 Jul 2007 15:45:56 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:from:to:cc:subject:date:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:x-mimeole; b=Mwpb8TrloM0Ixd1IhaMMV8M96o9I1M07xHp22OTnkXiYCIuiuRYXv9M9dUHeszttX8Ms+YE+7u2i9E0DriOfuyv6FrnhnZAEU83mGW6q25La7XzarXIbBoyTZU22QuJm6w4V08DguFMFZI1mtW02SLkH5FpdF2R/W3PwbrF1UeA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:from:to:cc:subject:date:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:x-mimeole; b=hRY/LFszW9UaovM5GRUGdWV7J0WGwtLgI3VNsWAIQyKOV4OII6wPK0FZqhV6KfHaG1amEUAlq55BgWueiQFmLO17LG5TI/bvtx2nIcEnmWO1B5vxSDNv2hOT3g1m8xoUuOr0OE4gSuXbHClIH1P1G1kgiip/Z11bkEMsw/hYulQ= Received: by 10.115.18.1 with SMTP id v1mr17708wai.1185317155817; Tue, 24 Jul 2007 15:45:55 -0700 (PDT) Received: from rfengt60p ( [76.199.137.200]) by mx.google.com with ESMTPS id l38sm13851waf.2007.07.24.15.45.53 (version=SSLv3 cipher=RC4-MD5); Tue, 24 Jul 2007 15:45:54 -0700 (PDT) Message-ID: <01c601c7ce44$73a15780$6601a8c0@rfengt60p> From: "Raymond Feng" To: Cc: Subject: [XmlSchema] Pluggability for XSD import/include resolvers? Date: Tue, 24 Jul 2007 15:46:18 -0700 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Virus-Checked: Checked by ClamAV on apache.org Hi, We currently use XmlSchema to load XSDs. To resolve the import/include directives using our schemes, we provide an implementation of org.apache.ws.commons.schema.resolver.URIResolver and set it to org.apache.ws.commons.schema.XmlSchemaCollection. It works well if the schemaLocation attribute for the or is set. Now we would like to handle the cases where the schemaLocation attribute is not present. For example, . Without the schemaLocation, we resolve the import/include by namespace. In this case, we already have a map keyed by namespace for a list of XmlSchema objects loaded from a catalog or other files and we want to reuse them. Would it be possible to open the XmlSchemaCollection.getSchema(SchemaKey) method so that we can override/customize the behavior to associate existing XmlSchema instances to a SchemaKey? BTW, using a singleton of XmlSchemaCollection to keep the schema map is not always feasible. Another observation is that a NPE will be thrown if the URIResolver.resolveEntity() returns null. Is there any way to disable the aggressive resolving/loading of import/include? rfeng@apache.org Raymond Feng Apache Tuscany --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org