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

RE: generate output html from 2 xml files

Subject: RE: generate output html from 2 xml files
From: "M. David Peterson" <m.david@xxxxxxxxxx>
Date: Tue, 17 Feb 2004 05:21:56 -0700
xml output html
Yes, this is possible.  To use multiple XML files you implement the
document() function.  To do this create a variable as such:

<xsl:variable name="format" select="document('format.xml')/>

Within your template you would call the variable and then treat it in
the same way you would if you were calling for data in the standard
document flow.  For example... <img src="{$format/root/logo/image}"
alt="{$format/root/logo/text}"/> would replace the XPath with the name
of the image and the text that goes along with it.  I'm assuming that
you would be using one of these two XML files as the main document used
by the processor in the transformation process.  If this is not the case
then just create another variable using interview.xml and use it in the
same manner as format.xml.

Hope this helps!

M:D

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Markus Hanel
Sent: Tuesday, February 17, 2004 4:50 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  generate output html from 2 xml files

Hello,
 I am trying to show a logo from a file: format.xml and some forms from
a
file: interview.xml with one xsl file to produce output html. Is this
possible?



interview.xml

<root>
  <form>
  <form>
  <form>
  <form>
</root>

format.xml

<root>
  <logo>
    <text>some text</text>
    <image>one image</image>
    ...
  </logo>
</root>

Regards,
markus


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


 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.