OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] Xpath and msxml

[ Lists Home | Date Index | Thread Index ]

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@werken.com] 
Sent: Monday, March 25, 2002 4:24 PM
To: Cristi Rusu
Cc: xml-dev@lists.xml.org
Subject: Re: [xml-dev] 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@ntlworld.com'
> Cc: '=SMTP:xml-dev@lists.xml.org'
> Subject: RE: [xml-dev] 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&uuml;rzburg und 
> verbringen zur Zeit ihre Auslandswahlstation bei Anw&auml;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
> &rdquor;Windows&rdquor;</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>
> 




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS