query

Hi,
Thanks for publishing such a use full information on the web.I am amateur in xml .I am getting prob. in my small prog. using x-link. I am using .xsl for transformation xml file .Please help me in solving this .

first.xml
*************************
<?xml version="1.0"?>
<?xml-stylesheet  type="text/xsl" href="first.xsl"?>
<!DOCTYPE MAIN[
<!ELEMENT MAIN (FOOTNOTE,COMPOSER,IMAGE) >
<!ELEMENT FOOTNOTE (#PCDATA)>
<!ATTLIST FOOTNOTE xmlns:xlink CDATA #FIXED "http://www.w3.org/1999/xlink"
xlink:form CDATA #FIXED "simple" 
 href CDATA #REQUIRED>
<!ELEMENT COMPOSER (#PCDATA)>
<!ATTLIST COMPOSER xmlns:xlink CDATA #FIXED "http://www.w3.org/1999/xlink"
xlink:form CDATA #FIXED "simple" 
     hre CDATA #REQUIRED >
<!ELEMENT IMAGE EMPTY>
<!ATTLIST IMAGE xmlns:xlink CDATA #FIXED "http://www.w3.org/1999/xlink"
xlink:form CDATA #FIXED "simple" 
    hre CDATA #REQUIRED >
]>
<MAIN>
<FOOTNOTE xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:form="simple"
hre='d:\footer.html'>Footer</FOOTNOTE>
<COMPOSER inline="true" 
xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:form="simple"
hre="d:\compose.html">Compose</COMPOSER>
<IMAGE  xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:form="simple"
hre="d:\logo.gif"/>
</MAIN>
*************************************
 
 
 
first.xsl  
**********************************************************
<?xml version="1.0"?> 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
    <xsl:template match="/">
      <html>
        <body>
        <h3>Test for X-LINKS</h3>
        <xsl:for-each select="MAIN">
          <table border="2">
          <tr><td>
          <xsl:for-each select="FOOTNOTE">
<!--          <a href="&lt;xsl:value-of select=&quot;@hre&quot;/&gt;"><xsl:value-of select="."/>   -->
          </a>
          </xsl:for-each></td>
          <td><xsl:value-of select="COMPOSER"/></td>
        </tr></table>
 </xsl:for-each>
        </body>
      </html>
    </xsl:template>
</xsl:stylesheet> 
**********************************

I am not sure whether this a right way of creating retrieving url in xsl .I think there is some problem in the line which is commented .I will be thank full to you if you help me out of this .Or else you can refer me to some other goods places where I could get my probs' solved .
Thanks & Regards
Gaurav P Malik
Sr. Consultant

Received on Friday, 9 March 2001 08:33:29 UTC