|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
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
|

Cart








