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

Re: Dumb question from a newbie on XSLT in IE5

Subject: Re: Dumb question from a newbie on XSLT in IE5
From: "Steve Muench" <smuench@xxxxxxxxxxxxx>
Date: Thu, 30 Mar 2000 14:32:05 -0800
xmls stylesheet xmlns
Hard-coded. It's just like a unique "key" string
that, per the XSLT 1.0 specification, lets the
XSLT processor know that when you use <xsl:template>
that you mean *the* <template> element in the XSLT 1.0
namespace.

You can technically map the prefix "xsl" to *any* 
namespace like:

<xsl:template xmlns:xsl="urn:something-else">

And the processor would not recognize this
as an "XSLT template"...

Conversely, you can map *any* prefix to the XSLT 1.0
namespace like:

<tired-fingers:stylesheet 
     xmlns:tiredfingers="http://www.w3.org/1999/XSL/Transform" 
     version="1.0">
  <tired-fingers:template match="/">
    <something>here</something>
  <tired-fingers:template>
</tired-fingers:stylesheet>

or

<x:stylesheet xmlns:x="http://www.w3.org/1999/XSL/Transform"
              version="1.0">
  <x:template match="/">
    <something>here</something>
  <x:template>
</x:stylesheet>

Both of which are legal, runnable XSLT 1.0 stylesheets.
 
_________________________________________________________
Steve Muench, Consulting Product Manager & XML Evangelist
Business Components for Java Development Team

----- Original Message ----- 
From: "Narahari, Sateesh" <Sateesh_Narahari@xxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxx>
Sent: Thursday, March 30, 2000 1:23 PM
Subject: RE: Dumb question from a newbie on XSLT in IE5


| ok...one more dumb question guys...when we say
| 
|  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
| 
| We are specifying an URI. Does the XSLT processor go and fetch this URI or
| is it just hard coded?.
| 
| Sateesh
| 
| -----Original Message-----
| From: Medina, Edward [mailto:emedina@xxxxxxx]
| Sent: Thursday, March 30, 2000 12:54 PM
| To: 'xsl-list@xxxxxxxxxxxxxxxx'
| Subject: RE: Dumb question from a newbie on XSLT in IE5
| 
| 
| The Problem is the version of 
| xmls that you are using. Although it is the latest its not
| the one that IE5 recognizes.  Use the following
| 
| xmlns:xsl="http://www.w3.org/TR/WD-xsl"
| instead of
| xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
| 
| and it should work fine.  You can leave all the other ones
| 
| 
| -----Original Message-----
| From: Jan Thunqvist [mailto:jan.thunqvist@xxxxxxxxxxx]
| Sent: Thursday, March 30, 2000 12:51 PM
| To: XSL-List
| Subject: Dumb question from a newbie on XSLT in IE5
| 
| 
| Hi,
| 
| This is probably me just making stupid things, but my XSLT in IE5 doesn't
| give any output:
| 
| XSL
| ----
| 
| <?xml version="1.0"?>
| <xsl:stylesheet version="1.0"
|  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|  xmlns="http://www.w3.org/TR/xhtml1/strict">
| 
| <xsl:output
|  method="xml"
|  indent="yes"
|  encoding="iso-8859-1"/>
| 
|  <xsl:template match="/">
|   <html>
|    <head>
|     <title>Test of XSLT in IE5</title>
|    </head>
|    <body>
|     <xsl:apply-templates/>
|    </body>
|   </html>
|  </xsl:template>
| 
|  <xsl:template match="bar">
|   <p>bar template</p>
|   <xsl:apply-templates/>
|  </xsl:template>
| 
|  <xsl:template match="baz">
|   <p>baz template</p>
|   <p>
|    <xsl:apply-templates/>
|   </p>
|  </xsl:template>
| 
| </xsl:stylesheet>
| 
| 
| With this XML-document, nothing happens except my debug output:
| 
| <?xml version="1.0"?>
| <?xml-stylesheet type="text/xsl" href="test.xsl" ?>
| <test>
|    <foo f_id="1"/>
|    <foo f_id="3"/>
|    <bar>
|       <baz b_id="1">test</baz>
|       <baz b_id="2">test2</baz>
|       <baz b_id="3">test3</baz>
|       <baz b_id="4">test4</baz>
|    </bar>
| </test>
| 
| Can someone please tell me what I'm doing wrong? Or is it a Microsoft IE5
| issue?
| 
| Thanks,
| 
| /Jan
| 
| 
| 
|  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
| 
| 
|  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
| 
| 
|  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
| 


 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.