RE: [xsl] Using values to built names

Subject: RE: [xsl] Using values to built names
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 20 Sep 2005 14:23:17 +0100
It's not clear whether you are asking an XSLT question or an XML Schema

If you have an XSLT question, what is your input document, and what do you
want the output document to look like?

You XML Schema question is off-topic for this list, but the answer is no:
XML Schema can't express a structure in which the name of one element is
constrained to be the same as the value of another. It's probably not a very
good XML design anyway (one would want to see the conceptual data model to
see if there's a better way of expressing it).

Michael Kay

> -----Original Message-----
> From: Julio Garvma [mailto:jgarviahonrado@xxxxxxxx]
> Sent: 20 September 2005 14:13
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] Using values to built names
> Hi,
> I am little bit new in XSL and I would like to use an
> XML value to build some XML tags, for example:
> <?xml version="1.0"?>
> <MyXmlDocument>
> 	<Field ID="1">MyField</Field>
> 	<MyField_Path>Some_data</MyField_Path>
> 	<MyField ID="1">Some_data</MyField>
> 	<MyField ID="2">Some_data</MyField>
> </MyXmlDocument>
> Pay attention on how 'MyField' value is used to build
> the rest of the XML tags (MyField_Path and MyField).
> Then my question is, how could I specify this in an
> XML Schema?
> Thanks a lot for all your support.
> ______________________________________________
> Renovamos el Correo Yahoo!
> Nuevos servicios, mas seguridad

Current Thread