Re: [xsl] nesting xml

Subject: Re: [xsl] nesting xml
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 03 May 2001 16:25:39 +0100
Mark:

Start by checking out the MSXML FAQ that Joshua Allen (blessings upon him) placed at www.netcrucible.com. Your stylesheet's namespace declaration claims you are using an obsolete language (http://www.w3.org/TR/WD-xsl), not XSLT at all.

If you change your xsl namespace declaration and run it through a conformant processor, your stylesheet should work. At the moment the problem is either that:

a. Your stylesheet is correct but your processor is out of date, or
b. Your stylesheet is correct but your processor doesn't know it's a stylesheet, because of the incorrect namespace.


Once you're actually running XSLT, things may look a bit clearer. And don't be dismayed by the gnashing of teeth: you have fallen into a pit that has claimed many victims.

Good luck,
Wendell

At 08:41 PM 5/3/01, you wrote:
can someone tell me what's wrong with this? the xsl doesn't seem to match anything in the xml...mainly the line '<xsl:template match="text">':

XSL:

<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl";>
<xsl:template match="text">
  <html>
  <body>
  hello
  </body>
  </html>
</xsl:template>
</xsl:stylesheet>

XML:

<?xml version="1.0"?>
<ROOT>
 <text>
  <definition>
   <color>
    content
   </color>
   <size>
    content
   </size>
   <font>
    content
   </font>
  </definition>
  <data>
   content
  </data>
 </text>
</ROOT>

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

====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================


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



Current Thread