Subject: Re: [xsl] variable declaration From: Ines.Klimann@xxxxxxxxxxxxxxxx Date: Mon, 19 Mar 2001 15:22:07 +0100 |
On Mon, Mar 19, 2001 at 02:34:24PM +0100, Linda van den Brink wrote: > if you describe what you're trying to do, people on this list may > have more useful advice. I am trying to build an exercice for my students. I have an XML document of this type : -----------------XML document--------------- <?xml version="1.0" standalone="no"?> <!DOCTYPE emploi_du_temps SYSTEM "emploi.dtd"> <?xml-stylesheet type="text/xsl" href="plaquette.xsl"?> <time_table> <enseignement semestre="2" niveau="IUP1"> <matiere>Programmation Numerique</matiere> <cours type="td"> <teacher>Phan</teacher> <horaire> <day>lundi</day> <hour> <beg>9</beg> <end>11</end> </hour> </horaire> <salle>J5</salle> </cours> <cours type="tp"> <teacher>Phan</teacher> <horaire> <day>lundi</day> <hour> <beg>11</beg> <end>13</end> </hour> </horaire> <salle type="machine">110</salle> </cours> </enseignement> [...] </time_table> ---------------------------------------------- and I want them to build an XSL file such that the result is : -----------------result----------------------- [...] Second Period * IUP1 . Programmation Numerique TD : Phan TP : Phan [...] ---------------------------------------------- my idea is to create a variable: <xsl:variable name="niv" select="time_table/enseignement@niveau" /> and do an xsl:for-each on this variable, but I cannot create it with xmlns:xsl="http://www.w3.org/TR/WD-xsl" and with xmlns:xsl="http://www.w3.org/1999/XSL/Transform" I cannot use xsl:for-each, it has no effect. Do you have some idea of the problem ? Thanks, Ines. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] variable declaration, Linda van den Brink | Thread | RE: [xsl] variable declaration, Michael Kay |
RE: [xsl] variable declaration, Linda van den Brink | Date | RE: [xsl] xsl: Changing the order o, Brent Kobayashi |
Month |