xsl-list
[Top] [All Lists]

[xsl] Re: xhtml via xslt failure

2013-12-17 11:27:07

An XSLT 1.0 processor will not observe XSLT 2.0 semantics even if the
stylesheet says "2.0". You haven't said what processor you are using.


Using jedit text editor with xml plug-ins. The documentation states
that the default processor is xalan for xslt10 and xpath10, with
option to use saxon9 (now using default).

apply-templates select="author", in contrast, selects all author
element children and applies templates to them. As you have not
provided an author, the built-in template for elements will be used;
it applies templates to the element contents, which results (unless
you intervene to change this behavior) in the element's data contents
(text node descendants) being copied into the result.

Surely the statement: "...select='./author'..." provides details of the 
authors?

Applying templates to the 'author' elements will result in whatever
output those templates specify. Matching an element with an empty
template is a normal way of suppressing its data from the results.


Can't see an empty template...

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--