OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   xml:lang: Am I doing more work than I need to be?

[ Lists Home | Date Index | Thread Index ]
  • From: Christian Hammond <chipx86@portaldesign.net>
  • To: xml-dev@ic.ac.uk
  • Date: Wed, 26 Jan 2000 11:11:37 -0800

I have been working on development of a XML parser over the past month. It
doesn't use SAX (please don't hurt me! :), but its main strength is the
ability to load modules for handling different namespaces on-the-fly. I have
been working on getting xml:lang support implemented, but there is one thing
I'm confused about. Perhaps I didn't read the specs clearly enough, but I
couldn't find the information I need.

Let's say in your XML file, you have:

<p xml:lang="en">
 ..
</p>
<p xml:lang="en-GB">
 ..
</p>

If a user has "en" set as his preferred language, I imagine the first <p> will
be processed, but the second won't. Now, if the user has en-GB set has the
preferred language, I would imagine the second would be processed. What about
the first then? If that second <p> didn't exist, would the first ever get
processed? Or is "en" always processed if "en-*" is set?

Christian Hammond

-- 
Christian Hammond - chipx86@portaldesign.net
Portal Web Design - http://www.portaldesign.net
   A hacker does for love what others would not do for money.

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ or CD-ROM/ISBN 981-02-3594-1
Unsubscribe by posting to majordom@ic.ac.uk the message
unsubscribe xml-dev  (or)
unsubscribe xml-dev your-subscribed-email@your-subscribed-address

Please note: New list subscriptions now closed in preparation for transfer to OASIS.






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS