| Subject: [xsl] how to read attribute if defined as <namespace>:<attname> From: sumit@xxxxxxx Date: Sun, 13 Jul 2003 05:05:56 +0000 | 
here is sample xml document, I want to read the value of attribute xmlns.Res using XSL stylesheet <?xml version="1.0" ?> <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 | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| RE: [xsl] Namespace related questio, Michael Kay | Thread | RE: [xsl] how to read attribute if , Lars Huttar | 
| [xsl] Namespace related question, sumit | Date | [xsl] Re: RE: How to get output XML, Dimitre Novatchev | 
| Month |