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

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


----- Original Message ----- 
From: "David Carlisle" <davidc@n...>

> XSLT processors normally need to process entire input documents but XSLT
> is designed so the result can be streamed. 

Really? Is there any W3C document that says it?
Sofar I have not seen a single XSLT engine 
not accumulating the output... What is 'normally', 
by the way?

> 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>

Rgds.Paul.




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