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: Possible to transform XML params?


i am loading my xml document in asp then applying a transform with
a style sheet. if i pass in a param that contains xml, can i add
this xml to the other xml in the document so that i may process it
from within my xsl?

Jeremy,

Yes, you can do this easily. A parameter default to containing a nodeset, so
if you had an example like:

<xsl:param name="subData"/>

you can access that as if it was a node:

<xsl:template match="foo">
    <xsl:variable name="myData" select="$subData/myData"/>
</xsl:template>

-- Kurt Cagle


 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]