xsl-list
[Top] [All Lists]

Re: [xsl] Sibling axis and as="element()"

2006-07-31 09:37:14
There does have to be a single root node, and there is.

What there isn't is a single document element.
So that makes it a general parsed entity, rather than a well-formed document.

As long as you don't particularly need the latter (you would if you intended to serialize it, and then expect an XML parser not to choke on it), then there is no problem.

From: "andrew welch" <andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com>

In this case:

<xsl:variable name="foo" as="document-node()">
        <xsl:document>
                <foo/>
                <foo/>
                <foo/>
        </xsl:document>
</xsl:variable>

There is a document node and three child elements, that are siblings
of one another but that do not have a common parent?  How come in this
case there doesn't have to be a single root node?


_________________________________________________________________
The new MSN Search Toolbar now includes Desktop search! http://join.msn.com/toolbar/overview


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