[Po4a-devel] XML: prevent some attributes from being translated

poy poy at 123gen.com
Tue Feb 24 14:19:59 UTC 2009


> To hide attributes of tags, but keeping the tag's content inline, another
> option could be added.
> It could change <tag attributes=...> to <tag id=#>.
> This could be used to avoid typos to be introduced in attributes if they
> are known to be untranslatable, and to reduce the amount of data that need
> to be translated.

yes this sounds great. i don't really care if <a>s are changed into <link>s 
or not; it actually makes more sense to just keep them as <a>s.

regarding whether adding id="#" adds clutter, in the case of our links, many 
of them look like:
"supports connection to hubs using the earlier <a 
href=\"http://en.wikipedia.org/wiki/Direct_Connect_network\" 
target=\"_blank\" class=\"external\">NeoModus Direct Connect (NMDC)</a> 
protocol"

so yes, changing [href= target= class=] into a simple id="#" tag is much 
neater.

this could be useful in other places too, for example with <span> tags when 
these specify complicated CSS styles.

thanks,

poy 




More information about the Po4a-devel mailing list