XML.com: XML From the Inside Out

XML.comWebServices.XML.comO'Reilly Networkoreilly.com
  Articles | Weblogs | Newsletter | Safari Bookshelf
advertisement

Article:
 Trickledown Namespaces?
Subject: Question on namespaces
Date: 2005-01-06 12:55:47
From: mrylander@gmail.com
Response to: Question on namespaces


Just make the change below to your "xsl:apply-templates" line:


<xsl:apply-templates select="*/ja:foo/ja:item"/>


Because the jabber doc has a default namespace you need to provide a prefix in the XSLT, which you do. But you need to use that prefix on all elements in the default namespace, which includes the 'item' elements.


Hope that helps!


No Previous Message Previous Message Move up to Parent Message Up Next Message No Next Message

Sponsored By:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938