xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Best way to use XSL when transforming XML to HTML?


Subject: [xsl] 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

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 16:41:51 +0800
      • Michael Kay - Sun, 21 Jan 2001 16:30:26 -0000
        • Kevin Duffey - Sun, 21 Jan 2001 10:42:01 -0800 <=
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor