This is a discussion on XML Question? within the XML and XSLT forums, part of the Beginners AJAX category; Consider an XML document like the one below. How can we write a generic XSLT stylesheet to transform this document to an XForms document? Transformation is based on the value ...
|
|||||||
|
|
#1 (permalink) |
|
Junior Member
Join Date: Oct 2007
Posts: 1
Rep Power: 0 ![]() |
XML Question?
Consider an XML document like the one below. How can we write a generic XSLT stylesheet to transform this document to an XForms document? Transformation is based on the value of <type> and <nullable> elements. i.e all information we have is the data type of element and whether it accepts null values or not. In addition, the label of Xforms element form takes its value from <label> node.
Please bear in mind that the XSLT stylesheet must bee generic. i.e Reusable for any XML document with any number of <element> nodes. <login> <element> <label> User ID </label> <type> integer </type> <nullable> false </nullable> </element> <element > <label> Password </label> <type> string </type> <nullable> false </nullable> </element> <element > <label> D.o.Birth </label> <type> date </type> <nullable> true </nullable> </element> </login> |
|
|
|
| Sponsored Links | |
![]() |
| Bookmarks |
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CSS positioning question? | Siervocal | XHTML and CSS | 0 | 05-20-2007 09:13 PM |
| .xml question? | What?!! | XML and XSLT | 2 | 05-15-2007 03:28 AM |
| CSS Question? | virus_photo | XHTML and CSS | 2 | 05-04-2007 11:16 PM |
| CSS Question? | jackal141200 | XHTML and CSS | 0 | 04-12-2007 10:13 AM |
| Why did Ajax ask the same question three... | bobbymcshankleby | AJAX Questions | 4 | 03-21-2007 10:46 AM |