Subject: RE: xml2html using dsssl From: "Didier PH Martin" <martind@xxxxxxxxxxxxx> Date: Thu, 20 May 1999 10:37:52 -0400 |
hi You may use Tony's library for this, Your code should be more like: (element book (make HTML (process-children) ) ) The process-children is: all elements contained in the "book" element and the book's character data. So, the above construct tell the DSSSL engine to _make_ a HTML tag and insert in it: a) the character data (if there is any) b) the other children converted elements So if for example the book element contains a section tag like below: <book> <Section> <chapter> </section> </book> Then a rule like: (element section (make body (process-children) ) ) will have all tag contained in the section tag to be processed (the process-children) instruction. Then the produced code by the above two rules would be: <HTML> <BODY> all processed children </BODY> </HTML> So where you place the process-children is important. It tells the DSSSL engine to place all processed children _within_ the tag like for instance the first rule tells the dsssl engine to generate the following code <HTML> processed children </HTML> then all book's children are processed and this result in firing the second rule and thus generate the following code: <HTML> <BODY> all processed children </BODY> </HTML> Got it? Here is an article that could provide you more explanations. If you still have questions after having read it. Don't hesitate to ask, we'll be pleased to help you. http://www.netfolder.com/SGML/HTML%20Sample.html -----Original Message----- From: owner-dssslist@xxxxxxxxxxxxxxxx [mailto:owner-dssslist@xxxxxxxxxxxxxxxx]On Behalf Of rtl@xxxxxxxxxxxxxxxxxxxxxx Sent: Thursday, May 20, 1999 5:08 AM To: dssslist@xxxxxxxxxxxxxxxx Subject: xml2html using dsssl Hi! I need to generate some HTML using files in XML. How can I do this? I've tried to use: (element book (make element HTML (make element HEAD (make element BODY (process-children) ) ) ) ) but jade said: jade:carHTML.dsl:8:2:E: "element" is not the name of any flow object class Help me.... Rita DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
xml2html using dsssl, rtl | Thread | RE: xml2html using dsssl, Didier PH Martin |
RE: xml2html using dsssl, Harbarth, Juliane | Date | RE: xml2html using dsssl, Didier PH Martin |
Month |