class Nokogiri::XML::Schematron::Nodes::Require
The abstract syntax tree node whose +@context+ XML
attribute is REQUIRED.
Protected Instance Methods
build_assertion!(xml)
click to toggle source
# File lib/nokogiri/xml/schematron/nodes/require.rb, line 11 def build_assertion!(xml) xml["sch"].send(:assert, xmlns.merge({ "test" => "count(#{@context}) >= 1", })) do xml.text("element \"#{@context}\" is REQUIRED") end return end