[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Dynamic variables?
I think this may be addressed in the FAQ, under "what can't XSLT do," but I'm not sure I'm understanding it correctly, specifically the question about referencing a variable whose name is referenced as an attribute in the XML. For example, suppose the XML looks like this: <styles> <style name="basic" typeface="Optima" weight="normal" slant="roman"/> <style name="emphatic" typeface="Optima" weight="bold" slant="italic"/> </styles> . . . <p style="basic">This paragraph contains some <span style="emphatic">emphatic</span> text.</p> I want to remember those "style" definitions so I can emit appropriate code when they are referenced. Is there a way to create variables whose names come from the @name attribute of the style elements, and reference them later by those names? Thank you, -pd -- -------- Peter Davis The Tech Curmudgeon - http://www.techcurmudgeon.com Ideas Great and Dumb - http://www.ideasgreatanddumb.com
|
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
|