This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 93892

Summary: bpel validation of xpath expression need to take elementFormDefault when validating an xpath expression
Product: soa Reporter: Ritesh Adval <radval>
Component: BPEL ValidationAssignee: Vladimir Yaroslavskiy <yaroslavskiy>
Status: VERIFIED DUPLICATE    
Severity: blocker CC: ads, pvarghese
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 93704    
Bug Blocks:    

Description Ritesh Adval 2007-02-01 22:53:46 UTC
Please refer to bug http://enterprise.netbeans.org/issues/show_bug.cgi?id=93704.

This bug for validation the xpath expression such that it takes 
elementFormDefault into account to make sure xpath expression generated is a 
valid one.


Consider the schema 
<xsd:schema targetNamespace="http://xml.netbeans.org/schema/RefElemSchema"
xmlns:tns1="http://xml.netbeans.org/schema/RefElemSchema">
            <xsd:element name="intElem" type="xsd:int"></xsd:element>
            <xsd:element name="strElem" type="xsd:string"></xsd:element>
            <xsd:complexType name="MsgType">
                <xsd:sequence>
                    <xsd:element ref="tns1:intElem"/>
                    <xsd:element ref="tns1:strElem"/>
                </xsd:sequence>
            </xsd:complexType>
            <xsd:element name="MsgElem" type="tns1:MsgType"></xsd:element>
</xsd:schema>
Here the complextype 'MsgType' has Element Reference to the global elements
'intElem' and 'strElem'. Even though the <schema> tag does not define the
attribute 'elementformdefault=qualified', the element references to the global
elements have to be qualified when being used in the bpel assignments.

The assignments that are generated for assign between variables defined on
messages based on the schema above are shown below

        <bpws:assign name="Assign2">
            <bpws:copy>
                <bpws:from>$IntPTOperOut.part1/intElem</bpws:from>
                <bpws:to>$ExtPTOperOut.part1/intElem</bpws:to>
            </bpws:copy>
            <bpws:copy>
                <bpws:from>$IntPTOperOut.part1/strElem</bpws:from>
                <bpws:to>$ExtPTOperOut.part1/strElem</bpws:to>
            </bpws:copy>
        </bpws:assign>

intElem and strElem are not qualified and have to be qualified. 

The validation should validate and report error saying that inElem in 
$IntPTOperOut.part1/intElem should be namespace qualified with a prefix.
similarly strElem in $IntPTOperOut.part1/strElem should be namespace qualified 
with a prefix.
Comment 1 Vladimir Yaroslavskiy 2007-03-12 13:45:17 UTC
Please provide link to specification (any document) saying that global elements
must be namespace qualified with a prefix.
Comment 2 Vladimir Yaroslavskiy 2007-04-03 12:24:20 UTC
It is a part of feature 85437.

*** This issue has been marked as a duplicate of 85437 ***
Comment 3 Vladimir Yaroslavskiy 2007-04-03 12:34:45 UTC
*** Issue 88832 has been marked as a duplicate of this issue. ***
Comment 4 Vladimir Yaroslavskiy 2007-05-31 13:02:55 UTC
.