php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57236 Substituation group processing not working
Submitted: 2006-09-14 06:21 UTC Modified: 2007-06-25 08:50 UTC
From: simonslaws at googlemail dot com Assigned:
Status: No Feedback Package: SCA_SDO (PECL)
PHP Version: 5.1.4 OS: XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: simonslaws at googlemail dot com
New email:
PHP Version: OS:

 

 [2006-09-14 06:21 UTC] simonslaws at googlemail dot com
Description:
------------
SDO fails to recognize elements in a substitution group other than the base element of the substitution group

Reproduce code:
---------------
Schema

  <complexType name="ComplexTypeSubstitutionGroupBaseType">
    <sequence>
      <element name="ElementInSubstitutionGroupBase" type="string"/>
    </sequence>
  </complexType>
  <element name="ElementSubstitutionGroupBase" type="tns:ComplexTypeSubstitutionGroupBaseType"/>

  <element name="ElementSubstitutionGroupUnrelated" type="string" substitutionGroup="tns:ElementSubstitutionGroupBase"/>
  
  <complexType name="ComplexTypeSubstitutionGroupExtendsType">
    <complexContent>
      <extension base="tns:ComplexTypeSubstitutionGroupBaseType">
        <sequence>
          <element name="ElementInSubstitutionGroupExtends" type="string"/>
        </sequence>
      </extension>
    </complexContent>
  </complexType>
  
  <element name="ElementSubstitutionGroupExtends" type="tns:ComplexTypeSubstitutionGroupExtendsType" substitutionGroup="tns:ElementSubstitutionGroupBase"/>
 
  <element name="RootElement40">
    <complexType>
      <sequence>
        <element ref="tns:ElementSubstitutionGroupBase" maxOccurs="unbounded" />
      </sequence>
    </complexType>
  </element>

input XML

<RootElement40 xmlns="http://www.apache.org/tuscany/interop"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.apache.org/tuscany/interop interop40.xsd">

	<ElementSubstitutionGroupBase>
		<ElementInSubstitutionGroupBase>
			ElementInSubstitutionGroupBase
		</ElementInSubstitutionGroupBase>
	</ElementSubstitutionGroupBase>

        <ElementSubstitutionUnrelated>Some Data</ElementSubstitutionUnrelated>

	<ElementSubstitutionGroupExtends>
		<ElementInSubstitutionGroupBase>
			ElementInSubstitutionGroupBase
		</ElementInSubstitutionGroupBase>
		<ElementInSubstitutionGroupExtends>
			ElementInSubstitutionGroupExtends
		</ElementInSubstitutionGroupExtends>
	</ElementSubstitutionGroupExtends>

</RootElement40>

Expected result:
----------------
Creation of SDO

Actual result:
--------------
Exception in PHP Interop test: SDO_DAS_XML::loadFile - Unable to parse the suppl
ied xml file
2 parse error(s) occurred when parsing the file './interop40-in.xml':
1. Parser found unknown element ElementSubstitutionUnrelated
2. Parser found unknown element ElementSubstitutionGroupExtends

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-24 18:25 UTC] cem@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PECL.


I think you're probably describing a Tuscany problem, but there's no link in the defect and I don't see an obvious issue which corresponds.Please either add a link, or if this is a problem with the PHP extension, confirm that it still exists with the latest release.

Also the testcase is incomplete. Please make sure the schema is complete if you reopen.
 [2007-06-25 08:50 UTC] cem@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 02:01:29 2024 UTC