Re: Absolute URI

6 views
Skip to first unread message

Bob Jolliffe

unread,
Jul 27, 2010, 10:25:52 AM7/27/10
to Gary Patchen, Florian Annen, sdm...@googlegroups.com
On 27 July 2010 14:47, Gary Patchen <gary.p...@b-i.com> wrote:
> Hi Bob,
>
>
>
> Looking at the possibility to added an absolute address to an external
> code-list in the uri ( I can’t recall we actually confirmed the address must
> start with http:// or https:// for absolute addresses )
>
> we tried to add an address with http:// and the schematron gives an error
> suggesting the rule may not work for absolute URIs. Here are the details:

Yes good point. We don't need to specify the url protocol (it could
be http, https, ftp ...) but the point is if it is "file:" or assumed
to be file: it should trigger the rule. I'll fix that.

Cheers
Bob

>
>
> Xml we have:
>
> <structure:CodeList id="CL_CALENDAR_TYPE" agencyID="SDMX-HD" version="1.0"
> isFinal="true"
> urn="urn:sdmx:org.sdmx.infomodel.codelist.CodeList=SDMX-HD:CL_CALENDAR_TYPE[1.0]"
> isExternalReference="true"
> uri="http://localhost/SDMX-HD-Files/COMMON/SDMX-HD/codelists/CL_CALENDAR_TYPE.SDMX-HD.1.0.xml"><structure:Name
> xml:lang="en">Calendar Type</structure:Name></structure:CodeList>
>
>
>
> Schematron File :
>
> sdmx-hd-structure.sch
>
> Rule Error:
>
> External references to elements with agencyID='SDMX-HD' shall take the form
> of
>
> "COMMON/SDMX-HD/" followed by either "codelists", "conceptschemes",
>
> "hierarchies" or "organisationschemes" followed by the filename. The
> filename part
>
> of the uri shall be a concatenation of the id, agencyID and version
> attributes
>
> separated by a '.' character, and should have a suffix of ".xml".
>
> Rule:
>
>
>
> <sch:pattern abstract="true" id="sdmx-hd-structure-element">
>
> <sch:title>Specific rules relating to SDMX-HD Common structure
> elements</sch:title>
>
> <sch:p>A conforming producer shall not alter the contents of elements with
> agencyID
>
> attribute of 'SDMX-HD' in any way. Conforming producers of SDMX-HD zip
> packages should
>
> observe the following conventions regarding paths and names of external
> references.</sch:p>
>
> <sch:rule context="$element[@isExternalReference='true' and
> @agencyID='SDMX-HD']"
>
> role="External reference URLs">
>
> <sch:let name="rel-path"
> value="concat('COMMON/SDMX-HD/$el-path/',concat(@id,'.',@agencyID,'.',@version,'.xml'))"/>
>
> <sch:assert test="(contains(@uri,':')=false) and (@uri=$rel-path or
> @uri=concat('./',$rel-path))">
>
> External references to elements with agencyID='SDMX-HD' shall take the form
> of
>
> "COMMON/SDMX-HD/" followed by either "codelists", "conceptschemes",
>
> "hierarchies" or "organisationschemes" followed by the filename. The
> filename part
>
> of the uri shall be a concatenation of the id, agencyID and version
> attributes
>
> separated by a '.' character, and should have a suffix of ".xml".
> </sch:assert>
>
> </sch:rule>
>
> </sch:pattern>
>
>
>
> Can you look into this?
>
>
>
> regards
>
>
>
> gary patchen
>
> lead consultant
>
> direct + 41.(0)58.307.7094
>
> mobile +41.(0)79.333.1339
>
> gary.p...@b-i.com
> www.b-i.com
>
> blue-infinity headquarters
> t +41(0)58.307.7000
> f +41(0)58.307.7001
> INTERNATIONAL
> t +800.307.70.000
> f +800.307.70.001
>
> b-i  branding.technology.integration.
>
> The information in this e-mail, and those ensuing, is confidential and may
> be legally privileged. It is intended solely for the addressee. If you are
> not the intended recipient, please destroy this message and notify us
> immediately.
>
>
> Please think of the environment before printing this email
>
>
>
>

Reply all
Reply to author
Forward
0 new messages