XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
akaara akaaraSubject: Transforming input xml parameter to the output xml parameter
Author: akaara akaara
Date: 08 Jul 2008 01:04 AM
Hi,

Here is a tag in my xml input file which i want to do the transformation:

<img ref="BR080379B.AP.tif" type="I">responsibly</img>


And my xls is :

<pam:mediaref pam:refid="<xsl:value-of select="@ref"/>"/>

This lead to error. I dont know how to make the transformation from one parameter to others with the use of xsl.

The output that I want is like this:

<pam:mediaref pam:refid="BR080379B.AP.tif"/>

Any help is appreciated.

Thanks.

Postnext
Alberto MassariSubject: Transforming input xml parameter to the output xml parameter
Author: Alberto Massari
Date: 08 Jul 2008 06:27 AM
Inside attributes you need to write

<pam:mediaref pam:refid="{@ref}"/>

Alberto

Posttop
akaara akaaraSubject: Transforming input xml parameter to the output xml parameter
Author: akaara akaara
Date: 08 Jul 2008 10:23 PM
Thanks Alberto. It works now.

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.