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

  • To: "Emmanuil Batsis (Manos)" <mbatsis@h...>,"Julian Reschke" <julian.reschke@g...>,<xml-dev@l...>
  • Subject: RE: namespace reprise
  • From: "Dare Obasanjo" <dareo@m...>
  • Date: Wed, 21 Aug 2002 07:17:25 -0700
  • Thread-index: AcJJE5RAz5RwyckpQqS8ASJ33PW81QACbgWO
  • Thread-topic: namespace reprise

 
There's nothing special about the default namespace. If you're XML processing depends on giving the default namespace special semantics then you misunderstand how Namespaces in XML works. 

	-----Original Message----- 
	From: Emmanuil Batsis (Manos) [mailto:mbatsis@h...] 
	Sent: Wed 8/21/2002 5:59 AM 
	To: Julian Reschke; xml-dev@l... 
	Cc: 
	Subject: Re:  namespace reprise
	
	

	
	Heh. The namespace axis wont tell you it's the *default* namespace so
	you don't know if you have already handled that for the contect node (or
	one of it's ancestors).
	
	Stuff like
	
	<xsl:if test="not(ancestor::*[namespace-uri()=$nsUri]) and $nsUri != ''">
	 <xsl:apply-templates select="." mode="ns-resolve"/>
	</xsl:if>
	
	are irritating.
	
	Manos
	
	
	-----------------------------------------------------------------
	The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
	initiative of OASIS <http://www.oasis-open.org>
	
	The list archives are at http://lists.xml.org/archives/xml-dev/
	
	To subscribe or unsubscribe from this list use the subscription
	manager: <http://lists.xml.org/ob/adm.pl>
	
	


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