[Home] [By Thread] [By Date] [Recent Entries]

  • From: "Costello, Roger L." <costello@m...>
  • To: "xml-dev@l..." <xml-dev@l...>
  • Date: Tue, 28 Aug 2012 20:20:25 +0000

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]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member