Next in thread → Next in month →

Fw: [sca-c-cpp] NEW ISSUE: Restriction base types have incorrect namespace

From
Bryan Aupperle <>
Date
2010-05-05T17:18:12+00:00
ID
Thread
Fw: [sca-c-cpp] NEW ISSUE: Restriction base types have incorrect namespace
This issue has been assigned ID CCPP-107
by the jira system. 

See http://osoa.org/jira/browse/CCPP-107

Bryan Aupperle, Ph.D.

STSM, WebSphere Enterprise Platform Software Solution Architect

Research Triangle Park,  NC 

+1 919-254-7508 (T/L 444-7508)

Internet Address: 

----- Forwarded by Bryan
Aupperle/Raleigh/IBM on 05/05/2010 01:16 PM -----

From:
Bryan Aupperle/Raleigh/IBM@IBMUS

To:


Date:
05/05/2010 09:13 AM

Subject:
[sca-c-cpp] NEW ISSUE: Restriction base
types have incorrect namespace

Target: Test_Types.xsd in the C test suite 

Description: Test_Types.xsd defines several types of bounded lengths.  These
types are all restrictions of standard XSD types.  The target namespace
for the schema is the OASIS scatest namespace to be consistent with the
namespace for the comosite and componentType documents in the test suite.
 But the base types in the restrictions in the schema are not namespace
qualified and thus the base types are not in the correct namespace.  For
example: 

    <simpleType
name="boundedString50">

        <restriction
base="string">

            <maxLength
value="49"/>

        </restriction>

    </simpleType>

Proposal: 

Define the standard schema namespace: 

    xmlns:xsd="http://www.w3.org/2001/XMLSchema"

and update the definitions to use the xsd prefix like this:

    <simpleType
name="boundedString50">

        <restriction
base="xsd:string">

            <maxLength
value="49"/>

        </restriction>

    </simpleType>

Bryan Aupperle, Ph.D.

STSM, WebSphere Enterprise Platform Software Solution Architect

Research Triangle Park,  NC 

+1 919-254-7508 (T/L 444-7508)

Internet Address: 
Next in thread → Next in month →