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

Re: Crazy idea: loopback namespace

Subject: Re: Crazy idea: loopback namespace
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 25 Feb 2000 09:54:44 GMT
crazy templates
> When a element
> in the loopback namespace is closed it is fed back into the stylesheet.

I don't understand where or when you feed back.

Since you wrote

<xsl:template match="loop:yyy">

I assume you mean that the loop:yyy node appears in the source tree
(rather than the stylesheet) But where in th esource tree does it
appear, ie what apply-templates select call would trigger thet template?

Also there is the question of timing. xsl being side effect free means
that the processor can have rather a lot of freedom in the order that it
evaluates things.

Thus it might be hard to ensure that


<xsl:template match="xxx">
    <loop:yyy parm1="a" parm2="b"/>
</xsl:template>


is evaluated befor any match on loop:yyy

A similar problem if you try to use xt:document or saxon:output to
write to an external file and then read it back in with document()
Even if you ignore the buffering of writes so the file might not appear
on the filesystem quick enough, there is basically no way of knowing
the order in which templates are evaluated. (You may not assume that the
source document is processed in document order)

Actually since parameters names are qnames they could be used as
attribute values, thus I'd quite like to be able to write

<xsl:call-template name="xxx">
  <xsl:with-param name="fff" select="123"/>
  <xsl:with-param name="ggg" select="456"/>
</xsl:call-template>

as

<xsl:call-template name="xxx" fff="123" ggg="456"/>


and just leave the more verbose form for when I need to pass a result
tree fragment in as the parameter.

Maybe you would only allow the shortened form if the parameter names
were in a non default, non xsl namespace

<xsl:call-template name="xxx" x:fff="123" x:ggg="456"/>

Otherwise you'd have to have special rules for `name'.

David


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.