tag:blogger.com,1999:blog-1755372041128810249.post6152316181319064901..comments2022-02-25T21:09:48.232+00:00Comments on XSLT by Example: Good use of xsl:keyMiguel de Melohttp://www.blogger.com/profile/17585549877555806457noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-1755372041128810249.post-80468227641341085162007-12-19T12:47:00.000+00:002007-12-19T12:47:00.000+00:00Hi Antony,Good point, in this case it's unnecessar...Hi Antony,<BR/><BR/>Good point, in this case it's unnecessary to use the double backslash. I am not sure if that was a typo, or a way to show how the xsl:key can index more complex xpath.<BR/><BR/>Double back slashes have a prety bad reputation but I believe if they're used with care, in the right environment and file size, they can be really usefull.<BR/><BR/>Thanks for the comment,<BR/>MiguelMiguel de Melohttps://www.blogger.com/profile/17585549877555806457noreply@blogger.comtag:blogger.com,1999:blog-1755372041128810249.post-22271870198999115672007-12-18T09:41:00.000+00:002007-12-18T09:41:00.000+00:00Hi Miguel,Should:<xsl:key name="incidents" matc...Hi Miguel,<BR/><BR/>Should:<BR/><BR/><xsl:key name="incidents" <BR/>match="/root//CarXref/Incident" use="../@xrefId"/><BR/><BR/>...not be:<BR/><BR/><xsl:key name="incidents" <BR/>match="/root/CarXref/Incident" use="../@xrefId"/><BR/><BR/>?<BR/><BR/>Although not particularly true in this instance, surely the use of // would be more inefficient and is unnecessary in this case?<BR/><BR/>AntonyAntonyhttps://www.blogger.com/profile/04561224205926953737noreply@blogger.com