Subject: Controlling Sort with dynamic values From: "Brian Burridge" <brian_burridge@xxxxxxxxxxxxx> Date: Mon, 05 Jun 2000 10:52:57 -0400 |
I read your previous post and this is exactly what I'm doing. I got it to work now, but have one thing left to figure out. How do I dynamically sort? I have this code: <xsl:apply-templates> <xsl:sort select="/PAGE/@sort"/> </xsl:apply-templates> It doesn't give an error, but isn't sorting by the value of "/PAGE/@sort". Is there a way I can tell XSL to evaluate /PAGE/@sort and sort by that value? Brian Dan Morrison wrote: > Brian Burridge wrote: > > > Anyway, what I want to do is add some control data in my xml document > > that my xsl document can use to control the look of the > > page. > > I agree with this approach. > Refer http://www.mulberrytech.com/xsl/xsl-list/archive/msg12876.html > to keep me from quoting myself. > > As for your Q, > > > It doesn't work, of course, because it thinks I'm referring to the > > "team" in the projects node, but I want to test the "team" in the meta > > node. > > your meta has to be within the root node, so try addressing "/meta/team" > > .dan. > > :=====================:====================: > : Dan Morrison : The Web Limited : > : http://here.is/dan : http://web.co.nz : > : dman@xxxxxxxx : danm@xxxxxxxxx : > : 04 384 1472 : 04 495 8250 : > : 025 207 1140 : : > :.....................:....................: > : If ignorance is bliss, why aren't more people happy? > :.........................................: > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list -- Brian N. Burridge Internet Architect Ext 3515 The Internet Group - ITSS Cox Target Media "Until a person can say deeply and honestly, "I am what I am today because of the choices I made yesterday," that person cannot say, "I choose otherwise." XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Sending this again: Never was p, Brian Burridge | Thread | Keys across multilple input files, Ann Marie Rubin - Su |
RE: if - will this work?, Jeni Tennison | Date | Re: nested block elements in xml ->, Michael Beddow |
Month |