I have thorough understanding of XML only. Now a days i am practicing with XSL issues. I just really confuse whether the use of "Select" attribte in <xsl:element> tag is to select some thing or go forward for next element tag. Plz help me out. Raheel.
select attribute used to specify the XPath value where you want to get the item from. Item may be an element likes "/rootElement/subElement", attribute likes "/rootElement/subElement/@color" or grous of attributes likes "/rootElement/subElement/@*" or expression likes "/rootElement/subElement[@color = 'blue']". It specification depends on the XSL tag that you are using. <xsl:value-of select="..."/> <xsl:for-each select="..."> ... </xsl:for-each> <xsl:element select="..."/> <xsl:apply-attributes select="..."/> better understand to XSL, here is a good tutorial. http://www.xfront.com/xsl.html
A select attribute allows you to specify, via an XPath expression, a node set to be processed by a given XSLT command. Without a select attribute, the command will be applied to all "direct children" of the current node being processed, which may not be what you want. ZVon.org has a really good tutorial on XPath: http://www.zvon.org/index.php?nav_id=10 Once you understand how to describe a set of nodes with an XPath expression, XSLT becomes much easier and more flexible to use.
Scott Bain<br />Senior Consultant<br />Net Objectives<br />425-591-5844<br /><a href="http://www.netobjectives.com" target="_blank" rel="nofollow">Net Objectives</a><br />----------------------------<br />* Sign up for our free newsletter by sending an e-mail to<br />firstname.lastname@example.org<br />* Learn about and join our design pattern community of practice by going to<br /><a href="http://www.netobjectives.com/dpexplained" target="_blank" rel="nofollow">www.netobjectives.com/dpexplained</a><br />* Alan Shalloway & Jim Trott's - Design Patterns Explained: A New Perspective on<br />Object-Oriented Design is now available<br />* Our new CDROM-based XML training is now available as well
Don't destroy the earth! That's where I keep all my stuff! Including this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners