In Property.java, value is annotated with @PluginValue. This is not the same as @PluginAttribute.
As implied in the description of PluginValue.java, the configuration for such an annotated field does not distinguish between attribute and "value" (text content), and so XSD generation of such annotated fields should allow for both (or, ideally, exclusively one or the other).
The log4j-config-2.xsd file generated by
log4j-docgen
and located at https://logging.apache.org/xml/ns/ does not allow for the<Property>
element inlog4j2.xml
to contain a value as text content.Using the generated XSD, this is valid:
but this is not valid:
However, as seen here, both are valid forms.
In Property.java,
value
is annotated with@PluginValue
. This is not the same as@PluginAttribute
.As implied in the description of PluginValue.java, the configuration for such an annotated field does not distinguish between attribute and "value" (text content), and so XSD generation of such annotated fields should allow for both (or, ideally, exclusively one or the other).