OASIS XML Localisation Interchange File Format (XLIFF) TC

 View Only
  • 1.  Prefixed attriubutes for modules

    Posted 12-01-2014 17:40
    Hello all.   I will try to share the results of my research and experiments with you and ask for comments and corrections if I am not right.   For the advanced validation this issue seems important, to add prefixes to the attributes or not.   By XML specification : The namespace name for an unprefixed attribute name always has no value.   This short article also gives a good illustration and explanation of  the namespace “inheritance”.   Considering this logic, all the attributes, even in the core elements, must have the prefix, but as far as they pass the validation I think that API’s presume that non-prefixed attributes are in the root namespace, however, technically they have no namespace.   So wouldn’t it be better if we add prefixes to the elements of modules in order to escape ambiguity with core attributes? Thank you!


  • 2.  RE: [xliff] Prefixed attriubutes for modules

    Posted 12-01-2014 18:26
    Hi Soroush, > Considering this logic, all the attributes, even in the core > elements, must have the prefix, but as far as they pass the > validation I think that API's presume that non-prefixed attributes > are in the root namespace, however, technically they have no namespace. I'm not sure what the "root namespace" is, but basically: An un-prefixed attribute is considered to be in the same namespace as the element where it is declared. (See the XML spec: "...the interpretation of unprefixed attributes is determined by the element on which they appear.") So, I don't think we need to add a prefix the all the elements. Maybe Felix or Jirka can expound on that fascinating and magical aspect of namespaces and attributes. Cheers, -yves


  • 3.  Re: [xliff] Prefixed attriubutes for modules

    Posted 12-02-2014 07:17
    On 1.12.2014 19:25, Yves Savourel wrote: > Maybe Felix or Jirka can expound on that fascinating and magical aspect of namespaces and attributes. Unprefixed attribute is not in any namespace. However it's considered belonging to element where it appears. As such both attribute and element are then part of the same vocabulary and if element is in namespace then both attribute and element can be considered part of this namespace -- but in this case "namespace" is broad term meant as synonym of "vocabulary", not precisely defined property of attribute/element nodes in some formal data model. Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz ------------------------------------------------------------------ Professional XML and Web consulting and training services DocBook/DITA customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep. ------------------------------------------------------------------ Bringing you XML Prague conference http://xmlprague.cz ------------------------------------------------------------------ Attachment: signature.asc Description: OpenPGP digital signature