Closed sandra-prolicht closed 5 months ago
Hello Sandra, parenthesis should be indeed escaped in XML. As follows:
< as <
> as >
( as (
) as )
Update: ( and ) can, but must not be escaped.
Thanks for your quick response. I thought so!
You're welcome!
@Kurpanik why do we need to escape normal characters?
In XML, only those characters need to be escaped:
"
should be "
'
should be '
<
should be <
>
should be >
&
should be &
So GLDF should follow this standard.
Yes, you are right. Brackets of type ( and ) do not need to be escaped as XML content. And since GLDF is based on XML, the same applies here. In DIALux, there are no problems with this. This brackets are accepted both escaped and unescaped. If Relux behaves incorrectly in this regard, I recommend contacting their support team.
Thanks for the clarification!
How should we handle special characters in names? We frequently have °, Ø and () in luminare product names. Most characters do not break the gldf, but parenthesis do. I tried to escape it with it's html equivalent (( and )) but the file still does not load in Relux. I did not see any restrictions in schema or on gldf.io. Should we just replace those chars with a dot and if so what chars could be problematic?