[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: stupid newbie question
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|