xsl-list
[Top] [All Lists]

Accessing the main document from a document()

2005-08-19 05:20:13
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>

From the style sheet, I am now selecting the right device definition
and iterate through it's parameters, generating output on the way. 
For each of the parameters, I now need access to its value as set in
the main document.  How do I do that?

Thanks in advance!
Hans

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>