Special Ops Member
Posts : 3 Join date : 2011-06-21
| Subject: Default namespace and XSLT Tue Jun 21, 2011 7:38 pm | |
| Hi, I got a default namespace as xmlns="path/to/default/namespace/" in my xml file, and following is what I am using for xsl file: - Code:
-
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:h="path/to/default/namespace/" exclude-result-prefixes="h" xmlns="http://www.w3.org/1999/xhtml">
It is not working, just breaks the page. when I remove the attribute xmlns from xml file then it works fine, but with default namespace it doesn't. Is there anyone tell me how can i get it working with default namespace? Thanks. |
|
mojito Member
Posts : 2 Join date : 2011-06-21
| Subject: Re: Default namespace and XSLT Tue Jun 21, 2011 7:38 pm | |
| either you access the XML elements with the h: prefix in your XSL or you change the XSL’s default namespace. |
|
Special Ops Member
Posts : 3 Join date : 2011-06-21
| Subject: Re: Default namespace and XSLT Tue Jun 21, 2011 7:39 pm | |
| I tried using with h: but didn't work, what should I change to for default namespace? |
|
BadAddy Member
Posts : 6 Join date : 2011-06-05
| Subject: Re: Default namespace and XSLT Tue Jun 21, 2011 7:40 pm | |
| Hi,
I also have this problem now, where the Xpath/XSLT navigation doesn't work if there is a default namespace in the XML file.
Any solutions to this? |
|
Sponsored content
| Subject: Re: Default namespace and XSLT | |
| |
|