xsl-list
[Top] [All Lists]

Re: XSLT processor

2003-06-04 02:50:26

What an XSLT processor do?

It executes XSLT instructions, same as a lisp processor executes lisp.
It may compile the stylesheets and execute compiled code or it may be an
interpreter.

Does XSLT processor use XML parser to parse XSL
statements?

XSLT is specified as being an application of XML so most likely all XSLT
systems do use a generic XML parser, although you could build an XSLT
system that had a specific XSLT parser and still be conformant. (Since
an XSLT stylesheet may use any XML feature the XSLT parser would end up
being essentially a full XML parser anyway.)

2)They use XML parsers to parse XSL stataments and
then walk on the DOM tree generated by the XML parser
to find the XSL expressions.Process these expressions
and modify this tree according to this statements

More or less this, except most don't build a W3C DOM but rather some
other internal tree model specific to that processor that is more tuned
to XSLT processing (this is also true for input documents as well as the
stylesheet) MSXML is notable that it does use its W3C DOM model for both
the stylesheet and input documents.

I think the second one is more realistic.
Am I right? If someone can explain what XSLT exactly
does, I would be grateful


And lastly, what kind of tree(or any other data
structure) is used by XPath to store XML nodes?

Xpath is a language specification not an implementation API.
The internal structures used by the systems may or may not be documented
by the system authors, and may or may not have an external API, but in
general they may not be shared between systems.


David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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



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