[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] Lookup (?)
Subject: RE: [xsl] Lookup (?) From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Mon, 18 Feb 2002 17:08:05 -0000 |
Like the other guy who asked about evaluating a path expression passed as a parameter, the answer is the xx:evaluate() extension function. I might mention that the XSL WG has decided against including the evaluate() function in the core function library for XSLT 2.0. Despite its obvious usefulness, a majority of the group felt that implementors should not be obliged to provide it, since it can greatly increase the difficulty (and reduce the performance) of an XSLT compiler. Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Kurt George > Gjerde > Sent: 18 February 2002 11:47 > To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] Lookup (?) > > > Hi, > > Is it possible in xslt to get hold of the content (value) of > a node which > path is contained in an attribute of another node?? > > I have an xml file like this: > > <!-- this is a quick-and-dirty xml-form thing (not xforms) > just as an example --> > > <imb> > <form> > <input ref="//data/user/firstname"> > <caption>First name</caption> > </input> > <input ref="//data/user/lastname"> > <caption>Last name</caption> > </input> > </form> > > <data> > <user> > <firstname>Jix</firstname> > <lastname>Jacoby</lastname> > </user> > </data> > </imb> > > Which needs to come out as something like this: > > <p> > First name: <input name="//data/user/firstname" value="Jix"/> > </p><p> > Last name: <input name="//data/user/lastname" value="Jacoby"/> > </p> > > Haven't found any way of doing this. Is it possible with XSLT > or by using > some Saxon extensions? > > > Thanks, > -Kurt. > __________ > kurt george gjerde <kurt.gjerde@xxxxxxxxxxxx> > intermedia uib, university of bergen > > use Perl; > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Lookup (?), Kurt George Gjerde | Thread | evaluate() function in XPath 2.0 (W, Jeni Tennison |
RE: [xsl] Evaluation of a string co, Michael Kay | Date | [xsl] Changing Default IE XML Tree , Stephen Monk |
Month |