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

Re: XSL value-of select question

Subject: Re: XSL value-of select question
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
Date: Thu, 19 Jul 2001 15:38:36 -0400
Re:  XSL value-of select question
Names of XML elements and attributes may not have spaces.  The name of your
element is "article", NOT "article id".  That's why you get a message saying
it's illegal.

If you want to get the value of the "id" attribute, you would use

<xsl:value-of select='@id'/>

(of course, the context node would have to be the "article" for this to
work).

Tom P

[Samina Islam]

> I also have another questions.  My input XML doc begin
> like this:
>
> <?xml version="1.0" encoding="iso-8859-1" ?>
>   <moreovernews>
>      <article id="_21985527">
>  ...
>
> and continues...
> when I try to get at the value of <article id> by
> typing: "  <xsl:value-of select="article id"/>  ", it
> gives me an error message:
>



 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.