[Home] [By Thread] [By Date] [Recent Entries]
First, you wouldn't be the guy who wrote this garbage? :)
What version of XSL are you using? (answer should be 2.0 if using it on the server :) ) more inline... On Apr 23, 2009, at 2:50 PM, Shawn Milochik wrote: I'm writing an online application (as in a form you fill out). When printed, it's about 30 pages long, so the site has to be modular. I'm putting sections of it into XML files and having XSLT process the controls (text boxes, etc.) into HTML forms. I would look at it in a slightly different way. How about using XSL to pregenerate *as much as possible* (or comfortable) and then let some dynamic language like JSP or whatever handle the runtime. In other words, in the case of JSP, generate a JSP page. That way the runtime does as little work as possible. Also, if your app is using/requires javascript, you can use the XSL to set up page specific JS.
do both where it makes sense. As I said earlier, I'm brand-new to XML (as of about two weeks ago), and have just pieced a bunch of things together from Google searches to get it working so far. I wouldn't really say I "know" XSLT -- only that I have "been using" XSLT. what is the discriminator? Is it something that can be determined before deployment based on some page attribute or do you need to have info at runtime?
modulus
xsl:template/@match up your needs
yes to the first part and no to second
Yes If that's the case, let me know, and please recommend the best book for becoming a proficient user of XSLT. I learned XSL by diving into the docbook XSLs and modifying those. As for books, the only one I never found useful was O'Reilly's (which is strange). Mike Kay's is the bible
You can either pass it as a param or <xsl:value-of select="parent::*/@myattr"/> and how to check to see whether any of the child nodes had a specific value in a named attribute when processing the parent node. <xsl:if test="*[@myattr='foo']"> </xsl:if>
one of the best things you can do is follow and/or ask good questions on this list. Include a small XML source, your XSL try and the desired output. Usually doing this will eventually solve the problem for you. But, if you are still uncertain, show what yo9u have done and ask about a better way. best, -Rob Thanks, Shawn
|

Cart



