|
Subject: [xsl] Newbie Q: Why are element contents being passed through? From: Elijah Mori <elijah@xxxxxxxxxxx> Date: Thu, 10 Apr 2003 12:49:39 +0900 |
Best regards Eli
Here are the two input docs and the output. xml: <?xml version="1.0"?> <form name="rateshop" action="backend/update-shop.php"> <shopid> <label>Shop ID</label> <input type="hidden"/> </shopid> <name> <label>Name</label> <input type="text"/>
</regionid>
<city>
<label>City</label>
<input type="text"/>
</city>
<blockaddress>
<label>Block Address</label>
<input type="text"/> </closingtime>
<rating>
<label>Rating</label>
<input type="select" option="singlechoice">
<option>1</option>
<option>2</option>
<option>3</option> <option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option> <option>10</option>
</input>
</rating>
<userid>
<label>User ID</label>
<input id="userid" type="hidden"/>
</userid>
</form> <xsl:output
encoding="iso-8859-1"
/> <xsl:template match='/'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>Shop</title>
<link href='css/site.css' type='text/css' rel='stylesheet'/>
</head>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match='form'>
<form>
<xsl:copy-of select='@*'/>
<xsl:apply-templates/>
</form>
</xsl:template> </head>
<body>
<form name="rateshop" action="backend/update-shop.php"> Region
HokkaidoAomoriIwateMiyagiYamagata Opening Time
10:0011:0012:0013:0014:0015:00
Closing Time 00:0001:0002:0003:0004:0005:0023:00
1
2
3
4
5
6
7
8
9
10
</form> </body> </html>
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] April Meeting of the Washingt, Betty Harvey | Thread | [xsl] Re: Newbie Q: Why are element, Dimitre Novatchev |
| [xsl] April Meeting of the Washingt, Betty Harvey | Date | [xsl] Re: Newbie Q: Why are element, Dimitre Novatchev |
| Month |