Fw: Quick start
"Simon Kelly" <[email protected]>
| Newsgroups | gmane.comp.java.strutscx.user |
|---|---|
| Message-ID | <[email protected]> |
Sorry, I have made this next point quite misleading. Here is the old and new :-) For the master template you CAN NOT use match="/", as your data is further into the output document structure. You will need to put match="/root/data/", if you want your data to be the root context of your xslt. You can actually match using "/", however, you must remember that there is much more information in the master xml document created by the document builder. This will include the i18n variable information in the /root/variables node, as well as any form data, bean information etc. If you only want to work with specific parts of the master document, then check where they are in the nodes and select them specifically in the sub templates in your xsl doc. To clear any erroneous (unwanted) text from appearing add in this template <xsl:template match="text()" /> and any call to <xsl:apply-templates /> anywhere in the rest of the document will stop the extra data ending up on your output page. Kind regards, Simon