[Home] [By Thread] [By Date] [Recent Entries]

  • From: PaulT <pault12@p...>
  • To: David Carlisle <davidc@n...>, jborden@m...
  • Date: Fri, 21 Sep 2001 02:29:04 -0700


> > This accounts for restrictions
> > in XSLT, most notably that you can't add attribute nodes after you've
> > added any element.
> 
> You can:
> 
> <xsl:stylesheet 
>    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
>    version="1.0">
> 
>    <xsl:template match="/">
>      <A>
>       <xsl:attribute name="b">bbb</xsl:attribute>
>      </A>
>    </xsl:template>
> 
> </xsl:stylesheet>
> 

My mistake. I should elaborate. I think you're talking about 

<A>
<B/>
<xsl:attribute name="b">bbb</xsl:attribute>
<A>

( which is forbidden )

My point was that just existance of  xsl:attribute 
is making streaming hard and there are also some 
other things...  That's why there is no (?) XSLT 
engines that support the streaming. I think this is 
all as hypitetical as 'no-side-effects allows paralellism'
( there is no parallelism in current XSLT engines)

Rgds.Paul.



Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member