XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Samz SammySubject: Send entire XML as is in param using XSLT 1.0
Author: Samz Sammy
Date: 26 Jul 2007 04:48 AM
Hi friends

I have a requirement wherein I need to send the entire MakeRows nodes as param in the xsl:with-param. Not just the values but also the XML tags of all MakeRows. Is it possible to do the same using XSLT 1.0 and if so how do we do it.

<STATISTICS>
<MakeRows>
<DATE>2007-05-21</DATE>
<AMOUNT>375.00</AMOUNT>
<LINETYPE>GIFTCARDS_ISSUED</LINETYPE>
<NUMBER>1101101600</NUMBER>
</MakeRows>
<MakeRows>
<DATE>2007-05-21</DATE>
<AMOUNT>395.00</AMOUNT>
<LINETYPE>GIFTCARDS_ISSUED</LINETYPE>
<NUMBER>1101101601</NUMBER>
</MakeRows>
<MakeRows>
<DATE>2007-05-21</DATE>
<AMOUNT>475.00</AMOUNT>
<LINETYPE>GIFTCARDS_ISSUED</LINETYPE>
<NUMBER>1101101602</NUMBER>
</MakeRows>
</STATISTICS>

regards
Sammy

Posttop
Alberto MassariSubject: Send entire XML as is in param using XSLT 1.0
Author: Alberto Massari
Date: 27 Jul 2007 05:42 AM
Hi Sammy,
if you need to invoke a template with a parameter, you just need to specify

<xsl:call-template name="tmpl1">
<xsl:with-param name="param1" select="/STATISTICS/MakeRows"/>
</xsl:call-template>

Is this what you were asking for?

Alberto

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.