XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Is there any legitimate case for processing based on a specificnamespace prefix?

Hi Folks,

Recall that a namespace prefix may be anything.

For example, by convention 'xsl' is used as the prefix for the XSLT namespace, but I could equally well use 'foo' or 'bar' as the prefix.

Is there ever a time when it is okay to create an XML application that checks for a specific prefix, e.g.,

    If the prefix is 'foo' then
            do A, B, C
     Else
           do X, Y, Z

It seems to me that such code would be very brittle and very unwise.

But perhaps there are legitimate cases where this is okay.

If so, would you provide a concrete example please?

/Roger


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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

Copyright 1993-2007 XML.org. This site is hosted by OASIS