This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Saving entire xml-Structures in a single variable
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Saving entire xml-Structures in a single variable
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Wed, 11 Jul 2001 12:32:36 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> <xform:instance>
> <data>
> <name/>
> <lastname/>
> <tel.number/>
> <birthdate>
> <day/>
> <month/>
> <year/>
> </birthdate>
> </data>
> </xform:instance>
>
> Ok, my problem now is that I would like to take this structure between
> the <instance>- Tags und store it in a variable within my stylesheet.
<xsl:variable name="xf" select="//xform:instance/*"/>
<xsl:copy-of select="$xf"/>
should work fine.
Mike Kay
Software AG
> But I can't think of a way to give out the contained element-names.
> The content of the variable should at the end look like this:
>
> $i
> {<data><name/><lastname/><tel.number/><birthdate><day/><month/
> ><year/></
> birthdate></data> }
>
> I tried it with a simple <xsl:copy-of select="......"> but
> this command
> just gives me the text-content back, which is in that case null.
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list