AJAX Forums

XML Question?

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 ...

Old 10-31-2007, 05:28 PM   #1 (permalink)
Junior Member
 
Join Date: Oct 2007
Posts: 1
Rep Power: 0 AskTheExpert is on a distinguished road
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>
__________________
AskTheExpert is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
CSS positioning question? Siervocal XHTML and CSS 0 05-20-2007 10:13 PM
.xml question? What?!! XML and XSLT 2 05-15-2007 04:28 AM
CSS Question? virus_photo XHTML and CSS 2 05-05-2007 12:16 AM
CSS Question? jackal141200 XHTML and CSS 0 04-12-2007 11:13 AM
Why did Ajax ask the same question three... bobbymcshankleby AJAX Questions 4 03-21-2007 11:46 AM


All times are GMT -4. The time now is 07:48 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5
Copyright ©2006 - 2008, AJAXwith.com