[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: variable declaration

Subject: Re: variable declaration
From: Ines.Klimann@xxxxxxxxxxxxxxxx
Date: Mon, 19 Mar 2001 15:22:07 +0100
programmation numerique
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.