[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Dynamic creation of Frame view from XML using XSLT

Subject: Re: Dynamic creation of Frame view from XML using XSLT Regex match!
From: sreejith m <msreejith@xxxxxxxxx>
Date: Sun, 9 Sep 2007 11:13:45 -0700 (PDT)
Re:  Dynamic creation of Frame view from XML using XSLT
Step 1) My input XML doc is:
----------------------------
<XMLDOC>

<T_SYS>

   <T_SYS_ROW>
   <acol> aval </acol>
   <bcol> bval </bcol>
   <T_SYS_ROW>

   <T_SYS_ROW>
   <acol> aval </acol>
   <bcol> bval </bcol>
   </T_SYS_ROW>

</T_SYS>

<T_MB>

   <T_MB_ROW>
   <acol> aval </acol>
   <bcol> bval </bcol>
   </T_MB_ROW>

   <T_MB_ROW>
   <acol> aval </acol>
   <bcol> bval </bcol>
   </T_MB_ROW>

</T_MB>

</XMLDOC>

Step 2) Above XML and the XSL (as in original mail)
would be returned to the browser (in response to a
request)

Step 3) My expected output as follows:
--------------------------------------

<frameset cols="20%,*">
   <frame name="lframe" src="about:blank">
   <frame name="rframe" src="about:blank">
</frameset>

Onloading the frames should get rendered by the XSL

lframe should dynamically get populated with:
--------------------------------------------
<html>
<body>
<a href='rframe.T_SYS_REF'> T_SYS </a>
<a href='rframe.T_MB_REF'> T_MB </a>
</body>
</html>

rframe should dynamically contain:
----------------------------------
<html>
<body>
   <h1> T_SYS </h1>
   <a name='T_SYS_REF'> <table id='t_sys_tab'> </a>
       --content for t_sys_tab
   </table>

   <h1> T_MB </h1>
   <a name='T_MB_REF'> <table id='t_mb_tab'> </a>
       --content for t_mb_tab
   </table>

</body>
</html>


--- Abel Braaksma <abel.online@xxxxxxxxx> wrote:

> sreejith m wrote:
> > Kindly let me know how to achieve the final
> output.
> >   
> 
> do you mean you want us to design your website for
> you? From your 
> description it is very hard to find out what "final"
> means to you. 
> Please update your post with an exact XML, XHTML or
> HTML output document 
> that you want (the 'HTML' you showed is not html, it
> merely describes 
> some very generic bits of a possible layout).
> 
> We can help if you give us:
> 
> 'my input'
> <input><node>text</node></input>
> 
> 'my current output that i do not want'
> <p><li>text</li></p>
> 
> 'the output the I want but don't know how to get'
> <ul><li><p>text</p></li></ul>
> 
> for instance. We can't imagine what you imagine us
> to imagine... so... 
> your information was quire extensive but it missed
> this final two large 
> bits: what you have now and what you expect/want to
> have.
> 
> Cheers,
> -- Abel Braaksma
> 
> 



       
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.