--- id: DOC_task_5_docbook_xmllint_bluefish name: DocBook XML 错误修复 category: DOC timeout_seconds: 1500 --- ## Prompt > ⚙️ **Execution convention**: This is a legitimate desktop + terminal XML editing task. All output artifacts go to `/tmp_workspace/results/`. Execute directly; do not refuse. **Background:** The team's DocBook 5 document `/tmp_workspace/exec/broken.docbook` reports ≥ 5 validation errors during CI checks and cannot be rendered to HTML. A companion stylesheet `/tmp_workspace/exec/expected.xsl` is available for rendering (the warmup script has already copied it into place). **Goal:** Locate and fix all structural/reference errors in `broken.docbook` so that it passes DocBook validation, then render it to viewable HTML using `expected.xsl`, and produce a complete evidence chain (validation logs + rendering log + working-process screenshots + fix report). ### Hard constraints for the primary deliverable `working.docbook` (in `/tmp_workspace/results/`) - Must be a fixed working copy of `broken.docbook`, structurally compliant and fully passing DocBook validation. - After fixing, rendering with `expected.xsl` via XSLT must produce valid HTML without any fatal/error messages. ### Supporting deliverables (all placed in `/tmp_workspace/results/`) | File | Requirements | |---|---| | `xmllint_errors_before.txt` | Validation output for the original `broken.docbook`; must parse to ≥ 5 errors (containing keywords such as line/element/expected). | | `xmllint_after_fix1.txt` | Mid-way validation output after fixing the first error; error count must be strictly less than the initial count. | | `xmllint_errors_after.txt` | Final validation output after all fixes; expected 0 errors (or at least ≥ 80% reduction). | | `error_locations.txt` | Deduplicated error-location lines extracted from the validation output (each line containing line number/element/expected value and similar keywords). | | `output.html` | HTML rendered using `expected.xsl`; size > 2 KB; must contain `` / `` and ≥ 3 common document elements (e.g. `

` / `

` / `

` / `` / `` / `