Wednesday, September 28, 2005

Tidbit

The @ symbol has to be used in the xpath query if you need to access an attribute field of an element.


Eg. < employee id="19090" >
< name/ >
< age/ >
< /employee >

the xpath to select the 'id' in an XSLT wud be '< xsl:value-of select="/employee/@id/text()" > '

1 comment:

  1. Had to read this twice over to make some sense of it...

    ReplyDelete