RSS Forums RSS
Please support our XML, XSLT and XPATH advertiser: Programming Forums

Ignoring xmlns namespaces in the input xml file

Join Date: Jul 2006
Location: Deptford, London
Posts: 987
Reputation: MattEvans has a spectacular aura about MattEvans has a spectacular aura about MattEvans has a spectacular aura about 
Rep Power: 6
Solved Threads: 52
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Posting Shark

Re: Ignoring xmlns namespaces in the input xml file

  #2  
Feb 11th, 2007
that bit of XSLT will still match to the root node; regardless of its namespace. I'd put:

  1. <xsl:template match="/">
  2. <xsl:apply-templates select="*"/>
  3. </xsl:template>

or do some processing within that block..; without a select or name on the <apply-templates/> node, I think that's an illegal instruction.

If you have undeclared namespaces; some XSLT processors will fail. If you take those xmlns attributes out; then any 'xsi' or 'xpdl' nodes in your document will be illegal...
Plato forgot the nullahedron..
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:37 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC