[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [xliff-comment] Public Comment
Hi, Although i'm not fully informed on the position that the TC takes regarding namespaces I think that tools that work with XML that adheres to XML Namespaces should never rely on prefixes and always use the fully qualified names rather then local element names. Given that the XLIFF spec shows xmlns="urn:oasis:names:tc:xliff:document:1.1" in the examples i assume the spec adheres to the XML namespaces which implies that it is perfectly legal to use prefixed element names. One other thing I noticed though, is that the namespace changes with each version which is different from, for example, the way the XSLT spec handles it. XSLT does not change the namespace URI but relies on the a version attribute to distinguish 1.0, 1.1, 2.0 XSLT stylesheets. I can imagine that the namespace URI changes could cause more problems with tools than the fact that prefixes can be used. I remember such problems from the early days of XSLT when the URI changed several times. XML.com had an article on versioning XML vocabularies which might be of interest: http://www.xml.com/pub/a/2003/12/03/versioning.html > When a new version of a language is required, and it is backwards > compatible with the older language, then the author must make a > decision about the namespace name for names in the new language. > There are two choices: create a new namespace name or reuse the > existing namespace name. We argue that reusing is more efficient, > and we will explore the problems with option #1 in the "new > namespace" section. There's also this document on the use of `sane` namespaces which I found quite interesting and could help to establish best practices for the use of XML namespaces in a spec like XLIFF. See: http://lists.xml.org/archives/xml-dev/200204/msg00170.html Cheers, --Marc comment-form@oasis-open.org wrote: > Comment from: rodolfo@heartsome.net > > Name: Rodolfo M. Raya > Title: Director of Product Development > Organization: Heartsome Holdings Pte Ltd > Regarding Specification: XLIFF 1.1 / XLIFF 1.2 > > > Today I received a file with this format: > > <?xml version="1.0" encoding="utf-8"?> > <xlf:xliff version="1.1" > xmlns:xlf="urn:oasis:names:tc:xliff:document:1.1"> > <xlf:file datatype="xml" original="source.xml" source-language="en"> > <xlf:body> > <xlf:trans-unit id="1" datatype="xml"> > <xlf:source>hello</xlf:source> > </xlf:trans-unit> > </xlf:body> > </xlf:file> > </xlf:xliff> > > > By using a prefix in namespace declaration the names of the XLIFF elements > are altered. This is a complication for tools that support XLIFF files and > relay on standard element names instead of fully qualified names. > > XLIFF specs do not mention the use of prefixes for the XLIFF namespace. > Which is the position of the XLIFF TC regarding this use of the XLIFF > namespace? > > Could an official recommendation or a best practise statement be added to > the XLIFF 1.2 specs? > > Best regards, > Rodolfo M. Raya > > --------------------------------------------------------------------- > To unsubscribe, e-mail: xliff-comment-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: xliff-comment-help@lists.oasis-open.org > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]