This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Best Technics to include snippets
- From: "Braumuller, Hans" <h dot braumueller at hanseorga dot de>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 27 May 2002 11:03:02 +0200
- Subject: [xsl] Best Technics to include snippets
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hello friends,
whats is the best technic to include (like in shtml with include) snippets,
that i need in different combination, depending on the application case and
which have no relation with xml-source ?
For example buttons like <input type="buttons"
value="{$buttons[@name='search']}" />. So in case A i have 4 buttons in case
B 7, etc.
The xml-data from the buttons i have set in a second xml-document, getting
it with the document function:
<xsl:param name="buttons" select="document(buttons_en.xml)/root/form/input"
/>
For header and footer that are always the same i am using <xsl:import>,
getting it with <xsl:call-template>.
Thanks,
Hans Braumuller
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list