You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Fred Preston (JIRA)" <ax...@ws.apache.org> on 2005/10/07 10:47:49 UTC
[jira] Assigned: (AXISCPP-850) A name cannot contain a '.' or any other character that will be interpreted by the C compiler even though it is a valid XML character
[ http://issues.apache.org/jira/browse/AXISCPP-850?page=all ]
Fred Preston reassigned AXISCPP-850:
------------------------------------
Assign To: Fred Preston
Currently looking at this...
> A name cannot contain a '.' or any other character that will be interpreted by the C compiler even though it is a valid XML character
> -------------------------------------------------------------------------------------------------------------------------------------
>
> Key: AXISCPP-850
> URL: http://issues.apache.org/jira/browse/AXISCPP-850
> Project: Axis-C++
> Type: Bug
> Components: WSDL processing - RPC, WSDL processing - Doc
> Environment: n/a
> Reporter: Fred Preston
> Assignee: Fred Preston
>
> Not all valid XML character that can be used in a name are benign when translated into C/C++. For example if a name contains a '.' this will be interpreted by the C compiler and will lead to errors and or unexpected behaviour. For example, if an element name is defined as follows:-
> <xsd:element name="jack.frost" type="xsd:string"/>
> Then this will produce the following code:
> xsd__string jack.frost;
> And where it is used:
> jack.frost = "freezing";
> The solution to this problem is to replace all 'C/C++ significant', but valid XML characters with one benign characters such as '_'. Thus:-
> xsd__string jack.frost;
> Becomes:-
> xsd__string jack_frost;
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira