[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Is there any legitimate case for processing based on a specificnamespace prefix?
- From: "Costello, Roger L." <costello@mitre.org>
- To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
- 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]