• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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