I need xslt version 2 to generate the domain name for the "xml" attribute prefix (xml:lang="en-us") at either at the record or element level:
xmlns:xml="http://www.w3.org/XML/1998/namespace"
I tried using both xsl:namespace and using xsl:attribute ... namespace=
Neither worked for me - any suggestions would be terrific Thanks David
According to http://www.w3.org/TR/REC-xml-names/#ns-decl "The prefix xml is by definition bound to the namespace name http://www.w3.org/XML/1998/namespace. It MAY, but need not, be declared, and MUST NOT be bound to any other namespace name." so while you can certainly use that namespace on a literal result element or output it with xsl:namespace I think there is no guarantee that the serializer outputs it as omitting it does not change the semantics of the XML.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With