[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Using values to built names
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 Garvma [mailto:jgarviahonrado@xxxxxxxx] > Sent: 20 September 2005 14:13 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: 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 > http://correo.yahoo.es
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|