M
Malcolm Dew-Jones
I am looking at xslt 1.0 and trying to understand if empty text nodes are
supposed to be stripped or not as the default behaviour.
3.4 starts by listing rules for when white space is not stripped and then
says "Otherwise the text node is stripped".
which appears to contradict a later paragraph that discusses the details
of the selection of nodes to be stripped ("Initially ... preserve ... all
element names").
xalan appears to keep white space by default, but I'm not yet familiar
enough with it to be sure I haven't invoked some white-space related
option with out realising it.
So, are empty text nodes in the xml source supposed to stripped or
preserved by default?
supposed to be stripped or not as the default behaviour.
3.4 starts by listing rules for when white space is not stripped and then
says "Otherwise the text node is stripped".
which appears to contradict a later paragraph that discusses the details
of the selection of nodes to be stripped ("Initially ... preserve ... all
element names").
xalan appears to keep white space by default, but I'm not yet familiar
enough with it to be sure I haven't invoked some white-space related
option with out realising it.
So, are empty text nodes in the xml source supposed to stripped or
preserved by default?