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

Re: More fun with MSIE

Subject: Re: More fun with MSIE
From: "Steve Muench" <SMUENCH@xxxxxxxxxxxxx>
Date: 15 Nov 98 17:03:53 -0800
xsl previewer
| o Lack of support for attribute value templates.  Expressions usable 
|  in <xsl:value-of/> are also usable inside attribute values, 
|  delimited by {...} in the WD.  MSIE does not support this, making 
|  generated links impossible.  For example: 
| 
|  <xsl:template match="email"> 
|    <A HREF="mailto:{.}";> 
|      <xsl:value-of select="."/> 
|    </A> 
|  </xsl:template> 
 
I'm not familiar with what the "." syntax is implying, but I was able 
to get a simple example like this to work fine. 
 
The Data 
-------- 
<stuff> 
  <email foobar="smuench"/> 
</stuff> 
 
The Stylesheet 
-------------- 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">  
<xsl:template > 
  <xsl:apply-templates/> 
</xsl:template> 
 
<xsl:template match="email"> 
  <a><xsl:attribute name="href"><xsl:eval>"mailto:";</xsl:eval><xsl:value-of 
select="@foobar"/></xsl:attribute></a> 
</xsl:template> 
</xsl:stylesheet> 
 
____________________________________________________________________________ 
 Steve  | Consulting PM & XML Technology Evangelist | smuench@xxxxxxxxxx 
 Muench |      Java Business Objects Dev Team       | geocities.com/~smuench 
 
         Get to know JBO at http://javatools/jbo/owa/walkthrough 
                Do you XML? http://xml.us.oracle.com
--- Begin Message ---
Subject: Re: More fun with MSIE
From: Chris Maden <crism@xxxxxxxxxxx>
Date: 15 Nov 98 16:07:17
[I said]
> Today I sat down to develop my first real XSL stylesheet, using MSIE
> 5b2 as the previewer.  Imagine my joy to discover in their
> documentation that they don't support <xsl:process/> or
> <xsl:process-children/>.

That is strictly correct, but I must apologize for not reading MS's
documentation carefully.  They have implemented
<xsl:apply-templates/>, which the WG has agreed to use to replace both
<xsl:process/> and <xsl:process-children/>.

The main problems remaining with MSIE's implementation:

o Lack of support for | in patterns.  In <xsl:template>, this isn't a
  real problem; multiple templates can be created.  However, in
  <xsl:apply-templates/>, it's a barrier to use: you can't say,
  "Process elements of these types, in whatever order they arrive."
  You can either say, "Process all elements, in whatever order they
  arrive," or, "Process this kind of element, then this kind of
  element, then...".

o <xsl:apply-templates/> is not applied to character data.  The only
  way to produce character data in the output from character data in
  the input is with <xsl:value-of/>; this makes mixed content
  impossible if some of the child elements must be processed or have
  generated content.

o Lack of support for attribute value templates.  Expressions usable
  in <xsl:value-of/> are also usable inside attribute values,
  delimited by {...} in the WD.  MSIE does not support this, making
  generated links impossible.  For example:

  <xsl:template match="email">
    <A HREF="mailto:{.}";>
      <xsl:value-of select="."/>
    </A>
  </xsl:template>

  should produce an e-mail address linked to itself, but MSIE leaves
  "mailto:{.}"; as the value of the HREF attribute.  This also makes
  links within a document impossible.

Fortunately, XT completely implements the transformation part of the
WD, conformingly, and is easy to use.

-Chris
-- 
<!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN">
<!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN"
"<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487
<USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek>


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

--- End Message ---
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.