[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Expressions in attributes

Subject: Expressions in attributes
From: Rob Whitfield <RobW@xxxxxxxxxxxxxx>
Date: Tue, 10 Oct 2000 16:55:44 +0100
rob whitfield
I am trying to embed XML values into an HTML string within my XSL stylesheet
using the '{}' notation.
The example below is based on one found in an XSL text book ('The XSL
Companion'), however the values (highlighted in
the XSL file in blue) never appear to be interpreted. 

Please could someone tell me why this is or suggest another way of doing
this? I'm using the latest MSXML parser supplied
by Microsoft (msxml3.dll) on IE5.

Example XSL file (form2.xsl) :-

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
	<xsl:template match="/">
		<xsl:apply-templates select="//image"/>
	</xsl:template>
	
	<xsl:template match="image">
		<!-- Position the image -->
		<IMG SRC="{name}" HEIGHT="{y}" WIDTH="{x}" />
	</xsl:template>
	
</xsl:stylesheet>

Example XML source document :-

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="form2.xsl" ?>
<!-- Form.xml, contains form details --> 
<image>
	<name>C:\Program Files\Microsoft Visual
Studio\MSDN\2000OCT\1033\SAMPLES\VB98\Palmode\banner.gif</name>
	<y>200mm</y>
	<x>190mm</x>
</image>

Many thanks,
	Rob Whitfield


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.