There is a scheme that can change. An xml file that does not fully satisfy this scheme is given. Those. there may be some nodes missing in the schema. It is necessary to convert using xslt this file so that in place of the missing nodes appear empty. To solve the problem once, I decided to write xslt, which according to the scheme creates another xslt, in which the deduction method is called for each node. If a node is found, its parameters are displayed; otherwise, an empty node. All anything, only in the second xslt you need to use xsl:element
, and to get it, you need to use <xls:element>
in the first xslt)))
Maybe I don’t know something, but I didn’t find the standard way to create xsl:element
(stalled while creating content for the new xsl:element
). Tried through <xls:value-of>
, also almost succeeded, but stubbornly unwilling to be displayed >
and <
. Can anyone know how:
- Or through
xsl:element
createxsl:element
- Or output
>
and<
.