This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Merging XML documents containing formatting and data respectively..



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]