It's not clear whether you are asking an XSLT question or an XML Schema
question.
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
http://www.saxonica.com/
-----Original Message-----
From: Julio Garvía [mailto:jgarviahonrado(_at_)yahoo(_dot_)es]
Sent: 20 September 2005 14:13
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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, más seguridad
http://correo.yahoo.es
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--