Re: [xml] VMS and Including Schemas
- From: marc tomlinson uk bnpparibas com
- To: smith nwoca org
- Cc: xml gnome org
- Subject: Re: [xml] VMS and Including Schemas
- Date: Fri, 4 Jun 2004 08:59:47 +0100
Thanks for the advice.
I found that using 3 (three) '/' worked.
ie
<xs:include schemaLocation="file:///xml%24d_com/bnd2ML.xsd"/>
Regards,
Marc
Internet
smith nwoca org - 03/06/2004 18:16
To: Marc TOMLINSON
cc: xml
Subject: Re: [xml] VMS and Including Schemas
Marc:
Assuming you're using a recent version of OpenVMS (7.2 or higher) with
recent C RTL, you should try using Unix file specifications.
Something along the lines of:
<xs:include schemaLocation="file://xml$d_com/bnd2ML.xsd"/>
However, if I read the specs correctly, $ is a reserved character so
you may have to escape it (or use a different logical):
<xs:include schemaLocation="file://xml%24d_com/bnd2ML.xsd"/>
The C RTL will transparently convert the unix specifications into VMS,
including translating the logical name. I haven't tried this
specifically with LIBXML, but I rarely find C programs where this
doesn't work.
See the C RTL Reference for information about how the RTL translates
unix file specations.
Regards,
-djs
--
+--------------------------------------------------------------------+
Dave Smith; Director-Programming Northwest Ohio Computer Association
State Software Development Team Northern Buckeye Education Council
Phone: (419) 267-5565 Ext 2533 smith nwoca org
FAX: (419) 267-5222 http://ssdt.nwoca.org/~smith
marc tomlinson uk bnpparibas com wrote:
Hi,
I've been trying to parse and validate an XML document where the
schema tries to include various other schemas.
eg:
<?xml version="1.0" encoding="UTF-8"?> <xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:include schemaLocation="xml$d_com:bnd2ML.xsd"/> ...
The error is saying that XML$D_COM:BND2ML.XSD is not a valid URI. I
have tried variations with file://... etc but with no luck.
The code is being compiled on a VMS operating system.
Can you please advise on the best course of action and whether or
not including schemas is achieveable from a VMS platform.
Many thanks in advance.
Marc
This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.
**********************************************************************************************
BNP Paribas Private Bank London Branch is authorised
by CECEI & AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in the
United Kingdom.
BNP Paribas Securities Services London Branch is authorised
by CECEI & AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in the
United Kingdom.
BNP Paribas Fund Services UK Limited is authorised and
regulated by the Financial Services Authority.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]