Use two points as an attribute value in XML

1

I'm working on XML with the Oxygen program. Specifically, it is about registering an edition on an original text. Each word (token) is edited according to some rules and this also includes edited punctuation marks. For example, a comma is edited to two points. My problem arises at the moment of registering that edition because I can not use the colon (:) as an attribute value, like this:

<pc change=":">,</pc>

Oxygen reminds me that the value of the attribute is invalid and that it must be a URI. I tried to escape the character:

<pc change="&#58;">,</pc>

but the program keeps giving me error. Is there any way to use the colon as the value of an attribute in XML?

    
asked by user3240622 04.10.2017 в 11:12
source

1 answer

0

I think you're confusing HTML entities with escaped characters in URI addresses, try with %3A instead of &#58;

Anyway, without knowing the DTD or XSD that you use for validity that XML, syntactically it is valid to use : as the value of an attribute, so maybe the title of the question is not quite correct.

    
answered by 04.10.2017 в 12:05