What does this mean “xmlns:xliff”? XML

天涯浪子 提交于 2019-11-27 15:35:15

问题


What does this mean?

<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">

It can be seen in Strings.xml as part of the resources folder values in Android projects.


回答1:


This is xml namespace used for xliff. Xliff is used for localization purposes. You can read more about xliff here.




回答2:


XLIFF is the OASIS XML Localisation Interchange File Format.

xmlns:xliff is an XML attribute name. The :xliff indicates we are using the xliff namespace.

urn:oasis:names:tc:xliff:document:1.2 identifies the schema location; the choice of format is at the discretion of Oasis, I'd assume it has meaning.



来源:https://stackoverflow.com/questions/6158157/what-does-this-mean-xmlnsxliff-xml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!