[Home] [By Thread] [By Date] [Recent Entries]

  • To: "Xmldev (E-mail)" <xml-dev@l...>
  • Subject: Internal references to other element values
  • From: "SHARPE, Ian" <Ian.SHARPE@c...>
  • Date: Thu, 29 Nov 2001 12:57:51 -0000

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


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member