Click here to Skip to main content
15,909,747 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralFree XML Seminars Pin
Anonymous10-Feb-03 7:58
Anonymous10-Feb-03 7:58 
GeneralTest my XML, please I am bugged!! Pin
JoeSox9-Feb-03 15:38
JoeSox9-Feb-03 15:38 
GeneralFIXED Pin
JoeSox9-Feb-03 15:59
JoeSox9-Feb-03 15:59 
GeneralXML and search engines Pin
johncogan4-Feb-03 21:25
johncogan4-Feb-03 21:25 
GeneralWSDL in VS.NET Pin
moredip3-Feb-03 6:17
moredip3-Feb-03 6:17 
GeneralXSL Transform error/question Pin
Rhoam3-Feb-03 6:17
Rhoam3-Feb-03 6:17 
GeneralRe: XSL Transform error/question Pin
Rhoam3-Feb-03 6:21
Rhoam3-Feb-03 6:21 
GeneralXML Generic Form generator/handler Pin
3-Feb-03 1:55
suss3-Feb-03 1:55 
Hi

I am trying to build a generic function to building forms using only ASP3.0, XML and XSLT.

The idea/theory is to be able to create a form holding any number of differing elements simply by passing a single variable to the XML and XSLT which would tell it which node in the XML to get the form structure. There by allowing control/creation of numerous forms simply through adding nodes to the xml file. Also the only time I want to hit the database is to insert the form data or pull values for an "edit form" feature (see below). The XML and XSLT will be standard text files, not stored on the database.

I have managed to the the form built correctly. The form layout is determined by the XSLT file and the form elements and thier associated attributes are based upon the XML file contents.

The problem I have run into is if I want to render a form which has one/some/all of the elements prepopulated I cannot do this in a generic fashion as I have to know exactly the quantity of parameters to have in the XSLT and to which bit in the XSLT they belong to.

Is there any way of using arrays within XSLT? If so I could then pass an array to it using ASP that is filled with either values or NULL's whereby I can do something like

<INPUT NAME="@NAME" TYPE="TEXT" MAXLENGTH="@MAXLENGTH">
<xsl:if test="$array[x] != 'NULL'">
<xsl:attribute name="VALUE">
<xsl:value-of select="$array[x]" />
</xsl:attribute>
</xsl:if>
</INPUT>
Where x corresponds to the element in question.

Current example:
http://www.safari-trader.com/functions/form_builder/index.asp

http://www.safari-trader.com/functions/form_builder/forms.xml

http://www.safari-trader.com/functions/form_builder/forms.xslt

Any help/pointers would be appreciated....

John
GeneralRe: XML Generic Form generator/handler Pin
berndg3-Feb-03 5:18
berndg3-Feb-03 5:18 
GeneralRe: XML Generic Form generator/handler Pin
Anonymous3-Feb-03 5:49
Anonymous3-Feb-03 5:49 
QuestionIs this thing on? Pin
Jamie Hale30-Jan-03 6:42
Jamie Hale30-Jan-03 6:42 
AnswerRe: Is this thing on? Pin
palbano30-Jan-03 9:01
palbano30-Jan-03 9:01 
AnswerRe: Is this thing on? Pin
Michael Dunn30-Jan-03 17:46
sitebuilderMichael Dunn30-Jan-03 17:46 
AnswerRe: Is this thing on? Pin
Nitron18-Feb-03 14:32
Nitron18-Feb-03 14:32 
GeneralMerging DOMs Pin
Jamie Hale28-Jan-03 23:53
Jamie Hale28-Jan-03 23:53 
GeneralRe: Merging DOMs Pin
Chris Richardson30-Jan-03 17:54
Chris Richardson30-Jan-03 17:54 
GeneralRe: Merging DOMs Pin
Jamie Hale31-Jan-03 0:11
Jamie Hale31-Jan-03 0:11 
QuestionXForms, any thoughts? Pin
berndg23-Jan-03 10:29
berndg23-Jan-03 10:29 
AnswerRe: XForms, any thoughts? Pin
Neville Franks29-Jan-03 0:30
Neville Franks29-Jan-03 0:30 
GeneralRe: XForms, any thoughts? Pin
berndg29-Jan-03 6:42
berndg29-Jan-03 6:42 
GeneralRe: XForms, any thoughts? Pin
Neville Franks30-Jan-03 0:47
Neville Franks30-Jan-03 0:47 
GeneralRe: XForms, any thoughts? Pin
berndg30-Jan-03 5:13
berndg30-Jan-03 5:13 
GeneralXML reserved words Pin
Anonymous20-Jan-03 8:56
Anonymous20-Jan-03 8:56 
GeneralRe: XML reserved words Pin
Stephane Rodriguez.20-Jan-03 9:00
Stephane Rodriguez.20-Jan-03 9:00 
GeneralRe: XML reserved words Pin
Anonymous20-Jan-03 9:11
Anonymous20-Jan-03 9:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.