[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: How dynamic is XSL?
I assume that you want your output to be an equally arbitrary mix? Then that's easy to accomplish with xsl:template and xsl:apply-templates. Just write a template for each of your elements, and these template rules will fire whenever an element is found in the input document. If you would use xsl:for-each, then as you say if the xsl:for-each selects links, these would be processed first, and then if you have a second xsl:for-each select="text", the text would be processed next. xsl:for-each involves building up the resutl and 'pulling' data from the source file, while xsl:template/apply-templates involves reading the source XML and 'pushing' data to the result. I don't have a sample of your source so I'm leaving it at this rather abstract explanation. Linda 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
|