Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 5th, 2004, 05:42 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can you use XSLT with DHTML?

:D
Hello
I need someone to answer this question cuz I am confused.
Can you use XSLT with DHTML or only with XHTML and HTML.

I was reading Javascript and they were recommending DHTML rather than HTML because of browser-independence.

However, right now I am reading about XSLT and it doesn't mention DHTML.

Do people really use DHTML today or it is too early?
Can I use DHTML, XHTML and HTML all on one web site?

 
Old June 5th, 2004, 09:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello,

When you render HTML to the browser in the XSL stylesheet, you can make references to DLL's, such as through the style attribute in an HTML tag. This is DHTML functionality, and you can use it that way.

Brian
 
Old June 9th, 2004, 09:56 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Don't understand. Please can you explain more in detail?

 
Old June 9th, 2004, 10:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

DHTML is too late.. I consider it old technology... XSL/XSLT are current... XHTML is HTML that complies with the XML standards.

DHTML can work really with any of them- DHTML is using the DOM in the browser- letting you manipulate that client side stuff. Like changing an image on a mouseover.. or re-formating text... So, if you have an HTML or XHTML page, you can use "DHTML" which is, basically, javascript to manipulate it. Those NAME="" and ID="" tags in your HTML are the "DHTML" specification (as well as the DOM).. of course, NS and IE and Opera and.... all impletement it differently...

which is why DHTML came and went without really gaining traction.

Further: XSLT transforms XML compliant documets.. So it wouldn't work with HTML- only XHTML or XML documents. It's unlikly to work with DHTML.. Of course you could use an XSLT to create and XHTML document from XML and use the DOM on the XHTML page to do DHTML...

DHTML is NOT browser independent... NOTHING is browser independent.



Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
 
Old June 9th, 2004, 11:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello,

I said DLL's in my previous post, but I really meant DHTML script. You can do some pretty neat things with it, although as Hal said it's implemented differently across browsers.

If you are using XML in ASP or server-based applications, you can use XML and XSL to render HTML as the results. In the XSL file, you can make references to DHTML through attributes. Example stylesheet:

<xslt:Template match="MyTag">
   <tr>
      <td><a style="color:red;font-weight:bold;text-transform:none;">
           <xslt:attribute name="href"><xslt:value-of select="HREF"/></xslt:attribute>
           <xslt:value-of select="LinkText"/>
          </a>
      </td>
   </tr>
</xslt:Template>

The attributes defined in style="color:red;font-weight:bold;text-transform:none;" this is DHTML. In this extent, you can use it widely.

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
xml graphs with dhtml and xslt kotaiah Java Basics 0 May 23rd, 2007 04:08 AM
DHTML Menu... rupen HTML Code Clinic 3 January 17th, 2007 06:13 AM
DHTML Treeview deepak.vasudevan Wrox Book Feedback 0 September 2nd, 2005 04:58 AM
DHTML Menu. rupen HTML Code Clinic 5 July 20th, 2005 05:01 AM
Do people really use DHTML? bekim Javascript 4 June 8th, 2004 08:35 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.