@testable import PureXML import Testing /// Namespaced name creation and result-tree namespace fixup (#130): /// xsl:attribute/xsl:element honor the namespace attribute and resolve /// prefixed names against the stylesheet's declarations, xsl:copy applies /// use-attribute-sets, and the serializer declares every namespace a created /// name carries, generating prefixes when needed. @Suite("XSLT created names") struct XSLTCreatedNamesTests { private let xsl = "xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"" @Test("xsl:attribute with a namespace attribute generates a declared prefix") func test_attributeNamespace() throws { let style = """ v """ let result = try PureXML.XSLT.transform(stylesheet: style, source: "") #expect(result == "") } @Test("A prefixed xsl:attribute name resolves against stylesheet declarations") func test_attributePrefix() throws { let style = """ v """ let result = try PureXML.XSLT.transform(stylesheet: style, source: "") #expect(result == "") } @Test("xsl:copy applies use-attribute-sets") func test_copyAttributeSets() throws { let style = """ black """ let result = try PureXML.XSLT.transform(stylesheet: style, source: "") #expect(result == "") } }