Subject: RE: Matching elements with a name specified by an attribute value From: Kay Michael <Michael.Kay@xxxxxxx> Date: Mon, 23 Oct 2000 10:20:15 +0100 |
> > You say that what I'm trying to do is bad document design. > ... Essentially, the names of the data elements do identify > types, and are all different... > > <layout layout-id="block1"> > <layout_item data_element="reference"/> > <layout_item data_element="trade_date"/> > <layout_item data_element="ccy"/> > <layout_item data_element="amount"/> > </layout> > > <trade layout-ref="block1"> > <reference>12345</reference> > <trade_date>23-Oct-2000</trade_date> > <ccy>GBP</ccy> > <amount>1,500.00</amount> > </trade> > Yes, that looks more sanitary. Be aware though that such structures (which contain implicit links between data objects and metadata objects) are not well-supported by standards such as XML namespaces or XSLT itself. Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Matching elements with a name s, Benoit Cerrina | Thread | RE: Matching elements with a name s, Kay Michael |
Re: Simple XSL question, Mike Brown | Date | RE: A simple question, Oscar Gonzalez |
Month |