Method: IsoDoc::PresentationXMLConvert#loc2xref

Defined in:
lib/isodoc/presentation_function/xrefs.rb

#loc2xref(entry) ⇒ Object



140
141
142
143
144
145
146
# File 'lib/isodoc/presentation_function/xrefs.rb', line 140

def loc2xref(entry)
  if entry[:target]
    "<fmt-xref nested='true' target='#{entry[:target]}'>#{entry[:label]}</fmt-xref>"
  else
    entry[:label]
  end
end