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

RE: XSL in IE 5.0, or is it?

Subject: RE: XSL in IE 5.0, or is it?
From: Gabriel Paiz III <gpaiz@xxxxxxxxx>
Date: Fri, 20 Nov 1998 20:14:38 -0800
xsl apply templates example
Chris Lilley wrote:
> But I was really surprised to see, in the XSL stylesheet distributed
> with the XML98 conference proceedings, an xsl:script element with
> Javascript in there.
...
>lets hope that the final IE5 release is fully conformant, with any
>proprietary extensions clearly marked out as such by being in a
>different, non-xsl namespace.

whether or not xsl:script comes in under a different namespace, I can
see a need for it in some transformations.  I'm not sure where this
practice came from, but in some of my documents, I have a COLWIDTH
attribute that has '*' appended to the end of a number to represent a
percentage of the width of a table. This won't work if I move it over to
an HTML element that has a WIDTH attribute that expects a '%'. 

<xsl:template match="COLSPEC">
   <xsl:element name="COL">
      <xsl:attribute
name="WIDTH"><xsl:eval>makePercent(this,'COLWIDTH')</xsl:eval></xsl:attr
ibute>
      <xsl:apply-templates/>
   </xsl:element>
</xsl:template>

<xsl:script language="Javascript">
function makePercent(oNode, sAttrName)
...
</xsl:script>

from James Robertson [jamesr@xxxxxxxxxxxxxx]:
>Another step in Microsoft's process of "de-comoditizing" open
>standards ...

They might just be anticipating a developer need.

from Elliotte Rusty Harold [elharo@xxxxxxxxxxxxxxx]:
>but the examples of simple XSL
>stylesheets in the standard and the examples in IE 5.0 on Microsoft's
Web
>site seem to be based on diametrically opposed philiosophies of how to
>transform XML to HTML. The standard seems to be based on transforming
XML
>elements according to a series of rules.  IE 5.0 seems to use a
completely
>different scheme based on embedding XML data in an HTML template.

The 2.7.7 example from the draft seems pretty similar to the
apply-templates example on the web site.

__________________________________
SPX - Valley Forge T.I.S.
25691 Atlantic Ocean Drive Suite B-7
Lake Forest, CA 92630
USA    www.vftis.com


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


Current Thread

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.