Steven,
You might want to declare your variable as follows:
<xsl:variable name="t" as="element()">...
Kind regards,
Geert
Drs. G.P.H. Josten
Consultant
http://www.daidalos.nl/
Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665 JZ Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
http://www.daidalos.nl/
KvK 27164984
De informatie - verzonden in of met dit emailbericht - is afkomstig van
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit
bericht kunnen geen rechten worden ontleend.
From: Andrew Welch [mailto:andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com]
Sent: woensdag 27 januari 2010 18:39
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Re: [saxon] Generative XSLT
(I've just replied to the xsl-list as cross-posting should be avoided)
When you apply templates to that variable, you will apply
them to the document node, so it will look for a root
matching template.
To see that in action, add a mode to the apply-templates, and
add a root matching template with that mode and you should
see that it gets applied.
cheers
andrew
2010/1/27 Steven Ericsson-Zenith <steven(_at_)semeiosis(_dot_)org>:
Some guidance here please. What is wrong with the following?
In a template I have:
<xsl:variable
name="t">
<i>
<xsl:value-of
select="m" />
</i>
</xsl:variable>
<xsl:apply-templates
select="$t" />
which, using Saxon, appears to ignore the element <i> and
returns only
the value of m.
I had expected that apply-templates would apply the
template for <i>.
Is there a "proper way" to do this?
With respect,
Steven
--
Dr. Steven Ericsson-Zenith
Institute for Advanced Science & Engineering
http://iase.info
http://senses.info
----------------------------------------------------------------------
-------- The Planet: dedicated and managed hosting, cloud storage,
colocation Stay online with enterprise data centers and the best
network in the business Choose flexible plans and
management services
without long-term contracts Personal 24x7 support from experience
hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help(_at_)lists(_dot_)sourceforge(_dot_)net
https://lists.sourceforge.net/lists/listinfo/saxon-help
--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--