Subject: Re: [xsl] [XSL] id() in Ancestor Nodes? From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Thu, 04 Oct 2007 07:20:10 +0200 |
I am trying to use the id function in XSLT to extract the publication id information from the "attribute" and have the output display the name of the publisher itself as it is. The complete code is as follows:
XML:
<bookshelf>
<!DOCTYPE bookshelf [ <!ATTLIST publication xml:id ID #IMPLIED> ]> <bookshelf>
I tried using the id function:
<xsl:template name="bookpublisher"> <xsl:variable name="name" select="id('@publish')"/>
-- Upcoming public training: UBL and code lists Oct 1/5; Madrid Spain World-wide corporate, govt. & user group XML, XSL and UBL training RSS feeds: publicly-available developer resources and training G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Cancer Awareness Jul'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] [XSL] id() in Ancestor Nodes?, Alice Ju-Hsuan Wei | Thread | Re: [xsl] [XSL] id() in Ancestor No, George Cristian Bina |
[xsl] Ann: InPlace, a new xslt-base, Oleg A. Paraschenko | Date | Re: [xsl] possible xalan error usin, James Fuller |
Month |