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 129411 - Mapper does not generate proper prefixes for XPath expressions
Summary: Mapper does not generate proper prefixes for XPath expressions
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Mapper (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Nikita Krjukov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-06 15:02 UTC by Kirill Sorokin
Modified: 2008-04-10 14:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample project (25.24 KB, application/x-compressed)
2008-03-06 15:03 UTC, Kirill Sorokin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kirill Sorokin 2008-03-06 15:02:41 UTC
BPEL Mapper does add proper prefixes to generated XPath expressions, if the prefix for the namespace they are using is
not declared in the BPEL document. Once you declare the prefix, it will be generated correctly. 

I'm attaching a sample project -- just do some mapping for the only Assign out there.
Comment 1 Kirill Sorokin 2008-03-06 15:03:18 UTC
Created attachment 57883 [details]
Sample project
Comment 2 Kirill Sorokin 2008-03-06 15:04:33 UTC
Possibly related: issue 126037.
Comment 3 Alexey Yarmolenko 2008-03-06 15:17:33 UTC
Assigning to Nikita for evaluation
Comment 4 Nikita Krjukov 2008-03-07 11:57:53 UTC
Now the XPath model is responsible for generating prefixes. 
It's necessary to specify an ExNamespaceContext instead of simple NamespaceContext
See the XPathModel.setNamespaceContext() interface for details 
Comment 5 Andrei Chistiakov 2008-04-10 14:47:52 UTC
Verified with NetBeans IDE 6.1 RC1 (Build 200804100130).