W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2011

Re: extending namespaces

From: XMLSchema at XML4Pharma <XMLSchema@XML4Pharma.com>
Date: Mon, 28 Feb 2011 10:34:20 +0100
Message-ID: <10CA229D97B5478BB3AD1893A3D2E32E@D6NXTQ1J>
To: "Andrew Leslie" <info@structuredinformation.co.uk>, <xmlschema-dev@w3.org>
You may have a look at the CDISC ODM standard (www.cdisc.org/odm), of which I am one of the authors.
It is an XML-based standard that explicitely allows schema extensions (so-called "vendor extensions") using the "xsd:redefine" mechanism.
When adding extensions there, it is not necessary to edit the core schema itself.

If you want, I can send you some sample files later.

Best regards,

Jozef Aerts
XML4Pharma
  ----- Original Message ----- 
  From: Andrew Leslie 
  To: xmlschema-dev@w3.org 
  Sent: Monday, February 28, 2011 10:23 AM
  Subject: extending namespaces


  Folks, 

   

  Rather than modifying a schema directly, I would like to explore the options of utilizing namespace extensions.

  One suggestion is to extend the namespace to include an extra xsd with certain elements declared and then call this from the parent  xsd.

   

  However, this is all well and good until a certain element is actually inserted, as all the namespace attributes are inserted with it.

  Similar to the S1000D  xlink (eg: <arc xmlns="http://www.w3.org/1999/xlink" xmlns:ns1="http://www.w3.org/1999/xlink" ns1:type="1" ns1:from="1" ns1:to="5"/>

              <arc xmlns="http://www.w3.org/1999/xlink"/>)

   

  Do you know of any way the schema or even the data in fact can be extended so that these certain elements can be inserted without the namespaces appearing within the attributes ?

  OR is the only  method to modify the schema directly ?

   

  Regards,

   

  Andy

   

   

   

  Andrew Leslie

  Director

  Structured Information Limited

  Beer, East Devon, UK, EX12 3LU

   

  t: +44 (0)1297 625572

  m: +44 (0)7811 188615

  e: info@structuredinformation.co.uk

  w: www.structuredinformation.co.uk

   

  Registered in England and Wales No. 5687809. Registered Address: South Riding, Underleys, Beer, East Devon, EX12 3LU

  CONFIDENTIALITY NOTICE:  This e-mail and any attachments are strictly confidential and may be protected by legal privilege.  If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is STRICTLY PROHIBITED.  If you have received this e-mail in error, please notify us immediately by returning it to the sender and deleting this copy from your system.  Thank you for your co-operation.

   
Received on Monday, 28 February 2011 09:35:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 28 February 2011 09:35:02 GMT