• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use XSL to select from one XML and output to another XML as an attribute?

 
sam joe
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, guys,

How can I design the XSLT to make the output value to be another xml's attribute?

XML: <url>/graphics/1.tiff</url>

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.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

[ May 20, 2004: Message edited by: Lasse Koskela ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic