Subject: RE: XLS wanted.... From: "Vun Kannon, David" <dvunkannon@xxxxxxxx> Date: Fri, 3 Sep 1999 11:40:09 -0400 |
The problem is very similar to deriving a DTD from a single instance document. You might find a stylesheet which does that job and change the hard coded text from "<!ELEMENT" to "function", etc. It might be more useful to start with the DTD and generate Javascript that can handle any valid document. Cheers, David vun Kannon -----Original Message----- From: Cristobal Galiano Fernandez [mailto:c.galiano@xxxxx] Sent: Friday, September 03, 1999 6:17 AM To: xsl-list@xxxxxxxxxxxxxxxx Subject: XLS wanted.... I need a generic XLS file that giving a XML file give de Javascript functions 1) XML File <?XML VERSION="1.0" RMD="NONE"?> <AUTHORS> <AUTHOR> <FIRSTNAME>Alexander</> <INITIAL1>D</> <SURNAME>Hildyard</> </> <AUTHOR> <FIRSTNAME>Anon</> <EMAIL>nobody@xxxxxxxxxxx</> </> <AUTHOR> <SURNAME>Twilite</> <INITIAL2>M</> <SPECIALFLAGS> <FLAGS1>TRUE</> <FLAGS4>TRUE</> </> </> <PSEUDOAUTHOR> <TITLE>I24X79</> </> </> 2) Javascript functions asociated (generated via XSL) function AUTHORS() { this.PSEUDOAUTHOR = new Array(); this.AUTHOR = new Array(); return this; } function AUTHOR() { this.SPECIALFLAGS = new Array(); this.INITIAL2 = new Array(); this.EMAIL = new Array(); this.SURNAME = new Array(); this.INITIAL1 = new Array(); this.FIRSTNAME = new Array(); return this; } function PSEUDOAUTHOR() { this.TITLE = new Array(); return this; } function SPECIALFLAGS() { this.FLAGS4 = new Array(); this.FLAGS1 = new Array(); return this; thanks in advance Cristóbal XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list ***************************************************************************** The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to our clients any opinions or advice contained in this email are subject to the terms and conditions expressed in the governing KPMG client engagement letter. ***************************************************************************** XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: XLS wanted...., Tim McCune | Thread | xsl:stylesheet : scripts or PI embe, Eric van der Vlist |
fo:inline-sequence, Hadar, Oren | Date | Re: XSL-like DTD, Francis Norton |
Month |