|
[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?
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
|
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
|

Cart








