[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: problem in using * as a default parameter in xsl:p
> > this is what i did: > > <xsl:param name="param1" select="*"/> > .... > <xsl:for-each select="elementName[childName=$param1]"> > <xsl:copy-of select="elementName"/> > </xsl:for-each> > ... > You're straying into dynamic XPath expressions here. If you don't want to use the xx:evaluate() extension, you can do: <xsl:param name="childElement" select="'*'"/> <xsl:for-each select="element[$childElement!='*][childName=$childElement] | element[$childElement='*']"> Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|