[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Output to Frames using XSL
Leaving aside the question of the appropriateness of frames for output in a browser for a time, I have a template that successfully creates a set of frames in a web page and outputs the content of two xml documents to those frames. (See below.) However, what I would like to do is "replace" the hard coded page references with something like <xsl:apply-templates select="..."/> so that the I could, for example, use the xsl file to create a table of contents from "section" the section tags in one frame, while the complete content of the file would be presented in the other frame. The essential point of this is to render the same content in different ways into multiple frames. If someone could suggest an approach to this, I would appreciate it. If this idea is "wacko", I would be happy to consider completely different methods. Thanks. <xsl:template match="/"> <html> <head> <title>Books and Stuff</title> </head> <frameset rows="80%,20%"> <frameset cols="30%,70%"> <frame src="frame1.xml"/> <frame src="frame2.xml"/> </frameset> <frame src="OSCeras.jpg"/> <noframes> <body> <xsl:apply-templates select="books"/> </body> </noframes> </frameset> </html> </xsl:template> Charles Cantrell XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|