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 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
How can i parse a xml-file with xsl, barbara . brosch | Thread | CSS and XSL?, Didier PH Martin |
Re: CSS and XSL?, Simon St.Laurent | Date | Re: XSL and CSS?, Didier PH Martin |
Month |