[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: How can i parse a xml-file with xsl recursivley?

Subject: RE: How can i parse a xml-file with xsl recursivley?
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Thu, 10 Jun 1999 18:13:37 +0100
grep xml file
Barbara, this is exactly what XSL templates are designed to do.

Write a template for each kind of element you might encounter. Within the
template, call xsl:apply-templates to process the children of that element:
each
one will be processed with the appropriate template. If there are cases
where the
processing of a particular element type depends on context, you can test the

context either in an xsl:if statement within the template, or in the match
attribute
of the xsl:template element itself.

Mike Kay

> -----Original Message-----
> From: barbara.brosch@xxxxxxxxxx [mailto:barbara.brosch@xxxxxxxxxx]
> Sent: 10 June 1999 14:12
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: How can i parse a xml-file with xsl recursivley?
> 
> 
> How can i parse a XML-file with XSL recursivley?
> 
> Hi, i'am a xsl - beginner and need your help.
> I have to parse a XML-file via XSL to generate HTML.
> FYI: I work with XT.
> 
> Now my problem:
> My XML is based on a very generic DTD. So my XML may
> be very nested (folder in folder an so on). So i have to grep
> my XML step by step and have to show: what tag comes next?
> Each tag has its own html-style and some tags include references
> on tags listed below.
> 
> FYI: The html, that i have to produce, have to work in Netscape 3.0.
> 
> What can i do? Is there only the option to take <xsl:for-each> with
> many <xsl:if> statements?
> 
> Please help. Thanks.
> B.
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.