P
Prabh
Hello all,
I'm a newbie to the world of XML, XSL stylesheets and transformation
etc. and wonder if the following is possible?
I have an XML file of the following sort and I want to HTML-ize it
using an XSL.
XML:
==========================================================
<target name="one">
<task>
<message> Some Message Text1 </message>
<message> Some Message Text2 </message>
</task>
<task>
<message> Some Message Text3 </message>
</task>
</target>
<target name="two">
<task>
<message> Some Message Text1 </message>
</task>
</target>
and so on.
=========================================================
After transformation, in my .html file, I'd like to create a top-area
of just the target names and clicking on the links would get me to
their details (i.e., the tasks and messages info) somewhere down
below.
Something along the lines...
<a href="#TargetOneInfo"> Target One </a>
<a href="#TargetTwoInfo"> Target Two </a>
..
..
..
<a name="TargetOne"> Target One Details </a>
<a name="TargetTwo"> Target Two Details </a>
and so on.
Is it possible to achieve this in XSL?
How do I specify in XSL to collect all 'targets' and put the href tags
around them and similarly put the name tags around the details
section?
Could someone please give me some pointers on how to go about doing
this?
Thanks for your time,
Prabh
I'm a newbie to the world of XML, XSL stylesheets and transformation
etc. and wonder if the following is possible?
I have an XML file of the following sort and I want to HTML-ize it
using an XSL.
XML:
==========================================================
<target name="one">
<task>
<message> Some Message Text1 </message>
<message> Some Message Text2 </message>
</task>
<task>
<message> Some Message Text3 </message>
</task>
</target>
<target name="two">
<task>
<message> Some Message Text1 </message>
</task>
</target>
and so on.
=========================================================
After transformation, in my .html file, I'd like to create a top-area
of just the target names and clicking on the links would get me to
their details (i.e., the tasks and messages info) somewhere down
below.
Something along the lines...
<a href="#TargetOneInfo"> Target One </a>
<a href="#TargetTwoInfo"> Target Two </a>
..
..
..
<a name="TargetOne"> Target One Details </a>
<a name="TargetTwo"> Target Two Details </a>
and so on.
Is it possible to achieve this in XSL?
How do I specify in XSL to collect all 'targets' and put the href tags
around them and similarly put the name tags around the details
section?
Could someone please give me some pointers on how to go about doing
this?
Thanks for your time,
Prabh