[xsl] xsl/xml

Subject: [xsl] xsl/xml
From: Simon Choy <Simon.Choy@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 7 May 2002 15:32:50 -0700
First of all thank you for all your help last time guys
Staring at the screen too long makes me blind


anyway I have a new question
*sigh*

XML file:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<?xml-stylesheet type="text/xsl" href="database.xsl"?> 
<country xmlns="http://www.w3.org/TR/html4/";>
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<member>bob</member>
</country>

XSL file:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
version="1.0">
<xsl:template match="/">
	<html> 
	<body>
		<xsl:value-of select="country/member" />	
	</body> 
	</html> 	
</xsl:template> 
</xsl:stylesheet>




PROBLEM:
	The line <xsl:value-of select="country/member" /> within the XSL
file does not show anything. I have narrowed it down the the namespace
attribute in the XML file that's causing this problem. If i remove the
Namespace attribute from the <country> element, it prints it out fine

ps. this is a simplified version of what I am working on, and in my version,
the namespace attribute of the root element cannot be removed.


Is there anyway to get around thhis?

TIA

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread