Click here to Skip to main content
15,908,173 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: table joins--how to??? Pin
Marc Clifton30-Oct-02 10:36
mvaMarc Clifton30-Oct-02 10:36 
AnswerRe: table joins--how to??? Pin
Philip Fitzsimons31-Oct-02 3:04
Philip Fitzsimons31-Oct-02 3:04 
GeneralRe: table joins--how to??? Pin
Marc Clifton31-Oct-02 3:22
mvaMarc Clifton31-Oct-02 3:22 
Questionhow to convert xsl:fo or xml document to pdf using c sharp Pin
Asim N.28-Oct-02 1:25
Asim N.28-Oct-02 1:25 
AnswerRe: how to convert xsl:fo or xml document to pdf using c sharp Pin
Paul Watson28-Oct-02 2:01
sitebuilderPaul Watson28-Oct-02 2:01 
GeneralRe: how to convert xsl:fo or xml document to pdf using c sharp Pin
Philip Fitzsimons28-Oct-02 2:57
Philip Fitzsimons28-Oct-02 2:57 
AnswerRe: how to convert xsl:fo or xml document to pdf using c sharp Pin
Philip Fitzsimons28-Oct-02 2:58
Philip Fitzsimons28-Oct-02 2:58 
GeneralXML+XSL Hyperlinks Pin
Dominik Reichl26-Oct-02 4:23
Dominik Reichl26-Oct-02 4:23 
Hello,

this is a very basic problem, i think. How can I define an url in the XML file and format/output it with a XSL file?

This is my XML file:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE archive SYSTEM "archive.dtd">
<?xml-stylesheet href="archive.xsl" type="text/xsl"?>

<archive>

<entry>
<name>Download 1</name>
<webcode>DWL1</webcode>
<link>link</link>
</entry>

<entry>
<name>Download 2</name>
<webcode>DWL2</webcode>
<link>link2</link>
</entry>

</archive>

This is my XSL file:


<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template>

<link rel="stylesheet" type="text/css" href="default.css"/>

<h1>Archive</h1>

<table>
<tr><td>
<img src="images/menulinks.gif"/>
Downloads</td></tr></table><br/><br/>

<table>
<tr>
<td width="33%">Name</td>
<td width="33%">Webcode</td>
<td>Goto</td>
</tr>

<xsl:for-each select="archive/entry">
<tr>
<td><xsl:value-of select="name"/></td>
<td><xsl:value-of select="webcode"/></td>
<td><a href=" WHAT HERE??? "><xsl:value-of select='link'/></a></td>
</tr>
</xsl:for-each>

</table>

</xsl:template>
</xsl:stylesheet>

What do i have to put in the 8. line above? ("WHAT HERE???")
This mustn't be a fixed string, it must be loadable from the .xml file. How do i encode the link in the XML file?

Confused | :confused:
-Dominik

GeneralRe: XML+XSL Hyperlinks Pin
Christian Graus27-Oct-02 15:20
protectorChristian Graus27-Oct-02 15:20 
GeneralRe: XML+XSL Hyperlinks Pin
Philip Fitzsimons27-Oct-02 23:24
Philip Fitzsimons27-Oct-02 23:24 
GeneralRe: XML+XSL Hyperlinks Pin
Christian Graus27-Oct-02 23:47
protectorChristian Graus27-Oct-02 23:47 
GeneralRe: XML+XSL Hyperlinks Pin
Philip Fitzsimons28-Oct-02 0:06
Philip Fitzsimons28-Oct-02 0:06 
GeneralRe: XML+XSL Hyperlinks Pin
Christian Graus28-Oct-02 0:21
protectorChristian Graus28-Oct-02 0:21 
GeneralRe: XML+XSL Hyperlinks Pin
Paul Watson28-Oct-02 2:03
sitebuilderPaul Watson28-Oct-02 2:03 
GeneralRe: XML+XSL Hyperlinks Pin
Philip Fitzsimons28-Oct-02 2:54
Philip Fitzsimons28-Oct-02 2:54 
GeneralXML Schema:constraint attribute integer Pin
hui_km25-Oct-02 0:27
hui_km25-Oct-02 0:27 
GeneralRe: XML Schema:constraint attribute integer Pin
Hans Ruck25-Oct-02 2:15
Hans Ruck25-Oct-02 2:15 
GeneralRe: XML Schema:constraint attribute integer Pin
huikm25-Oct-02 2:50
huikm25-Oct-02 2:50 
Questionhow to open a document in xml/xsl??? Pin
Asim N.24-Oct-02 2:33
Asim N.24-Oct-02 2:33 
AnswerRe: how to open a document in xml/xsl??? Pin
Philip Fitzsimons25-Oct-02 2:09
Philip Fitzsimons25-Oct-02 2:09 
GeneralWhich my choice? DOM or SAX Pin
Clark John23-Oct-02 20:13
Clark John23-Oct-02 20:13 
GeneralRe: Which my choice? DOM or SAX Pin
Paul Watson23-Oct-02 21:46
sitebuilderPaul Watson23-Oct-02 21:46 
GeneralRe: Which my choice? DOM or SAX Pin
Clark John23-Oct-02 22:44
Clark John23-Oct-02 22:44 
GeneralRe: Which my choice? DOM or SAX Pin
Paul Watson24-Oct-02 1:52
sitebuilderPaul Watson24-Oct-02 1:52 
GeneralRe: Which my choice? DOM or SAX Pin
Clark John24-Oct-02 20:44
Clark John24-Oct-02 20:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.