WebDevMarty
asked on
Need to link in an XML/XSL page
The page in question is here:wtc.
The title of each article is currently just a static title. I need to make it a link.
Here is the XML that provids the title:
and here is the XSLT that transforms it for display:
Now, I need to make that title a link by bringing together two separate pieces. One, this url:
http://www.ncbi.nlm.nih.gov/pubmed/
and the ID number from within the specific record's XML to tag on to the end of the URL. Example:
24018914 to make the clickable link as follows:
http://www.ncbi.nlm.nih.go v/pubmed/2 4018914
The ID number that needs to be tagged onto the URL comes from the XML as follows:
<accession-num><style face="normal" font="default" size="100%">24831753</styl e></access ion-num> (ignore the style. There is nothing I can do about that)
I am attaching a txt record that have a FULL portion of one sample XML record. If someone can please show me the code to make the link work, I would greatly appreciate it.
The title of each article is currently just a static title. I need to make it a link.
Here is the XML that provids the title:
<titles><title><style face="normal" font="default" size="100%">Frequent binge drinking five to six years after exposure to 9/11: Findings from the World Trade Center Health Registry</style></title></titles>
and here is the XSLT that transforms it for display:
<h3><xsl:value-of select="./titles/title/style"/></h3>
Now, I need to make that title a link by bringing together two separate pieces. One, this url:
http://www.ncbi.nlm.nih.gov/pubmed/
and the ID number from within the specific record's XML to tag on to the end of the URL. Example:
24018914 to make the clickable link as follows:
http://www.ncbi.nlm.nih.go
The ID number that needs to be tagged onto the URL comes from the XML as follows:
<accession-num><style face="normal" font="default" size="100%">24831753</styl
I am attaching a txt record that have a FULL portion of one sample XML record. If someone can please show me the code to make the link work, I would greatly appreciate it.
<h3><a href="http://www.ncbi.nlm.nih.gov/pubmed/{normalize-space(acc ession-num /style)}"> <xsl:value -of select="./titles/title/sty le"/></a>< /h3>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
THANK YOU! Works perfectly!
welcome