[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: namespace declarations
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|