Subject: RE: Outputting literal and 'quoted' tags.
From: "Stuart Celarier" <stuart@xxxxxxxxxxx>
Date: Wed, 5 Dec 2001 09:52:39 -0800
|
Emiliano,
Instead of writing
<input type="checkbox" name="{@id}" value="yes"<?php if ($value == 'yes')
{ echo " checked"; } ?>>
try this
<input type="checkbox" value="yes">
<xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute>
...
</input>
As for being a tyro (a beginner, more appropriate than the derogatory
'newbie'), I believe people don't get agitated by the question per se, but
with the informality and presumption of phrases like "I would expect". The
level of expectation should be set by specifications, documentation, and
books, not a gut feel. We occasionally like to pretend that we are engaged
in computer _science_. ;-) I appreciate the question (and the questions
behind the question) so I can understand where people have difficulties
learning the language. Good luck in your efforts.
Cheers,
Stuart, stuart@xxxxxxxxxxx, www.ferncrk.com
-----Original Message-----
[...] but I don't see how else I would achieve the wanted result of there
being
<input type="checkbox" name="{@id}" value="yes"<?php if ($value == 'yes')
{ echo " checked"; } ?>>
in the output (with {@id} replaced by its value of course). [...]
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- Re: Outputting literal and 'quoted' tags., (continued)
- David Carlisle - Wed, 5 Dec 2001 07:20:01 -0500 (EST)
- Emiliano - Wed, 5 Dec 2001 07:44:46 -0500 (EST)
- David Carlisle - Wed, 5 Dec 2001 08:12:05 -0500 (EST)
- Emiliano - Wed, 5 Dec 2001 08:32:31 -0500 (EST)
- Stuart Celarier - Wed, 5 Dec 2001 12:48:04 -0500 (EST) <=
- Jörg Heinicke - Wed, 5 Dec 2001 13:37:41 -0500 (EST)
- Stuart Celarier - Wed, 5 Dec 2001 14:14:31 -0500 (EST)
- Emiliano - Wed, 5 Dec 2001 13:59:02 -0500 (EST)
- David Carlisle - Wed, 5 Dec 2001 16:48:50 -0500 (EST)
|
|