Huditsch, Roman (LNG-VIE) wrote: > > I would like to select a node with > <cfg:command name="selectNode" > parameter="ancestorOrSelf[implicitElement] aktuelles"/> > <cfg:command name="selectNode" parameter="descendant[implicitElement] > kunden-kategorie"/> > > my structure looks as follows > > <aktuelles> > <meta> > <autor></autor> > <erscheinungsdatum></erscheinungsdatum> > <letztbearbeitungsdatum></letztbearbeitungsdatum> > <kategoriezuordnung> > <kunden-kategorie name="art-id"/> > <glp-themenkategorie></glp-themenkategorie> > </kategoriezuordnung> > <registereintrag></registereintrag> > </meta> > <titel></titel> > ... > > I haven't found a solution to select <kunden-kategorie> from everywhere > in my document. > I suppose that the descnedant selection doesn't work in my case because > of "If no descendants of selected node were previously selected, > searches a descendant node along the first child axis."
Yes. > Is there a simple way to select a specific element node in my document > (maybe with an absolute path)? Sure, forget about command "selectNode" and instead, use macro-command element <set> and an XPath variable mapped to the selection in XXE. See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/selection_vars.html

