[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Matching elements with a name specified by an attribute
> > 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
|
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
|