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

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [xml-dev] Internal references to other element values



Not within the XML document itself.  An XML document contains only data.
There is no logic processing within the elements.

J. Keith Wedinger
Senior Software Developer
Sterling Commerce
keith_wedinger@stercomm.com


-----Original Message-----
From: SHARPE, Ian [mailto:Ian.SHARPE@cambridge.sema.slb.com] 
Sent: Thursday, November 29, 2001 7:58 AM
To: Xmldev (E-mail)
Subject: [xml-dev] Internal references to other element values


Hello,

Can you specify that the value of an XML element comprises the value of
another element in the same file plus another string for example? ie. Can
you specify in the XML document that the value of the subdirectory element =
value of the <map1> element plus the value specified. In other words, and
apologies in advance for the complete abuse of the notation, the
subdirectory element might look like:

<subdirectory><map1 value>abc\def</subdirectory>

but you see what I mean. Obviously this can be done using a style sheet but
this then impacts on maintenance of the actual document.

<config>
	<map1>bob</map1>
	<map2>mcbob</map2>
	<tasks>
		<task>
			<subdirectory>abc\def</subdirectory>
		</task>
		<task>
			<subdirectory>uvw\xyz</subdirectory>
		</task>
	</tasks>
</config>

Cheers
Ian



___________________________________________________________________________
This email is confidential and intended solely for the use of the 
individual to whom it is addressed. Any views or opinions presented are 
solely those of the author and do not necessarily represent those of 
SchlumbergerSema. 
If you are not the intended recipient, be advised that you have received
this email in error and that any use, dissemination, forwarding, printing,
or 
copying of this email is strictly prohibited.

If you have received this email in error please notify the SchlumbergerSema
Helpdesk by telephone on +44 (0) 121 627 5600.
___________________________________________________________________________


-----------------------------------------------------------------
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>