class Nokogiri::XML::Schematron::Nodes::Reject

The abstract syntax tree node whose +@context+ XML attribute is NOT RECOMMENDED.

Protected Instance Methods

build_assertion!(xml) click to toggle source
# File lib/nokogiri/xml/schematron/nodes/reject.rb, line 11
def build_assertion!(xml)
  xml["sch"].send(:assert, xmlns.merge({
    "test" => "not(#{@context})",
  })) do
    xml.text("element \"#{@context}\" is NOT RECOMMENDED")
  end

  return
end