[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [xliff] Content of <sub> element
Ah, so the HTML spec addresses the issue directly (similar to the suggestion of Magnus to add a note to the XLIFF spec). Being an old SGML/XML student, I really like the phrase Magnus suggested (zero or more characters). But it would be worthwhile to see the wording in the HTML spec, to see how they address it. Thanks, Bryan ________________________________________ From: Doug Domeny [ddomeny@ektron.com] Sent: Wednesday, September 17, 2008 8:03 AM To: XLIFF TC Subject: RE: [xliff] Content of <sub> element I agree. Although it is possible in XSD schema to define an element as containing text and constrain its minimum and maximum length, it would be very awkward if that element also allows tags because the tags and text would be mixed. For example, <element>aaa<tag>bbb</tag>ccc</element> What is the length of the text in <element>? It has two text nodes of length three each ("aaa" and "ccc") and its child has a text node of three characters ("bbb"). In general, an element that allows text wouldn't require it. The P tag in HTML doesn't require text according to the schema, but the spec recommends browsers to ignore empty P tags. Doug -----Original Message----- From: Magnus Martikainen [mailto:MMartikainen@sdl.com] Sent: Tuesday, September 16, 2008 9:35 PM To: Rodolfo M. Raya; XLIFF TC Subject: RE: [xliff] Content of <sub> element Hi Rodolfo etc, Following up on this topic from our meeting today I propose we address this by adding a general note something to the effect of: "unless otherwise specified 'text' should be interpreted as 'zero or more characters'". I believe that would be consistent with how text is generally interpreted in XML, HTML, SGML and most other markup languages. Best regards, Magnus -----Original Message----- From: Rodolfo M. Raya [mailto:rmraya@maxprograms.com] Sent: Friday, August 29, 2008 7:24 AM To: XLIFF TC Subject: [xliff] Content of <sub> element Hi All, The specification document says that <sub> contains text and zero, one or more children elements. The schema doesn't force <sub> to contain text. My doubt is: can a <sub> element be empty? Regards, Rodolfo -- Rodolfo M. Raya <rmraya@maxprograms.com> http://www.maxprograms.com --------------------------------------------------------------------- To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at: https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. --------------------------------------------------------------------- To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at: https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php --------------------------------------------------------------------- To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at: https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]