[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Re: xhtml via xslt failure


Subject: [xsl] Re: xhtml via xslt failure
From: e-letter <inpost@xxxxxxxxx>
Date: Tue, 17 Dec 2013 17:26:55 +0000

> 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...


Current Thread
Keywords