R/initStyleNames.R

initStyleNames <- function(node, env)
{
   sfun <- function(s) xmlGetAttr(s, 'style:name', 'ERROR')
   stylenames <- unlist(treeapply(node, 'style:style', sfun, onlyFirst=FALSE, rooted=FALSE))

   for (sname in stylenames)
   {
      assign(sname, sname, pos=env)
   }
}

Try the odfWeave package in your browser

Any scripts or data that you put into this service are public.

odfWeave documentation built on May 2, 2019, 6:51 p.m.