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]
Other format: [Raw text]

general problem



Hi all,

Imagine I have a set of nodes like this:

<root>
<a>
  <b>
  <c>
  <d>
  <e>
</a>
<a>
  <b>
  <c>
  <d>
  <e>
</a>
</root>

I apply a stylesheet to the xml to output a table that displays certain
elements of each <a> such as:

<tr>
  <td>b , c, d</td>
</tr>

Say I want to include a button next to that row that, when clicked, opens a
window displaying -all- the elements for that <a>.

I can do this by calling a javascript function, passing the position of the
<a> node as a parameter, and using the DOM to extract the information I
want.  However, this currently relies on me hard-coding the name of the xml
file (xmlObj.load('xmlfile')) into the function, which then makes the
stylesheet useless for all but one xmlfile.

If you understand what Im asking ;) is there a better way of doing this?

Thanks to anyone on my wavelength, apolgies to everyone else

cheers

andrew

===


 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]