Skip to content

8387291: XSLT transformation fails on accented characters when output is set to HTML instead of XML#31689

Open
shruacha1234 wants to merge 1 commit into
openjdk:masterfrom
shruacha1234:8387291_fix
Open

8387291: XSLT transformation fails on accented characters when output is set to HTML instead of XML#31689
shruacha1234 wants to merge 1 commit into
openjdk:masterfrom
shruacha1234:8387291_fix

Conversation

@shruacha1234

@shruacha1234 shruacha1234 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

When XSLT output method is html, characters supported by the target encoding were serialized as HTML entity references (for example, é as eacute;). This caused failures when the generated output was later processed as XML.

Solution:
Update HTML serializer to write characters directly when they are supported by the configured encoding, and retain existing entity escaping behavior for unsupported characters.

Testing:
Verified XSLT transformation with accented characters and confirmed generated output can be parsed successfully without XML parsing failures.

Performed Tier1 and Tier2 tests in Linux with and without the fix. No regression found

The bug report for the same: https://bugs.openjdk.org/browse/JDK-8387291



Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8387291: XSLT transformation fails on accented characters when output is set to HTML instead of XML (Bug - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/31689/head:pull/31689
$ git checkout pull/31689

Update a local copy of the PR:
$ git checkout pull/31689
$ git pull https://git.openjdk.org/jdk.git pull/31689/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 31689

View PR using the GUI difftool:
$ git pr show -t 31689

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/31689.diff

… is set to HTML instead of XML

Signed-off-by: Shruthi <Shruthi.Shruthi1@ibm.com>
@bridgekeeper

bridgekeeper Bot commented Jun 26, 2026

Copy link
Copy Markdown

👋 Welcome back sacharya! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk

openjdk Bot commented Jun 26, 2026

Copy link
Copy Markdown

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk Bot added the core-libs core-libs-dev@openjdk.org label Jun 26, 2026
@openjdk

openjdk Bot commented Jun 26, 2026

Copy link
Copy Markdown

@shruacha1234 The following label will be automatically applied to this pull request:

  • core-libs

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core-libs core-libs-dev@openjdk.org

Development

Successfully merging this pull request may close these issues.

1 participant