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
Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Simon SoosaiSubject: No Topic
Author: Simon Soosai
Date: 28 Apr 2003 04:46 PM
I want to scale the image. I mean my image name and width and height are in the XML. So i want to associate a XML tag as image source and set width, height from XML tag as well. How would i do it?

Posttop
Lee HumphriesSubject: No Topic
Author: Lee Humphries
Date: 28 Apr 2003 06:33 PM
Hi Simon,

>I want to scale the image. I mean my image
>name and width and height are in the XML. So
>i want to associate a XML tag as image
>source and set width, height from XML tag
>as well. How would i do it?
I'm not quite sure what you're getting at. I assume your talking about generating an HTML page from an XML document using XSLT.

It sounds like you're describing two situations, one where the image file and it's details are identified in your XML source file, the other where the image is directly embedded within the XML (say in a CDATA section).

You can process anything in an XML document using XSLT but embedded data of this nature is probably much better processed by a call to some JavaScript/ECMAScript. Use the script to determine the embedded image's dimensions.

Regards, Lee


 
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.