[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Using values to built names

Subject: RE: Using values to built names
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 20 Sep 2005 14:23:17 +0100
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.