LISTSERV mailing list manager LISTSERV 15.5

Help for XML-L Archives


XML-L Archives

XML-L Archives


View:

Next Message | Previous Message
Next in Topic | Previous in Topic
Next by Same Author | Previous by Same Author
Chronologically | Most Recent First
Proportional Font | Monospaced Font

Options:

Join or Leave XML-L
Reply | Post New Message
Search Archives


Subject: Re: help needed in xsl
From: "G. Ken Holman" <[log in to unmask]>
Reply-To:General discussion of Extensible Markup Language <[log in to unmask]>
Date:Wed, 19 Dec 2001 14:22:33 -0500
Content-Type:text/plain
Parts/Attachments:
Parts/Attachments

text/plain (46 lines)


At 2001-12-15 15:48 +0000, Praveen THM wrote:
>In my xsl file i am processing the third child LEVEL
>node from the root node of the xml file.
>Inside this third child leevl node i have to get the
>attribute value of the root-node.

Root nodes do not represent elements, so they cannot every have attributes.

If you want an attribute of the document element, and you don't care what
the name of the document element is, use:

     select="/*/@attribute-name-here"

>can anyone please tell me how to do this?

XSL, XSLT and XPath questions would be better posted to the following list:

   http://www.mulberrytech.com/xsl/xsl-list

There are a number of subscribers who would enthusiastically respond to
such questions.

There is also an *excellent* FAQ at:

   http://www.dpawson.co.uk

There are voluminous resource pages at:

   http://xml.coverpages.org/xsl.html
   http://xsl.startkabel.nl

I hope this helps.

....................... Ken

--
Training Blitz: 3-days XSLT/XPath, 2-days XSLFO - Feb 18-22, 2002

G. Ken Holman                mailto:[log in to unmask]
Crane Softwrights Ltd.         http://www.CraneSoftwrights.com/l/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (Fax:-0995)
XSL/XML/DSSSL/SGML/OmniMark services, books(electronic, printed),
articles, training(instructor-live,Internet-live,web/CD,licensed)
Next public training:   12-19,12-20,2002-01-10,01-11,01-16,01-18,
-                02-11,02-12,02-13,02-15,02-18,02-21,03-11,03-14,
-                       03-15,03-18,03-19,04-08,04-09,04-10,04-12

Back to: Top of Message | Previous Page | Main XML-L Page

Permalink



LISTSERV.HEANET.IE

CataList Email List Search Powered by the LISTSERV Email List Manager