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

Re: namespace declarations

Subject: Re: namespace declarations
From: Jeni Tennison <Jeni.Tennison@xxxxxxxxxxxxxxxx>
Date: Tue, 06 Jun 2000 18:12:43 +0100
xml stylesheet namespace
Alex,

>I saw this in one of the previous posts:
>
><?xml version="1.0" encoding="UTF-8"?>
><?xml-stylesheet type="text/xsl" href="test.xsl"?>
>
>Can someone explain or recommend some easy to read info on namespaces?
>In my .xsl file I've been using
><?xml:stylesheet ... instead of <?xml-stylesheet...
>
>Does it matter which one?
>And can I combine the two lines
>(<?xml version... and <?xml-stylesheet..)
>together?

This isn't a question about namespaces, it's about associating style sheets
with XML documents.

The <?xml version="1.0" ... ?> is the XML declaration.  You can read all
about it at <http://www.w3.org/TR/REC-xml#sec-prolog-dtd>.

The <?xml-stylesheet ... ?> is the xml-stylesheet processing instruction.
You can read all about it at <http://www.w3.org/TR/xml-stylesheet/#The
xml-stylesheet processing instruction>.

The xml:stylesheet processing instruction is, I believe, the processing
instruction that the Microsoft XSL processor used to use to identify the
stylesheet.  You shouldn't use it, and you don't need to use it if you're
using the latest MSXML.

You cannot combine the XML declaration and the xml-stylesheet processing
instruction together.

I hope this helps,

Jeni

Dr Jeni Tennison
Epistemics Ltd, Strelley Hall, Nottingham, NG8 6PE
Telephone 0115 9061301 ? Fax 0115 9061304 ? Email
jeni.tennison@xxxxxxxxxxxxxxxx



 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.