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

XSL / XML initial tag incompatibility

Subject: XSL / XML initial tag incompatibility
From: "yechiel lewis" <yechiel_lewis@xxxxxxxxxxx>
Date: Wed, 23 Mar 2005 20:46:32 +0300
initial tags
Hi all

I'm fairly new to XSL and have a problem matching the initial tags in my XSL file with the corresponding tags in the matching XML file.

If I remove the initial XML tags, the XSL works, but not otherwise.

What am I missing in the XSL to make it work for the corresponding XML file below?

XML initial tags

< ?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Report xmlns="http://www .CpmXmlReport.co.il" xmlns:xsi="http://www .w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.CpmXmlReport.co.il XmlReport.xsd">
<Site>
<Unit ID="1" Type="LAN">
...


XSL initial tags

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www .w3.org/1999/XSL/Transform" xmlns:xsi="http://www .w3.org/2001/XMLSchema-instance">
<xsl:output method="html"/>
<xsl:template match="Unit">
...


However, if I change the XML to the following, it the XSL then works OK.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Site>
<Unit ID="1" Type="LAN">
...

Thanks for any help.
Regards
Jeff

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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.