Subject: [xsl] RE: Will this work? From: "Wong Chin Shin" <publicbbs@xxxxxxxxxxxxxxxx> Date: Tue, 30 Nov 2004 19:12:05 +0800 |
Hi Geert, What you suggested does sound rather complicated but what the heck, I'll have a shot at it later. Exploring all options now... Thanks a bunch!! Wong -----Original Message----- From: dai_geer@xxxxxxxxxx [mailto:dai_geer@xxxxxxxxxx] Sent: Tuesday, November 30, 2004 6:18 PM To: Wong Chin Shin Subject: Re: Will this work? Hi Wong, Sorry, I have to reply off-list (not responding with my normal email), but please cc to the list if you reply on this message. If you convert you data record to XML, you could do the following: Consider your addPage.xml as a template (as you already do), but instead of running XSL over it to generate HTML, make your XSL generate another XSL that can be applied to your XML data record. Use an empty data record to generate an add page, use a filled data record to generate an edit page... You will find this to be a strategy with a lot of potential. You can add markers in you addPage.xml that identify what information should be inserted where, which are expanded to real XSL instructions by your meta XSL stylesheet. The power is in the fact that you are free to define any kind of instruction in your template as long as you can translate it to XSL automatically. So you will not be limited to inserting data from the record. One could think of building a form dynamically, solely based on the structure of your data record. It might sound though, but it's not at all... Cheers, Geert
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] skip formatting ala <pre>, Pieter Reint Siegers | Thread | Re: [xsl] RE: Will this work?, Geert Josten |
[xsl] skip formatting ala <pre>?, Wong Chin Shin | Date | Re: [xsl] xsl:import and jar files, xptm |
Month |