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

Accessing the main document from a document()

Subject: Accessing the main document from a document()
From: Hans Hübner <hans.huebner@xxxxxxxxx>
Date: Fri, 19 Aug 2005 14:20:13 +0200
hans huebner
Hi,

I am trying to write an XSL stylesheet that displays the data of the
document it is attached to under the control of a second document.
This second document describes the formatting and data types of the
data in the main document.  It also defines the order in which the
fields from the main document are displayed.

Main document:

<?xml-stylesheet type="text/xsl" href="stylesheet.xsl" ?>
<data device-type="foo">
 <value name="a">blah</value>
 <value name="b">blub</value>
</data>

Formatting document:

<definitions>
 <device type="foo">
  <parameter name="b">... formatting instructions for field b..</parameter>
  <parameter name="a">... formatting instructions for field a...</parameter>
 </device>
 <device ... more devices>
 </device>
</definitions>

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.