I am trying to parse an xml which i am getting in a variable in my xsl. till the time i do not have any namespace in my xml i can parse all the tags of my xml from my xsl, however, for any tag with a namespace i could not parse it. not sure why is it so.. Please assist.

<?xml version="1.0" encoding="utf-16"?>
<feed xmlns:es="http://ucmservice">
                <es:Repository Type="Test" />
                <es:DocProperty propertyName="Title">


<?xml version="1.0"?> 
<xsl:stylesheet version="1.0"
    exclude-result-prefixes="java wcm">

<xsl:output method="html" omit-xml-declaration="yes" indent="yes"/>	
<xsl:param name="relatedDocumentsXML" /> <!-- in this variable i am getting the XML-->
<xsl:template match="/">
<xsl:apply-templates select="$relatedDocumentsXML/feed" />

<xsl:template match="feed">

<xsl:for-each select="element">
	<xsl:apply-templates select="."></xsl:apply-templates>

<xsl:template match="element">
<xsl:for-each select="Id">				<xsl:value-of select="." /> <!-- i am getting the value for this ID-->
<xsl:for-each select="es:RepositoryDetails/es:Repository">
		<xsl:value-of select="@Type" /> <!-- not able to get the value for this. Seems like an issue with namespace. Please assist-->


First sorry for my poor english.

Your XSLT is good.
I only have one problem when I make test with

exclude-result-prefixes="java wcm"

Xmlspy don't like but i don't think it's the error.

I must make one change for testing

<xsl:param name="relatedDocumentsXML" />


<xsl:param name="relatedDocumentsXML" select="/*" />

May be your problems it's here.
Are you sure that your xml is well given in parameter ?

Thanks Erwan,
I'll try this.

I got the desired result, surprisingly by removing the namespace at the time of calling the tag. :)

Thanks once again.