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

Namespace Jungle

Subject: Namespace Jungle
From: Anton Swanevelder <AntonS@xxxxxxxxxxxx>
Date: Mon, 27 Mar 2000 12:22:03 +0200
jungle templates
Dear Reader

Being very new at this I am really strugling with namespaces.
Some of your examples xsl namespace points to: <xsl:stylesheet
xmlns:xsl="http://www.w3.org/TR/WD-xsl">
but the rest of xml.com, w3c ect. examples points to <xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

The First namespace works with a simple example like this:






<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
		xmlns:xlink="http://www.w3.org/1999/xlink"
		version="1.0">
<xsl:output method="html" version="4"/>

<xsl:template match="/">
   <html>
      <head>
         <title>Inventory Model</title>
      </head>
      <body>
         <xsl:apply-templates select="MODEL"/>
      </body>
   </html>
</xsl:template>

<xsl:template match="MODEL">
   <h1>Inventory Model</h1>
   <table>
       <th>Category</th>
           <xsl:apply-templates select="CAT"/>
   </table>
</xsl:template>

<xsl:template match="CAT">
   <tr>
      <td><xsl:value-of select="@PARETO"/></td>
   </tr>
</xsl:template>

</xsl:stylesheet>








but with the second namespace the Data(TD) columns doesn't show.

I want to use the format-number call but it seems that the first namespace
doesn't support it but the second one does.

Is there anybody out there that could give me pointers on how to overcome
this problem and namespace is the right
one to use. I would also like to know if there is anybody that uses IE5 only
or should I rather use XT or Adobe plug-in?


Very confused rookie XSLT user,


 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.