[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Help moving away from named templates
sorry I have no idea what your peceived problem is, Your second example wasn't well formed, but assuming custID is formed it is structurally identical to the first example. So at that level your question seems to be, how, given two structurally identical XMl fragments do I arrange them to be processed differently. It's hard to answer that. basically you must know (somehow) which processing you need to do in each case, either you know from some external information, in which case you can pass in that information as an external parameter to the stylesheet, or the information is in some other part of the XML which you haven't shown, in which case you can select it with Xpath. In either case the logic would appear to be the same whether you are using named templates or template matching. > . But doesn't this circumvent the magical property of XSL to pick its > own darn templates according to the data? But you seem to be implying that the information is not in the data, so no. David ________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom. This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. ________________________________________________________________________
|
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
|