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]

Re: XML/XML Transformation - Please Help !!!.....



Try this

<a><xsl:attribute name="href">
<xsl:value-of select="URLADR"/></xsl:attribute>
<xsl:value-of select="URLADR"/></a>

Wei-Chin Hsieh

----- Original Message -----
From: Thushara Perera
To: XML-DEV (E-mail)
Sent: Monday, April 30, 2001 2:58 AM
Subject: XML/XML Transformation - Please Help !!!.....


Hi

Could someone PLEASE tell me how to do the XML to XML transformation as
described below ?

Part of my XML file is:
..
..
..
 <URLADR>http:\\www.aaa.com</URLADR>
 <URLDESC>Homepage of aaa AS</URLDESC>
 <URLDESCLANGUAGE>en</URLDESCLANGUAGE>
 <URLDESC>Homepage of aaa AS NO</URLDESC>
 <URLDESCLANGUAGE>no</URLDESCLANGUAGE>
 <URLDESC>Homepage of aaa AS SE</URLDESC>
 <URLDESCLANGUAGE>se</URLDESCLANGUAGE>

 <URLADR>http:\\www.aaabbb.org</URLADR>
 <URLDESC>Demo of aaabbb.com</URLDESC>
 <URLDESCLANGUAGE>en</URLDESCLANGUAGE>
 <URLDESC>Demo of aaabbb.com NO</URLDESC>
 <URLDESCLANGUAGE>no</URLDESCLANGUAGE>
..
..
..

and I want to convert this to something like:
..
..
  <URLLIST>
    <URL>
      <URLADR>http://www.aaa.com</URLADR>
      <URLDESC xml:lang="en">Homepage of aaa AS></URLDESC>
      <URLDESC xml:lang="no">Homepage of aaa AS NO></URLDESC>
      <URLDESC xml:lang="se">Homepage of aaa AS SE></URLDESC>
    </URL>
    <URL>
      <URLADR>http://www.aaabbb.org</URLADR>
      <URLDESC xml:lang="en">Demo of aaabbb.com></URLDESC>
      <URLDESC xml:lang="no">Demo of aaabbb.com NO></URLDESC>
    </URL>
  </URLLIST>
..
..

Please tell me how to write the XSL file for this.

Thanks a lot

Thushara