[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Xpath and msxml
In AUTOR I have this 4 elements AUTORVORNAME, AUTORNACHNAME, AUTORVORNAME, AUTORNACHNAME I need last AUTORNACHNAME from AUTOR to insert the FN P.S. : /AUFSATZ/RUBRIK/ARTIKEL/AUTOR[position()=last()]/AUTORVORNAME give me second element, I mean first AUTORNACHNAME -----Original Message----- From: bob mcwhirter [mailto:bob@w...] Sent: Monday, March 25, 2002 4:24 PM To: Cristi Rusu Cc: xml-dev@l... Subject: Re: Xpath and msxml First guess, and pardon typos, and that's not my language: /AUFSATZ/RUBRIK/ARTIKEL/AUTOR[position()=last()]/AUTORVORNAME Really, you need the AUTORVORNAME from the last AUTOR block, as I understand it, no? -bob On Mon, 25 Mar 2002, Cristi Rusu wrote: > > > -----Original Message----- > From: Cristi Rusu > Sent: Monday, March 25, 2002 4:16 PM > To: 'michael.h.kay@n...' > Cc: '=SMTP:xml-dev@l...' > Subject: RE: Xpath and msxml > > > Hello! > Me again with Xpath issues:) > > I have this XML: > > <AUFSATZ> > <RUBRIK>Wirtschaftsrecht</RUBRIK> > <ARTIKEL> > <AUTOR> > <AUTORVORNAME>MARKUS</AUTORVORNAME> > <AUTORNACHNAME>L&OUML;TZSCH > <FN ID="CA9312002000" ART="STERN"> > <TEXT> > <ABSATZ>Die > Verfasser sind Rechtsreferendare in Stuttgart und Würzburg und > verbringen zur Zeit ihre Auslandswahlstation bei Anwälten in New > York/ABSATZ> > </TEXT> > </FN> > </AUTORNACHNAME> > </AUTOR> > <AUTOR> > <AUTORVORNAME>KATRIN</AUTORVORNAME> > > <AUTORNACHNAME>SCHLECHT</AUTORNACHNAME> > </AUTOR> > <AUFSATZTITEL>Aktuelle Entwicklungen im > US-amerikanischen Warenzeichenrecht</AUFSATZTITEL> > <UNTERTITEL>Der Fall > ”Windows”</UNTERTITEL> > </ARTIKEL> > </AUFSATZ> > > How to select the last <AUTORNACHNAME> to insert the FN tag curently > inserted at first <AUTORNACHNAME>. > > ----------------------------------------------------------------- > The xml-dev list is sponsored by XML.org <http://www.xml.org>, an > initiative of OASIS <http://www.oasis-open.org> > > The list archives are at http://lists.xml.org/archives/xml-dev/ > > To subscribe or unsubscribe from this list use the subscription > manager: <http://lists.xml.org/ob/adm.pl> >
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|