File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes How to use XSL to select from one XML and output to another XML as an attribute? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to use XSL to select from one XML and output to another XML as an attribute?" Watch "How to use XSL to select from one XML and output to another XML as an attribute?" New topic
Author

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

sam joe
Greenhorn

Joined: Jul 23, 2003
Posts: 24
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

Joined: Jan 23, 2002
Posts: 11962
    
    5

[ May 20, 2004: Message edited by: Lasse Koskela ]

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use XSL to select from one XML and output to another XML as an attribute?