Topic: My XML assignment |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: NZ |
posted 09-24-2003 02:01
I have to build small web site ( 3 pages) using XML and XSL. code: <?xml version="1.0" encoding="UTF-8"?>
code: <?xml version="1.0" encoding="UTF-8"?>
|
Paranoid (IV) Inmate From: France |
posted 09-24-2003 03:43
Hiroki: As you already know, the goal of XSLT is to transform XML datas into ... something else i.e. XHTML, HTML, CSV, PLAIN TEXT, etc... |
Paranoid (IV) Inmate From: NZ |
posted 09-26-2003 08:38
Hi, mate. code: <xsl:for-each select="home/list"><tr >
|
Paranoid (IV) Inmate From: France |
posted 09-26-2003 11:07
Hiroki: No problem. I've had a lot of trouble with XSL back in time, and still have a bad feeling about this language . To generate an IMG tag, infact, you have to feed the src attribute of an IMG tag. And don't forget that XSL behaves like XHTML and requires that you close *every* tags. That's why you write <br />,<hr /> or <img />. code: <img border="2"> I've set the border directly to make sure you don't forget that you can mix "direct" attributes and xsl attributes. |
Paranoid (IV) Inmate From: NZ |
posted 09-27-2003 07:01
Hi, Poi. Many thanks for your reply. |
Paranoid (IV) Inmate From: NZ |
posted 09-27-2003 07:07
Oh, great! |
Paranoid (IV) Inmate From: France |
posted 09-27-2003 16:39
To arguee my "bad feeling" about XSL, here are the main points that annoy me:
Notice that my "critics" comes from my experience of XSLT via SABLOTRON. |
Paranoid (IV) Inmate From: NZ |
posted 09-29-2003 05:51
Hi, mate. Thanks for your help! code: <xsl:for-each select="home/list">
|
Nervous Wreck (II) Inmate From: Minnesota |
posted 09-29-2003 08:11
First of all, if you only want to print it out if it meets a certain criteria, and do nothing if it doesn't meet that criteria, you should use xsl:if code: <xsl:for-each select="home/list">
|
Paranoid (IV) Inmate From: France |
posted 09-29-2003 16:35
Hiroki: Your troubles came more from a problem of logic ( and the lack of quotation marks ) rather than XSL. Indeed if you had read, litterally, your statetement, you would have found out that the award field can never be 'Gold' _and_ 'Silver' _and_ 'Bronze' but only one of these value at a time. |
Paranoid (IV) Inmate From: NZ |
posted 09-30-2003 07:13
Hi, mates. Many thanks for your help. |