OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
My XML assignment
This page's ID:
11057
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
[b]Hiroki:[/b] 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 [i]src[/i] 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 />. Now for the example:[code] <img border="2"> <xsl:attribute name="src"><xsl:value-of select="pic" /></xsl:attribute> </img>[/code]I've set the [i]border[/i] directly to make sure you don't forget that you can mix "direct" attributes and xsl attributes. Another important point is that once the opening tag is over, you can still add some complex attributes like [i]style[/i] with: [i]<xsl:attribute name="style">background-color:green;<xsl:attribute name="border">8px <xsl:value-of select="border_style" /></xsl:attribute>;</xsl:attribute>[/i]. Well you see, if you hadn't already, that the syntax of XSL can quickly become a nightmare. Hope that helps. [b]Mathieu "POÏ" HENRI[/b] [edit]fixed a :o in :g[/edit] [This message has been edited by poi (edited 09-27-2003).]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »