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

RE: A new approach

Subject: RE: A new approach
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Mon, 17 Nov 2003 13:47:55 -0000
splash tree
> I have been grappling with xsl:include unsuccessfully and 
> thought perhaps I need a new approach. What I am trying to do 
> is this... I have my xml generated dynamically from a 
> database, no worries there.
> 
> I then wish to have an xsl style sheet to render it. This 
> sytlesheet would include another stylesheet that would render 
> the content.

xsl:include enables you to split your stylesheet into multiple modules
for convenience of development. You seem to be hoping it will do
something else for you, but it's not clear what.

Michael Kay



> 
> eg: my xml would look like this..
> 
> <rootnode>
>   <topMenu>
>     <menuname>Home</menuname>
>     <menudescribe>Return to the Home Page</menudescribe>
>     <menuurl>./</menuurl>
>     <domain_name>localhost</domain_name>
>   </topMenu>
>                                                               
>                                                     
>   <topMenu>
>     <menuname>Forum</menuname>
>     <menudescribe>PHPro Forums</menudescribe>
>     <menuurl>./?ext=forum</menuurl>
>     <domain_name>localhost</domain_name>
>   </topMenu>
> 
>   <topMenu>
>     <menuname>News</menuname>
>     <menudescribe>All the news that is news</menudescribe>
>     <menuurl>./?ext=news</menuurl>
>     <domain_name>localhost</domain_name>
>   </topMenu>
>                                                               
>                                                     
>   <topMenu>
>     <menuname>Contact</menuname>
>     <menudescribe>Contact Us</menudescribe>
>     <menuurl>./?ext=contact</menuurl>
>     <domain_name>localhost</domain_name>
>   </topMenu>
> 
>   <block>
>     <blockname>Goods</blockname>
>     <blockdesc>Blue</blockdesc>
>   </block>
>                                                               
>                                   
>   <splash>
>     <splash_name>splashname one</splash_name>
>     <splash_text>splash text one</splash_text>
>     <splash_domain_name>localhost</splash_domain_name>
>   </splash>
>                                                               
>                                                     
> </rootnode>
> 
> The main xsl file would render the block and topMenu tree but 
> the splash tree would be parsed by an included xls file. The 
> splash segment is dynamic, in that the xml string can be 
> changed, keeping the block and topMenu information, but 
> changing <block> for <news>
> 
> Any thoughts on the right way to do this?
> 
> Kind regards
> Kevin
> 
> -- 
>  ______                              
> (_____ \                             
>  _____) )  ____   ____   ____   ____ 
> |  ____/  / _  ) / _  | / ___) / _  )
> | |      ( (/ / ( ( | |( (___ ( (/ /
> |_|       \____) \_||_| \____) \____)
> Kevin Waterson
> Port Macquarie, Australia
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.