[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: use cases for d-o-e
"Nesbitt, David" <DNesbitt@xxxxxxxxxx> wrote: > I use XSLT to generate JSP pages, which I believe falls into your second > category. However, I am not willing to accept the notion that I should > simply use "text" as the output method. If I do that, it makes it much > more difficult to retain all of the HTML tags on the JSP page. It doesn't make it impossible, instead of writing <A href="{$url}">stuff</A> you can write <A href=<xsl:value-of select="$url"/>>stuff</A> You may need some time to get used to writing it this way, and admittedly it's harder to read, but you can do it without suffering major brain damage. Especially if you can use an editor which could be customized to display < as a bold < or such and does some nice coloring for the xsl instructions. > I use the saxon:d-o-e extension > frequently in the <xsl:attribute> tag, because I often want to use JSP > scriptlets and/or expressions to set HTML attribute values ... Hehe, even standard d-o-e is not sufficient! > What do > you suggest as the long-term solution in this case. I need further > convincing that the pain of using "text" as the output method is > merited. Well, you have probably started developing your pages with JSP, know a lot about this technology and it's the easiest way for you to get dynamic content into your pages. Now some stuff to get you thinking: 1. Why can't you do all processing in JSP? 2. Why can't you do all processing do in XSLT (perhaps considering passing dynamic stuff as parameters or secondary documents pulled in with document(), using extension functions or writing customized URIResolvers for special URL protocols for accessing external ressources)? 3. Why can't you use JSP (or whatever) to generate *XML* and use XSLT as the last stage in the processing pipeline? 4. Why can't you invoke the XSL processor *from within* JSP in order to embed the result of the transformation there? 5. In case you are batch processing XML to JSP offline, why can't you do XSL processing online? To me, using XSLT to generate JSP/ASP/PHP source online seems to be rather redundant. Regards J.Pietschmann 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
|