You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by sunil vashisth <sv...@yahoo.com> on 2002/02/27 14:53:43 UTC

read xml tag(having namespace) from xsl

Hi,

i want to read read xml tag(having namespace) from
xsl.
i am doing following 

///////////xml file
<root>
<xsp:page attri="att1">
<name> Sunil </name>
</xsp:page>
</root>

How can I access the value of "name" tag.Here
"xsp:page" tag is creating problem and I have to have
this tag.
I am trying with following xsl file

///////My .xsl file is following

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:template match="root">
	<html><title>					<xsl:value-of
select="xsp:page/name" />
	</title>
        </html>
   </xsl:template>
</xsl:stylesheet>

Regards
Sunil





__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>