[xsde-users] About xs:normalizedString

Ivan Le Lann ivan.lelann at free.fr
Mon Feb 21 05:05:36 EST 2011


Replying to myself,

It seems that:

1) normalizeString is supposed to replace line feed with space :
See http://www.w3.org/TR/xmlschema11-2/#rf-whiteSpace
and http://www.w3.org/TR/xmlschema11-2/#normalizedString

2) among other things, xs:token does the trimming I was looking for.
(My first test for this was flawed)

Sorry for the noise,
Ivan


----- "Ivan Le Lann" <ivan.lelann at free.fr> a écrit :

> Hello,
> 
> With XSD/e Hybrid, I recently got the issue of handling 
> "dirty" input like this one: <name>[LF]Joe</name>,
> where [LF] stands for line feed ascii code (0A).
> 
> I thought I could get rid of LF by turning "name" from xs:string 
> to xs:normalizedString. Now after parse/serialize the output is :
> 
> <name> Joe</name>
> 
> Is this new space exspected behavior ?
> I quickly tried with xs:token and got the same result.
> 
> This was with XSD/e Hybrid 3.2.0 on Windows VS2003.
> I did not test any other configuration.
> 
> Regards,
> Ivan



More information about the xsde-users mailing list