|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSLT 2.0 question
hi,
You seem to be defeating the purpose of separating your content from your presentation (that is why we like XSLT, right?). This app sounds like it needs to be redesigned... If your app cannot take more than one *primary* XSLT, I would say it is pretty limited. But, I may be misunderstanding what you wrote... -Rob Bryan Rasmussen wrote: thanks, I'd never thought about this way to use embedded stylesheets(they always seemed sort of useless to me) but unfortunately this isn't quite what I want to do. See we're working on an application in which there will be a lot of pre-written stylesheets to do transformations into various formats, the xml will come from Word, the end-user isn't going to know what the stylesheets are called as our target audience is not very technical besides some may be internal program resources, however as we expect that some of them will know html and some simple programming we are allowing different ways to include/write code into the Word documents, one of these code types could be xslt. For many reasons too voluminous to go into here I can't change the structure of how stylesheets are run in this app, that is to say the main stylesheet needs to be the external one, I don't see anyway this could be done from xslt 1.0, although I could prob. construct a hack whereby the app reads in the xslt, reads xml document, creates a node <xsl:import name=" <<put the name of the xml document here>>"/> and then have to do some parameter checking to tell me to switch between apply-imports and apply-templates at points in the document. sounds awful, is awful, that's why it's called a hack :) also introduces the dreaded side effects, not to mention being potentially the slowest thing ever. Don't want to do anything with side effects, thought there might be some way to achieve it in xslt 2.0 without side effects. 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
|

Cart








