Hi!
Hello Pawe³ (I, hope your name comes out OK)[...]
Actually no, but don't worry. I'm aware that polish 'lslash' may not be displayed properly. But using polish characters is the only way to protect them from extinction. I will think about some compromise.
The element <chapter title="First Chapter"> is wrong. By burying your title in an attribute you're making it neither easily searchable nor useble by other applications.
That is what I said to my boss. The problem is that J have to build something more or less universal because I don't known who will prepare XML documents and which convention will be used.
The general rule of thumb for when to use attributes and when to use elements is: use elements for presentable data and attributes for system data. In this case where you're presenting the title "First Chapter" to the context-processor to be marked up as a chapter title, it is definitely presentable data, and therefore it belongs in an element.
Thanks, I will remember. It looks convincing. Regards, Pawe/l