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

Best way to use XSL when transforming XML to HTML?

Subject: Best way to use XSL when transforming XML to HTML?
From: "Kevin Duffey" <kevin.duffey@xxxxxxxx>
Date: Sun, 21 Jan 2001 10:42:01 -0800
how to use xsl when
Hi there,

I am reading Michael Kay's book (and I have to be honest..Java books are
easier to read..is it me or am I just not suited for this type of language??
;). I am along ways away from finishing it, but I am a little confused as to
what would be the best way to transform xml into html in 3 circumstances:

1) I have to return HTML that sets up 3 frames. Each frame should contain a
different page, and sometimes when one frame is submitted I want to have
another frame updated as well. I am using JSP to output XML dynamically. I
assume that I need to have one XSL return the "frames" setup and have each
frame src point to 3 different pages that are converted to HTML via XSL?

2) Most of our pages involve forms, especially drop-down items, multi-select
boxes, etc. In this case, is it better to use a template layout where I have
something like:

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:template match="top_node">
    <html>
      <head>
        <title>Online OrderBuilder  ver .1</title>
      </head>
      <body>
        <xsl:apply-templates select="templates"/>
      </body>
    </html>
  </xsl:template>

  <xsl:template match="templates">
    <div align="center"><img src="/images/orderbuilder/images.gif"/></div>
  </xsl:template>

</xsl:stylesheet>

or is there a better way to do this?


3) I assume to stay capable of being displayed in PDA devices, I MUST always
use XSL on ALL pages of our site so that I can simply use a different XSL to
output WML? In this case, should I be using XHTML 1.0 tags instead since
from what I read supposedly PDA devices will work with xhtml and therefore I
don't have to output html and wml?


Thanks.


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


Current Thread
  • [no subject]
    • SFYang - Sun, 21 Jan 2001 03:42:12 -0500 (EST)
      • Michael Kay - Sun, 21 Jan 2001 11:34:26 -0500 (EST)
        • Kevin Duffey - Sun, 21 Jan 2001 13:38:43 -0500 (EST) <=

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.