OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NewBie:pls Help!

Dear XMLers,

Please guide me...

I have an xml file


	    <Sibling1>Data of Sibling1</Sibling1>
	    <Sibling2>Data of Sibling2</Sibling2>
	    <Sibling3>Data of Sibling3</Sibling3>
	    <Sibling4>Data of Sibling4 </Sibling4>  
	    <Sibling5>Data of Sibling5</Sibling5>

and the corresponsing XSL,

<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">

  <table border="1">
    	<xsl:for-each select="Parent/Child" >
    		<td><xsl:value-of select="Child1"/></td>
    		<td><xsl:value-of select="Child2"/></td>
    		<td><xsl:value-of select="Child3"/></td>
    		<td><xsl:value-of select="Child4"/></td>
    		<td><xsl:value-of select="Child5"/></td>
   		<td><xsl:value-of select="Child6"/></td>


 	<xsl:for-each select="Parent/Child/Children/Siblings">
	   	 <td><xsl:value-of select="Sibling1"/></td>
	   	 <td><xsl:value-of select="Sibling2"/></td>
	   	 <td><xsl:value-of select="Sibling3"/></td>

	   	 <td><a href="{Sibling4}"><xsl:value-of
select="Sibling4"/></a></td> <!-- my problem spot..-->

	   	 <td><xsl:value-of select="Sibling5"/></td>


I want the value of the Sibling4 to be placed in the href value, and i
am doing it through <a href="{Sibling4}"> but the value is not getting
substituted, is there anything wrong with what i am doing?

Please guide me..

I am in desperate need........

Thankyou in advance
XML Learner