The 'TransactionCode' attribute is invalid - The value '@RPSX' is invalid according to its datatype 'http://www.w3.org/2001/XMLSchema:NMTOKEN' - The '@' character, hexadecimal value 0x40, cannot be included in a name.
Similarly - also using type=xs:NMTOKEN - for '*MR' (name = RegisterCode) and for 'PMT 6' (name = ReferenceText).
What should be the correct schema data types for each of these attributes?
Ian Thomas
--------------
Stylus Studio 2008 XML Enterprise Suite R2 (Build 1147b)
Subject:Help with XSD attributes Author:(Deleted User) Date:30 Jul 2008 09:23 AM
Hi Ian,
as the error message explains, a NMTOKEN can only contains the same characters allowed in a NameChar, that is letters and digits, plus '.', '-', '_', ':'
If your data must allow special character like @, * or spaces, you should define them to be generic xs:string types
Thanks, Alberto.
The "token" in NMTOKEN led me astray. The task is dealing with a small number (list) of what are essentially tokens or enumeration, but of course string is needed.
Ian Thomas
--------------
Stylus Studio 2008 XML Enterprise Suite R2 (Build 1147b)