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

XSLT Newbie - Need help with DOCTYPE, namespaces, and

Subject: XSLT Newbie - Need help with DOCTYPE, namespaces, and stuff
From: Daniel Lo Nigro <dansoftaus@xxxxxxxxxxxx>
Date: Thu, 26 Apr 2007 21:26:38 +1000 (EST)
 XSLT Newbie - Need help with DOCTYPE
Hi everyone, 
 I'm making a XSLT stylesheet for XML files for SMF
(simplemachines.org) modifications. Even though the
XSLT stylesheet looks correct, it doesn't seem to work
with the XML files. However, when I comment out the
doctype (and remove the xmlns="" from the root
element), the XSLT stylesheet works fine.

Here's what the XML file looks like normally:
<?xml version="1.0"?>
<?xml-stylesheet href="package-info.xsl"
<!DOCTYPE package-info SYSTEM


And here's how I edited it to make it work:
<?xml version="1.0"?>
<?xml-stylesheet href="package-info.xsl"


My question is, how do I make it work with XML files
that have the doctype and xmlns defined?

The XSLT stylesheet was originally made using
Dreamweaver 8, but I eventually recoded most of it in
a plain text editor.

XSLT stylesheet:
Working XML file:
Non-working XML file:

Thanks :)
 -- Daniel15

Send instant messages to your online friends http://au.messenger.yahoo.com 

Current Thread


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.
First Name
Last Name
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.