Topic: My XML assignment (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: NZ |
![]() 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 |
![]() 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 |
![]() Hi, mate. code: <xsl:for-each select="home/list"><tr >
|
Paranoid (IV) Inmate From: France |
![]() Hiroki: No problem. I've had a lot of trouble with XSL back in time, and still have a bad feeling about this language 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 |
![]() Hi, Poi. Many thanks for your reply. |
Paranoid (IV) Inmate From: NZ |
![]() Oh, great! |
Paranoid (IV) Inmate From: France |
![]() 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 |
![]() Hi, mate. Thanks for your help! code: <xsl:for-each select="home/list">
|
Nervous Wreck (II) Inmate From: Minnesota |
![]() 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 |
![]() 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 |
![]() Hi, mates. Many thanks for your help. |