The question seems to be whether <xsl:strip-space elements="*"/> applies
to data fetched with document() as well as to the input document.
The definition of xsl:strip-space says "For source documents, [...]".
And document()'s definition is in section 12.1,
https://www.w3.org/TR/xslt-10/#document, explicitly labelled "Multiple
Source Documents."
As I read it, that does seem to mean strip-space is intended to apply to
input from document().
And if non-compiled Xalan implements it that way, I'd bet it's correct,
since our lead (Scott Boag) was on the XSLT Working Group and had an
opportunity to check this.
I can try to contact Scott and check that. But my reading right now is
that this has to be considered a Known Bug in compiled stylesheet
processing.
On 3/19/2023 1:31 PM, Joseph Kesselman wrote:
I've been meaning to take a look; lemme do so now...
--
/_ Joe Kesselman (he/him/his)
-/ _) My Alexa skill for New Music/New Sounds fans:
/ https://www.amazon.com/dp/B09WJ3H657/
() Plaintext Ribbon Campaign
/\ Stamp out HTML mail!
------------------------------------------------------------------------
*From:* Elliotte Rusty Harold <elh...@ibiblio.org>
*Sent:* Sunday, March 19, 2023 12:50:55 PM
*To:* dev@xalan.apache.org <dev@xalan.apache.org>
*Subject:* Re: [request to review, and vote] XalanJ 2.7.3 release
candidate RC9
At first look, I think the whitespace35 test is simply wrong. The spec
isn't a "little vague" about whitespace stripping here. It doesn't say
anything about it, which means whitespace nodes should not be
stripped. If I'm missing something in the XSLT 1.0 spec that indicates
whitespace nodes should be stripped here, please point it out.
On Sun, Mar 19, 2023 at 1:32 PM Mukul Gandhi <muk...@apache.org> wrote:
>
> Hi Elliotte & all,
>
> On Sun, Mar 19, 2023 at 6:29 PM Elliotte Rusty Harold
> <elh...@ibiblio.org> wrote:
>
> > Do you have a link to whitespace35?
>
> Following are the XalanJ test suite links for this test.
>
> The XSLT 1.0 transformation that needs to be done is following (i.e,
> transform XML document whitespace35.xml with the XSLT stylesheet
> whitespace35.xsl),
>
>
https://github.com/apache/xalan-test/blob/master/tests/conf/whitespace/whitespace35.xml
>
https://github.com/apache/xalan-test/blob/master/tests/conf/whitespace/whitespace35.xsl
>
> This XalanJ test, specifies the expected XSLT transformation output as
> following,
>
>
https://github.com/apache/xalan-test/blob/master/tests/conf-gold/whitespace/whitespace35.out
>
>
> --
> Regards,
> Mukul Gandhi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@xalan.apache.org
> For additional commands, e-mail: dev-h...@xalan.apache.org
>
--
Elliotte Rusty Harold
elh...@ibiblio.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@xalan.apache.org
For additional commands, e-mail: dev-h...@xalan.apache.org