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

Re: nesting xml

Subject: Re: nesting xml
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 03 May 2001 16:25:39 +0100
Re:  nesting xml
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

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.