Subject: Re: save me from the name spaces confusion From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 3 May 2000 12:19:01 +0100 (BST) |
1.Q.What are the files i can include in a namespace 1.A. None. It is just a name. 2.Q .How can i create a namespace of my own and refer it in my programs ex: < .... xmlns:"http://subramanian.com/happyman/success.xsl"> 2.A You almost did it above, if you had made it syntactically correct. by using = instead of : <abc xmlns="mailto:subramanian@xxxxxxxxxxxx">this</abc> is the abc element in the namespace mailto:subramanian@xxxxxxxxxxxx there is no actual file anywhere that defines what other element may be in that namespace, You just put the element into the namespace by virtue of using some string in xmlns attribute. 3.Q. is <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> a syntax for including xsls . 3.A It is a syntax for a very early (and now obsolete) draft of XSLT (before it has the name XSLT and was part of the XSL draft) It is the version used in IE5 by default, but since you say you are beginning you may as well use the standard XSLT language, which is in the namespace http://www.w3.org/1999/XSL/Transform Microsoft have a preview release which updates IE5 to use the standard namespace. 4.Q why the browser does not format a page if i include a xsl file as xsl:stylesheet xmlns:xsl ="local path" or "local ip address" and my own xsl 4.A Because if you put a different value for xmlns:xsl then you are saying that the xsl:stylesheet element is not in the XSL namespace but is in the namespace whose name is whichever URI you put. As it is not then XSL it will not be read by the XSL system of your browser (which must be IE5 I would guess as others don't have an embedded XSL system at all) 5.Q what are the procedures i need to follow in order to include a custom made schema in an xml file ? 5.A It depends which schema language you want to use, In any case an XSL system won't use the schema (other than a DTD, which may be consulted to look up attribute defaults and id declarations) > (DIV)(FONT color=#0000ff face="Comic Sans MS") (SPAN Please don't do that. Sending HTML encoded mail is bad enough, but If you must do it, at least put some generic font specifications in so that it has some chance of working on other machines. the guidelines for this list http://www.mulberrytech.com/xsl/xsl-list/archive/msg11972.html specifically ask posters not to use HTML encoded mail or attachments. David XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
save me from the name spaces confus, subramanian | Thread | RE: save me from the name spaces co, Ben Robb |
XPATH question, Sven Kuenzler | Date | RE: save me from the name spaces co, Ben Robb |
Month |