Subject: Re: [xsl] Checking value of a previous text node From: "Vasu Chakkera" <vasucv@xxxxxxxxxxx> Date: Mon, 01 Jul 2002 09:10:21 +0000 |
HTH Vasu
From: "Ryan O'Leary" <ryan-portal@xxxxxxxxxxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: <XSL-List@xxxxxxxxxxxxxxxxxxxxxx> Subject: [xsl] Checking value of a previous text node Date: Thu, 27 Jun 2002 20:48:20 -0700
Hi all. I've been having a lot of trouble trying to get this to work, although I'm sure theres a simple answer. I have the following XML:
=== START XML ===
<?xml version="1.0" encoding="UTF-8"?> <root> <enrolledClasses> <class> <name>Behavior Disorders</name> <quarterName>Fall 2001</quarterName> </class> <class> <name>ADDITIONAL ENGR LAB</name> <quarterName>Summer 2002</quarterName> </class> <class> <name>SENIOR PROJECT</name> <quarterName>Summer 2002</quarterName> </class> <class> <name>C and UNIX</name> <quarterName>Spring 2002</quarterName> </class> </enrolledClasses> </root>
===== END XML ======
And I would like to produce the following HTML:
===== START HTML =====
<i>Fall 2001</i><br /> Behavior Disorders <br /> <p> <i>Summer 2002</i><br /> ADDITIONAL ENGR LAB<br /> SENIOR PROJECT<br /> <p> <i>Spring 2002</i><br /> C and UNIX<br /> <p>
===== END HTML =====
I am having problems writing XSL that will recognize when the quarterName value has changed and display the quarter only then. I've tried all kinds of stuff, but I haven't gotten it to work. As a side note, I can't rewrite the XML to group the classes by quarter because of the way the XML gets populated.
If anyone could help me with some code that checks the current value of quarterName against the last value to see if its changed, that would be awesome!!
Thanks in advance.
- Ryan O'Leary - ryan-portal@xxxxxxxxxxxxxxxxxxx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] import/include problem, Jeni Tennison | Thread | [xsl] Problem with <a> conversion, ashu t |
[xsl] import/include problem, shaik | Date | Re: [xsl] XSLT/SVG variables questi, Jeni Tennison |
Month |