This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Matching elements with a name specified by an attribute value


> 
> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]