Subject: RE: [xsl] XML fragment as a param ? From: "Fraser Goffin" <goffinf@xxxxxxxxxxx> Date: Thu, 03 Nov 2005 11:46:10 +0000 |
"Fraser" == Fraser Goffin <goffinf@xxxxxxxxxxx> writes:
Fraser> Is it possible to pass in an XML fragment as a param and Fraser> then access nodes in the fragment as well as those in the Fraser> main source instance ?? For example could I compare a
Fraser> node value in the original source instance with one in the Fraser> fragment passed in as a param ??
<xsl:param name="inboundXML"> <xsl:text>default-value</xsl:text> </xsl:param>
<!-- output the result --> <rootContainer> <xsl:value-of select="$inboundXML//Three"/> </rootContainer>
<?xml version="1.0" encoding="UTF-8"?> <Numbers> <Odds> <One>1</One> <Three>3</Three> <Five>5</Five> </Odds> <Evens> <Two>2</Two> <Four>4</Four> <Six>6</Six> </Evens> </Numbers>
Fraser> Is it possible to pass in an XML fragment as a param and then Fraser> access nodes Fraser> in the fragment as well as those in the main source instance
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XML fragment as a param ?, Michael Kay | Thread | Re: [xsl] XML fragment as a param ?, David Carlisle |
Re: [xsl] [XPath20] Decoding URIs, David Carlisle | Date | RE: [xsl] [XPath20] Decoding URIs, Michael Kay |
Month |