This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Saving entire xml-Structures in a single variable


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]