[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: [saxon] Generative XSLT

Subject: RE: [saxon] Generative XSLT
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 27 Jan 2010 17:50:44 -0000
 RE: [saxon] Generative XSLT
XSLT coding questions should really go to the xsl-list at mulberrytech.com -
this list is for things that are specific to the Saxon product.

The value of $t is a document node. When you apply-templates to $t, the
processor will look for a template that matches document nodes (typically
match="/"). What happens next depends on what it finds. Without knowing what
rules are present in your stylesheet, it's not possible to explain what's
happening. However, the most likely explanation is that there are no rules
either for match="/" or match="i", and the built-in rules are being invoked.

Try using the -T tracing option to see if it sheds more light.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay  

> -----Original Message-----
> From: Steven Ericsson-Zenith [mailto:steven@xxxxxxxxxxxxx] 
> Sent: 27 January 2010 17:33
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Cc: Mailing list for the SAXON XSLT and XQuery processor
> Subject: [saxon] Generative XSLT
> 
> 
> 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@xxxxxxxxxxxxxxxxxxxxx 
> https://lists.sourceforge.net/lists/listinfo/saxon-help 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.