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