Author mode - inserting an attribute with & character
Posted: Tue Mar 16, 2010 7:13 pm
Hello,
if in DocBook document for example the value of URL link is inserted into the appropriate attribute in Attributes panel and it has & character in it, the vendor attribute of a parent element is affected by it.
Step by step procedure:
1. Open new docBook document. Place ulink element (from Elements palette) into any para.
2. Place e.g. http://server.com/index.jsp?locale=en¶m=value into the url attribute.
3. In log window there is displayed error "The reference to entity "param" must end with the ';' delimiter."
4. If you click on text in para, in attributes palette you can see the vendor attribute with inserted url in it. This param is not bold so it seems as not used in XML.
5. If the value of the vendor attribute is deleted, this attribute is displayed in bold.
6. If this attribute is removed (right mouse click + Remove), also url attribute of ulink is cleared.
I know that & character cannot be used in XML directly, but it cannot be obvious to everyone. And he can be puzzled a bit what is going on.
Regards,
Jan
if in DocBook document for example the value of URL link is inserted into the appropriate attribute in Attributes panel and it has & character in it, the vendor attribute of a parent element is affected by it.
Step by step procedure:
1. Open new docBook document. Place ulink element (from Elements palette) into any para.
2. Place e.g. http://server.com/index.jsp?locale=en¶m=value into the url attribute.
3. In log window there is displayed error "The reference to entity "param" must end with the ';' delimiter."
4. If you click on text in para, in attributes palette you can see the vendor attribute with inserted url in it. This param is not bold so it seems as not used in XML.
5. If the value of the vendor attribute is deleted, this attribute is displayed in bold.
6. If this attribute is removed (right mouse click + Remove), also url attribute of ulink is cleared.
I know that & character cannot be used in XML directly, but it cannot be obvious to everyone. And he can be puzzled a bit what is going on.
Regards,
Jan