XSL hierarchy problems

Subject: XSL hierarchy problems
From: sonja.kangas@xxxxxx
Date: Fri, 18 Sep 1998 13:28:25 +0200

H e l l o,

I have three problems that I haven't been able to resolve this far.
I hope someone has time to help me.

1) I have been creating two separate stylesheet for the same XML data. The
other stylesheet will use all the information in the XML and the other will
use just selected information. The problem is that in the shorter document
with selected information, both MSXSL and ActiveX will transform XML-XSL to
HTML with the style rules the way I want, except that in the HTML all the
unwanted XML-information -without style definitions- in also visible. What
to do? 

2) I have problems with represent hierarchical information. Here is an
example:

XML:
<courier>
<main occupation>
<occupation>XXXXXX</occupation>
<place>XXXXXX</place>
<time>XXXXXX</time>
</main occupation>
</courier>

In XSL I have used...
<select-elements>
<target-element type="occupation"/>
</select-elements>  

But it will put all the data under <main occupation> and left the others
empty.

Then I used... 
<element type="courier">
<element type="main occupation">
<target-element type="occupation"/>
</element>
</element>

and

<target-element="main occupation">
<element type="occupation"/>
</target-element>

...without a luck. So now I have all the data under <main occupation> and
the other rows or locations are empty. 
E.g.
[[[Main occupation IMAGE]]]	| all the data is here
[[[Occupation IMAGE]]]
[[[Place IMAGE]]]			| all of these are empty. There are
[[[Time IMAGE]]]			| only the images from XSL, but no XML 					| data.


3) I have used literal titles and images in XSL. The idea is to show the
title (literal or image) on the left and the XML data on the right (like is
HTML TABLEs). Some XML data is optional. Is there a possibility to use
Script to command the XSL in the way that if there is no XML data, also the
titles (literal/image title) in XSL style sheet would not be shown.

Thank you for your time,

Sonja Kangas




Sonja Kangas				    Tel. +358 9 456 6052
VTT Information Technology              Fax. +358 9 456 7052
Printed Communications                  http://www.vtt.fi
PO Box 1204
FIN-02044 VTT, FINLAND                  Sonja.Kangas@xxxxxx


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


Current Thread