[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Namespace related question

Subject: Namespace related question
From: sumit@xxxxxxx
Date: Sun, 13 Jul 2003 05:00:13 +0000
sumit
From:    sumit@xxxxxxx
To:      XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject: Namespace related question
Date:    Sun, 13 Jul 2003 04:52:26 +0000

I am a novice and struggling for last few days to get the solution.

here is sample xml document, I want to read the value of attribute xmlns.Res 
using XSL stylesheet 

<PT xmlns.Res="PT_MSG"> 
....
</PT>

here's my stylesheet
<?xml version="1.0"?>
<xsl:stylesheet  version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes" />

		<xsl:template match="HFPT" 
xmlns="http://www.w3.org/XML/1998/namespace"> 
		<xsl:copy-of select="@xmlns:Res" />
	        </xsl:template>

</xsl:stylesheet>

I tried <xsl:copy-of select="@xmlns:Res" />, I got error message -
"Namespace prefix xmlns has not been declared".

So how can I do it in XSL ?

Any solution will be appreciated.

Thanks

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.