cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sunil vashisth <svashisth...@yahoo.com>
Subject read xml tag(having namespace) from xsl
Date Wed, 27 Feb 2002 13:53:43 GMT
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message