Skip to content

Character References get broken #10

@akond

Description

@akond
(let [stylesheet          (xsl/stylesheet {:version 3.0}
                              (xsl/variable {:name "break1" :select "'
'"})
                              (xsl/variable {:name "break2"}
                                (xsl/text "\n"))
                              (xsl/template {:match "a"}
                                [:b]
                                [:p (xsl/value-of {:select "$break1"})]
                                [:p (xsl/value-of {:select "$break2"})]))
        compiled-stylesheet (xslt/compile-sexp stylesheet)]
    (xslt/transform compiled-stylesheet "<a/>"))

gives me

<b/>\n<p>&amp;#x0A;</p>\n<p>\n</p>

which is weird. I'd expect to see '&#x0A;' not an amp.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions