Hmm... x2jDefn is defined in the px2j locale which is defined by the statement require 'sax/xml/x2j'
So what I had meant to paste into my message was: x2jDefn_px2j_ Meanwhile, nifxml was the locale which I had defined, and it inherits from px2j, as you can see here: copath'nifxml' +----+----+------+-+ |px2j|psax|pexpat|z| +----+----+------+-+ So hopefully that makes that issue a little clearer. But I am not sure how you got that error. I cannot reproduce it. Which version of J are you using, and are the addons up-to-date? Thanks, -- Raul On Wed, Feb 12, 2014 at 3:09 PM, Brian Schott <schott.br...@gmail.com>wrote: > Raul, > > These tutorials seem very valuable, but I am quite lost. > > I was fascinated by the following snippet because it looks like you somehow > are defining an explicit definition of some sort using an adverb > x2jDefn_nifxml_, but without the usual parts ` : 0` before the definition, > but ending with a line of only `)`. I got an error, so I am not sure how to > proceed to understand further the result of x2jDefn_nifxml_. Also, I am not > familiar with the syntax of the lines that use `:=`. > > It might help me if you showed an example that just repeated the previous > example, but with the new facility. > > (Actually, I am preparing another reply that will follow.) > > x2jDefn_nifxml_ > 1 : 0 > for_i. <;._2 (0 : 0) do. > 'nm df'=. ':=' splitstring >{.'NB.' splitstring >i > 'mn dy'=. dltb each 2 {. ' : ' splitstring df > nm=. dltb nm > if. 0=#dy do. nm x2jChar (3 : mn) > elseif. 0=#mn do. nm x2jElm (4 : dy) > elseif. do. nm x2jElm (3 : (mn;':';dy)) end. > end. > i.0 0 > ) > > 'Items'x2jDefn_nifxml_ > / := Result : Result=: '' > compound := cEnd y : x cStart y > add := aEnd y : x aStart y > add := aChr y > ) > |length error: x2jDefn_nifxml_ > | 'nm df' =.':='splitstring>{.'NB.'splitstring>i > > > Thank you, > > > -- > (B=) > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm