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

Go Back   AJAX Forums > Beginners AJAX > XML and XSLT

AJAX Made Easy

Old 10-31-2007, 04: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
Sponsored Links
Reply

Bookmarks


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

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


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


All times are GMT -4. The time now is 04:40 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0
Copyright ©2006 - 2009, AJAXwith.com