Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


putting data

From: Gabi@-----------.---------.---
To: NULL
Date: 8/1/2006 3:31:00 AM

Hi All,
i have the following xml:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="Introduce.xsl"?>

<NamedParams Name="Product-Line-Descriptor">
   <NamedParams Name="Product-Line">
     <NamedParams Name=" BASE v4.0">
          	<Param Name="ProjectManagerMail" Value="gg@j..."/>
                  <NamedParams Name="NotifyAddresses">
                        	<Param Name="1" Value="ff@j..."/>
                      		<Param Name="2" Value="yy@j..."/>
                 </NamedParams>
	        <Param Name="BasedOn" Value="Gabi"/>
    </NamedParams>
  </NamedParams>
</NamedParams>

and the following xsl file:
<xsl:stylesheet version="1.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/>
	<xsl:template match="/">	
	<HTML>
		<HEAD>
			<TITLE>Product Line Descriptor</TITLE>
		</HEAD>

    <h2>PRODUCT LINE DESCRIPTOR </h2>
   <BODY>
			<table border="2" bgcolor="#FFF000" >
        <TR>
          <TH> Product Name</TH>
          <TH> Project Manager</TH>
          <TH> Notify Adress 1</TH>
          <TH> Notify Adress 2</TH>
          <TH> Based On       </TH>
        </TR>
        <xsl:for-each select="NamedParams/NamedParams/NamedParams">
          <tr>
           
            <td>
              <xsl:value-of select="@Name"/>
            </td>

            <td>
              <xsl:value-of select="Param/@Value"/>
            </td>
            
            <xsl:for-each select="NamedParams/Param">
              <td>
                <xsl:value-of select="@Value" />
              </td>
            </xsl:for-each>

            </tr>
        </xsl:for-each>
      </table>
    </BODY>
 </HTML>
</xsl:template>
</xsl:stylesheet>

my problem is to get the following line:
 <Param Name="BasedOn" Value="Gabi"/>
and transfer it to xsl (get the right path)
in my xsl file.
i know that it better to do in template.
if someone can give a sample how should i implement it with template, ill 
appriciate it.

Thanks




transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent