Note that there are some explanatory texts on larger screens.

plurals
  1. POIs it appropriate to use non-ASCII (natural-language) XML tags?
    text
    copied!<p>Is it appropriate to use XML tags (element names) written in non-ASCII natural languages? The XML spec allows it (see <a href="http://www.w3.org/TR/2006/REC-xml11-20060816/#NT-Name" rel="nofollow noreferrer">Names</a> and <a href="http://www.w3.org/TR/2006/REC-xml11-20060816/#NT-Name" rel="nofollow noreferrer">Exceptions</a>), but I couldn't find any best practices about this at <a href="http://www.w3.org/TR/xml-i18n-bp/" rel="nofollow noreferrer">W3C</a> and related pages.</p> <p>What I'm looking for is practical advice regarding which tools support this, whether important XML-related technologies such as XSLT and XForms may have problems with it, etc.</p> <p>I think Andrey and Tomalak are missing the point. XML is not necessarily read by programmers, it is read by many different professionals. So the arguments comparing it to source code don't necessarily apply.</p> <p>Let me clarify: I mean a Bulgarian legal domain, where many terms are specific to the Bulgarian legal process, and may not even have <strong>exact</strong> English translations. Translating them would be laborious, imprecise and impractical. Transliterating to ASCII is suboptimal.</p> <p>So back to the question: what tool limitations would I face? (Eclipse supports UTF, so writing xpaths wouldn't be a problem.)</p> <p>To get people started in the technical direction that I'd like: in several systems we've used generation techniques to ensure perfect correspondence between XML schemas, Java beans and database schemas. </p> <ul> <li>Java: <a href="http://java.fornoobs.info/2009/02/the-rules-for-java-identifiers" rel="nofollow noreferrer">this article</a> says that Unicode is ok</li> <li>Oracle: <a href="http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/sql_elements008.htm#i27561" rel="nofollow noreferrer">identifiers can contain only alphanumeric characters from your database character set</a></li> <li>I'd have to check for the tooling we use (JibX, Dozer, Hibernate, JXPath...)</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload