A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
XML and Related Technologies
How to use XSL to select from one XML and output to another XML as an attribute?
Joined: Jul 23, 2003
May 20, 2004 08:46:00
How can I design the XSLT to make the output value to be another xml's attribute?
XSLT: <fo:external-graphic src="url(<xsl:value-of select='url'/>
Expected Output: <fo:external-graphic src="url(/graphics/1.tiff)"/>
Right now, the transformation has error if I define XSLT as above.
Anybody has any idea?
Thanks in advance.
Joined: Jan 23, 2002
May 20, 2004 09:36:00
<xsl:element name="fo:external-graphic"> <xsl:attribute name="src"> url(<xsl:value-of select="url"/>) </xsl:attribute> </xsl:element>
[ May 20, 2004: Message edited by: Lasse Koskela ]
Effective Unit Testing
I agree. Here's the link:
subject: How to use XSL to select from one XML and output to another XML as an attribute?
Background image in XSL-FO from XML field
FOP graphics problem
FOP and SVG Files
Image sizes not descreasing in xsl fo
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014