[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Merging XML documents containing formatting and data res

Subject: Re: Merging XML documents containing formatting and data respectively..
From: Manoranjan Das <manoranjan_das@xxxxxxxxx>
Date: Mon, 20 Nov 2000 20:23:17 -0800 (PST)
manoranjan das
Hi .. 
   Thanks for the response ..  
   I have tried this way .. But can it be done as
following. 
        Based on the name of the input tag in the HTML
, can I set the value attribute from the second XML ..
It should be dynamic.  

        i.e I dont want to hardcode the tag names in
the first XML ..

Thanks 
Das

--- David Carlisle <davidc@xxxxxxxxx> wrote:
> 
> You could write a stylesheet that reads both files,
> but easier would be
> just to convert your first XML file into an XSL
> stylesheet since it is
> almost exactly that anyway.
> 
> If you change 
> 
> <HTML>
> 
> to 
> <HTML xsl:version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> 
> then you can change
> 
> <input name="firstname" size="6" type="text"
> value=""/>
> 
> to
> 
> <input name="firstname" size="6" type="text"
> value="{normalize-space(/INPUTDATA/FIRSTNAME)}"/>
> 
> and similarly for the last name.
> 
> Then just apply your first XML as a stylesheet to
> your second.
> 
> David
> 
>
_____________________________________________________________________
> This message has been checked for all known viruses
> by Star Internet delivered
> through the MessageLabs Virus Control Centre. For
> further information visit
> http://www.star.net.uk/stats.asp
> 
> 
>  XSL-List info and archive: 
http://www.mulberrytech.com/xsl/xsl-list


__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.