Thecla
08-07-2002, 04:34 AM
Ok, i'm thinking this topic requires DOM too but feels javascript is more related to the subject ?
I digress.
Anyways, i'm now scripting a program which allows a user to enter the number representing the xsl interface format via a textfield.
After that, clicking a preview button will result in a popup that will display the xml information displayed in the xsl format he has chosen earlier, assuming the xml has a predetermined xsl format initially, ie it has a predetermined format that can be changed and updated.
Assuming there are several xsl interface formats, say:
1. Horizontal interface
2. Vertical interface
Currently, i have the xml(say abc.xml) directly hardcoded to display a particular xsl.
For example, as follows:
<?xml-stylesheet type="text/xsl" href="abc.xsl"?>
And am having a popup window displaying abc.xml after the user clicks on the preview button.
Therefore all that i'm having right now is a predetermined interface format, i'm not able to update yet.
My question is, what scripting do i need in place of "abc.xsl" in
"<?xml-stylesheet type="text/xsl" href="abc.xsl"?>" so that it can actually be customisable by a click of a button after keying in the number in the field; then actually displaying the updated customised interface in the popup window.
Sorry if this is kinda long, i'm quite incoherent. :o
I digress.
Anyways, i'm now scripting a program which allows a user to enter the number representing the xsl interface format via a textfield.
After that, clicking a preview button will result in a popup that will display the xml information displayed in the xsl format he has chosen earlier, assuming the xml has a predetermined xsl format initially, ie it has a predetermined format that can be changed and updated.
Assuming there are several xsl interface formats, say:
1. Horizontal interface
2. Vertical interface
Currently, i have the xml(say abc.xml) directly hardcoded to display a particular xsl.
For example, as follows:
<?xml-stylesheet type="text/xsl" href="abc.xsl"?>
And am having a popup window displaying abc.xml after the user clicks on the preview button.
Therefore all that i'm having right now is a predetermined interface format, i'm not able to update yet.
My question is, what scripting do i need in place of "abc.xsl" in
"<?xml-stylesheet type="text/xsl" href="abc.xsl"?>" so that it can actually be customisable by a click of a button after keying in the number in the field; then actually displaying the updated customised interface in the popup window.
Sorry if this is kinda long, i'm quite incoherent. :o