This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Matching elements with a name specified by an attribute value
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Matching elements with a name specified by an attribute value
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Mon, 23 Oct 2000 10:20:15 +0100
- Reply-To: xsl-list at mulberrytech dot com
>
> 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