xsl-list
[Top] [All Lists]

Re: What the processing Instruction mean.

2003-04-30 07:34:54
Sanghamitra Das wrote:
Hi
 can anyone tell me what the processing instruction mean.
When we write xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
what actually it means does it look for a DTD on that site.

That's a namespace declaration, not a processing instruction. It merely binds
the prefix 'xsl' to the string 'http://www.w3.org/1999/XSL/Transform', so that
element and attribute names using that prefix can be recognized as being XSLT
instructions. Namespace names must be absolute URIs but they are not resolved;
they're just used for identity.

Similarly for xml we write 
<?xml version="1.0"?>

This is not a processing instruction either. It has syntax that makes it
resemble one, but it is an XML declaration, or if it is in an external entity,
a text declaration. It is for the benefit of an XML parser. As for what it
means, consult an XML reference book or the spec at w3.org. This list is for
XSLT and XSLFO questions.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>