[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: [XSLT/newbie]value-of attributes of the root node
At 02:25 PM 09/19/2000 +0000, nik.makepeace@xxxxxxxxxxxx wrote:
The source is: <description name="AirCon 5000"> <change recency="7"> text </change> <change recency="4"> text </change> <change recency="3"> text </change> </description> The template matches on the document root node, not on the document root *element* node. So the xsl:value of selects on the attribute of the root node, which of course has no attributes. Try changing the match pattern to match="/description". ========================================================== John E. Simpson | "If you were going to http://www.flixml.org | shoot a mime, would you use XML Q&A: http://www.xml.com | a silencer?" (Steven Wright) XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|