Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Is this possible in XSL? [Thread Next] Re: Is this possible in XSL?To: NULL Date: 10/1/2004 11:01:00 AM Yes. It is possible with XSLT and you can learn from this link http://www.w3schools.com/xsl/default.asp. "Prabh" <Prab_kar@h...> wrote in message news:e7774537.0409301222.6008f6e7@p...... > 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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
