[Home] [By Thread] [By Date] [Recent Entries]
I pretty sure this is in fact a FAQ, but I'm in a good mood :-)
Try this: XML: <document> <title>title</title> <drawing output="filename.jpg"/> <p>paragraph</p> </document> XSLT:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:apply-templates />
</xsl:template>
and with templates al you do is change that def. behaviour,
so when you only specify a template for that certain element, all
other will be processed according to the above template.. more or less anyway...
:-)
--><xsl:template match="*"> <!-- try and copy your elements into your output: changing the behaviour for all elements--> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template> <xsl:template match="drawing"> <!-- this element should have specific care, because this template is more specifiec than the above one, this one gets precedence, and therefore you can change the behaviour for this specific element--> <img src="{@output}"/> </xsl:template> </xsl:stylesheet> At 04:57 AM 12/4/01 -0500, you wrote: hey all - Salience B.V. Ronald Heller Technisch Consultant Coltbaan 27b 3439 NG Nieuwegein Telefoon 030 60 56 675 Telefax 030 60 56 324 Website www.salience.nl ronald@xxxxxxxxxxx Mobiel 06 20 41 25 77 ICQ 135511393 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



