|
|
|
Re: [qvto]how to transform undefined attributes [message #804203 is a reply to message #803957] |
Wed, 22 February 2012 05:07   |
Eclipse User |
|
|
|
Hi
What you obseerve is very reasonable. The text in a CDATA statement is
text, not a model reference, so when model definitions change it may
change. Just the same as people who reference Section 3.1.2 in a word
document without using Cross References.
If you use references they must be references.
If you really need the CDATA then you need to write a custom conversion
that provides the non-standard reference recognition in CDATA, and
ideally eliminates CDATA altogether..
Regards
Ed Willink
On 22/02/2012 02:38, Allen Zhang wrote:
> Hi, thank you for the help.
> The real problem is: when I transform from BPEL to BPEL, here is
> something like:
> <bpel:process ...
> xmlns:ns0="namespace1"
> ...>
> ...
> <bpel:variable messageType="ns0:response" name="response"/>
>
> when I do the transformation, I didn't take care of "ns0", but the
> namespace is generated automatically with a new name, which may be
> different from the original one.
>
> <bpel:process ...
> xmlns:ns1="namespace1" //new name is ns1
> ...>
> ...
> <bpel:variable messageType="ns1:response" name="response"/>
>
> Everything is ok by then, but next here is:
> <bpel:query
> queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[ns0:p1]></bpel:query>
>
> In the query, it is the original "ns0", not changed to "ns1".
>
> Thank you again.
>
|
|
|
|
Re: [qvto]how to transform undefined attributes [message #804905 is a reply to message #804788] |
Thu, 23 February 2012 00:54  |
Eclipse User |
|
|
|
Hi
"It's only software"; of course it's possible, but it's not something
that I would try to do so I can only point you in a plausible direction.
EMF has many options to control XML name generation; one of these is
probably helpful once you know the problem to solve.
Something somewhere chose "ns1" rather than "ns0"; this seems an odd
choice, since I would expect a unique namespace generator to move from
"ns0" to "ns01" or "ns0_1" if it decided "ns0" was already in use. I
would certainly start by discovering why "ns1" was chosen; then this
choice can perhaps be controlled or it's failure to re-use "ns0" rectified.
The code to look at is XMLSave... and XMLHelper...
Regards
Ed Willink
On 23/02/2012 02:00, Allen Zhang wrote:
> Hi, besides the method you mentioned, is there any way I can control
> the transformation of these extended attributes like "ns0", I mean
> whether the new names of these attributes can be determined by myself
> using QVTo, but not automatically generated.
|
|
|
Powered by
FUDForum. Page generated in 0.14844 seconds