<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>XML Development Forum RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest threads from the 'XML Development' forum at Programmer's Heaven, excluding replies.</description>
    <language>en</language>
    <copyright>Copyright 2009 Programmers Heaven</copyright>
    <pubDate>Fri, 03 Jul 2009 20:07:34 -0700</pubDate>
    <lastBuildDate>Fri, 03 Jul 2009 20:07:34 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Xslt elements help</title>
      <link>http://www.programmersheaven.com/mb/xml/392790/392790/xslt-elements-help/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
I am trying to create a xslt , But I am getting below result, &lt;br /&gt;
Means I am getting All SNames in &amp;lt;SNAME&amp;gt; and Codes in &amp;lt;code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
see below the output.&lt;br /&gt;
Output :&lt;br /&gt;
&amp;lt;ShortName&amp;gt;DOCENGTEACLE&amp;lt;/ShortName&amp;gt;&lt;br /&gt;
&amp;lt;Code&amp;gt;666777888999&amp;lt;/Code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
But I want something like this&lt;br /&gt;
&lt;br /&gt;
&amp;lt;SName&amp;gt;DOC&amp;lt;/SName&amp;gt;&lt;br /&gt;
&amp;lt;Code&amp;gt;666&amp;lt;/Code&amp;gt;&lt;br /&gt;
&amp;lt;SName&amp;gt;ENG&amp;lt;/SName&amp;gt;&lt;br /&gt;
&amp;lt;Code&amp;gt;777&amp;lt;/Code&amp;gt;&lt;br /&gt;
&amp;lt;SName&amp;gt;TEA&amp;lt;/SName&amp;gt;&lt;br /&gt;
&amp;lt;Code&amp;gt;888&amp;lt;/Code&amp;gt;&lt;br /&gt;
&amp;lt;SName&amp;gt;CLE&amp;lt;/SName&amp;gt;&lt;br /&gt;
&amp;lt;Code&amp;gt;999&amp;lt;/Code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or something like this is also fine&lt;br /&gt;
&lt;br /&gt;
&amp;lt;DOCTOR&amp;gt;&lt;br /&gt;
  &amp;lt;SName&amp;gt;DOC&amp;lt;/SName&amp;gt;&lt;br /&gt;
  &amp;lt;Code&amp;gt;666&amp;lt;/Code&amp;gt;&lt;br /&gt;
&amp;lt;/DOCTOR&amp;gt;&lt;br /&gt;
&amp;lt;ENGINEER&amp;gt;&lt;br /&gt;
  &amp;lt;SName&amp;gt;ENG&amp;lt;/SName&amp;gt;&lt;br /&gt;
  &amp;lt;Code&amp;gt;777&amp;lt;/Code&amp;gt;&lt;br /&gt;
&amp;lt;/ENGINEER&amp;gt;&lt;br /&gt;
&amp;lt;TEACHER&amp;gt;&lt;br /&gt;
  &amp;lt;SName&amp;gt;TEA&amp;lt;/SName&amp;gt;&lt;br /&gt;
  &amp;lt;Code&amp;gt;888&amp;lt;/Code&amp;gt;&lt;br /&gt;
&amp;lt;/TEACHER&amp;gt;&lt;br /&gt;
&amp;lt;CLERK&amp;gt;&lt;br /&gt;
  &amp;lt;SName&amp;gt;CLE&amp;lt;/SName&amp;gt;&lt;br /&gt;
  &amp;lt;Code&amp;gt;999&amp;lt;/Code&amp;gt;&lt;br /&gt;
&amp;lt;/CLERK&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
I applied the below xslt in my original xslt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;br /&gt;
&amp;lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"&amp;gt;&lt;br /&gt;
    &amp;lt;xsl:output method="xml" encoding="utf-8" omit-xml-declaration="no" indent="yes" /&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
       &lt;br /&gt;
    &amp;lt;xsl:template match="/"&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:element name="SName"&amp;gt;&lt;br /&gt;
              &amp;lt;xsl:apply-templates select="//@SName"/&amp;gt;&lt;br /&gt;
           &lt;br /&gt;
            &lt;br /&gt;
        &amp;lt;/xsl:element&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:element name="Code"&amp;gt;&lt;br /&gt;
            &amp;lt;xsl:apply-templates select="//@Code"&amp;gt;&lt;br /&gt;
                &lt;br /&gt;
            &amp;lt;/xsl:apply-templates&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:element&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
My Actual XML File : &lt;br /&gt;
&lt;br /&gt;
&amp;lt;Qxml&amp;gt;&lt;br /&gt;
&amp;lt;Qxml&amp;gt;&lt;br /&gt;
&amp;lt;Net&amp;gt;&lt;br /&gt;
&amp;lt;Property Name="DOCTOR" SName="DOC" LongDesc="YYY DOC" Code="666" STC="1"/&amp;gt;&lt;br /&gt;
&amp;lt;Property Name="ENGINEER" SName="ENG" LongDesc="XXX ENG" Code="777" STC="2"/&amp;gt;&lt;br /&gt;
&amp;lt;Property Name="TEACHER" SName="TEA" LongDesc="ZZZ TEA" Code="888" STC="3"/&amp;gt;&lt;br /&gt;
&amp;lt;Property Name="CLERK" SName="CLE" LongDesc="TTT CLE" Code="999" STC="4"/&amp;gt;&lt;br /&gt;
&amp;lt;/Net&amp;gt;&lt;br /&gt;
&amp;lt;/Qxml&amp;gt;&lt;br /&gt;
&amp;lt;/Qxml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/392790/392790/xslt-elements-help/</guid>
      <pubDate>Wed, 24 Jun 2009 09:57:36 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>xslt help needed - urgent</title>
      <link>http://www.programmersheaven.com/mb/xml/392414/392414/xslt-help-needed---urgent/</link>
      <description>completed&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/392414/392414/xslt-help-needed---urgent/</guid>
      <pubDate>Tue, 16 Jun 2009 14:39:32 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>help on xslt needed.</title>
      <link>http://www.programmersheaven.com/mb/xml/392040/392040/help-on-xslt-needed/</link>
      <description>Hi all,&lt;br /&gt;
&lt;br /&gt;
I am a novice in xslt. I have a clean up requirement wherein i wud have to remove the &amp;lt;break type="paragraph"&amp;gt; tags if they are more than 3 and replace them with 2 tags &amp;lt;break type="paragraph"&amp;gt; .&lt;br /&gt;
&lt;br /&gt;
The xml used here is in following format.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;textObjects&amp;gt;&lt;br /&gt;
               &amp;lt;textObject&amp;gt;&amp;lt;!--textObject id=101--&amp;gt;&lt;br /&gt;
                  &amp;lt;tag&amp;gt;Story&amp;lt;/tag&amp;gt;&lt;br /&gt;
                  &amp;lt;objectMore&amp;gt;&lt;br /&gt;
                     &amp;lt;dataId&amp;gt;355376&amp;lt;/dataId&amp;gt;&lt;br /&gt;
                     &amp;lt;index&amp;gt;0&amp;lt;/index&amp;gt;&lt;br /&gt;
                     &amp;lt;value&amp;gt;&lt;br /&gt;
                        &amp;lt;dateTime&amp;gt;2009-05-30T09:31:26&amp;lt;/dateTime&amp;gt;&lt;br /&gt;
                        &amp;lt;integer&amp;gt;100&amp;lt;/integer&amp;gt;&lt;br /&gt;
                     &amp;lt;/value&amp;gt;&lt;br /&gt;
                  &amp;lt;/objectMore&amp;gt;&lt;br /&gt;
                  &amp;lt;text&amp;gt;&lt;br /&gt;
                     &amp;lt;inlineTag name="Story"&amp;gt;&lt;br /&gt;
                        &amp;lt;inlineTag name="K4Xml"&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;inlineTag name="Headline"&amp;gt;&lt;br /&gt;
                              &amp;lt;break type="paragraph"/&amp;gt;	Headline goes here&amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;/inlineTag&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;inlineTag name="Body"&amp;gt;&lt;br /&gt;
                              &amp;lt;break type="paragraph"/&amp;gt;	Body goes here&amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;/inlineTag&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;inlineTag name="Deck"&amp;gt;&lt;br /&gt;
                              &amp;lt;break type="paragraph"/&amp;gt;	Deck goes here&amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;/inlineTag&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;inlineTag name="Blurb1"&amp;gt;&lt;br /&gt;
                              &amp;lt;break type="paragraph"/&amp;gt;	Blurb goes here&amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;/inlineTag&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;inlineTag name="Strap"&amp;gt;&lt;br /&gt;
                              &amp;lt;break type="paragraph"/&amp;gt;	strap goes here&amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;/inlineTag&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;inlineTag name="Keywords"&amp;gt;&lt;br /&gt;
                              &amp;lt;break type="paragraph"/&amp;gt;	Keywords goes here&amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;/inlineTag&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;inlineTag name="VideoUrl"&amp;gt;&lt;br /&gt;
                              &amp;lt;break type="paragraph"/&amp;gt;	Video url goes here&amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;/inlineTag&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;inlineTag name="AuthorName"&amp;gt;&lt;br /&gt;
                              &amp;lt;break type="paragraph"/&amp;gt;	Author Name goes here&amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;/inlineTag&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                           &amp;lt;break type="paragraph"/&amp;gt;&lt;br /&gt;
                        &amp;lt;/inlineTag&amp;gt;&lt;br /&gt;
                     &amp;lt;/inlineTag&amp;gt;&lt;br /&gt;
                  &amp;lt;/text&amp;gt;&lt;br /&gt;
               &amp;lt;/textObject&amp;gt;&lt;br /&gt;
            &amp;lt;/textObjects&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
awaiting your response.&lt;br /&gt;
&lt;br /&gt;
regards&lt;br /&gt;
SaiDeepak M&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/392040/392040/help-on-xslt-needed/</guid>
      <pubDate>Mon, 08 Jun 2009 04:39:33 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>XML vs database</title>
      <link>http://www.programmersheaven.com/mb/xml/390347/390347/xml-vs-database/</link>
      <description>what is the difference between xml and database?what are the advantages of xml over database?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/390347/390347/xml-vs-database/</guid>
      <pubDate>Sun, 03 May 2009 23:54:16 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>need help in XSLT 1.0 to get the current date</title>
      <link>http://www.programmersheaven.com/mb/xml/389382/389382/need-help-in-xslt-10-to-get-the-current-date/</link>
      <description>HI friends,&lt;br /&gt;
need help in XSLT 1.0 to get the current system date&lt;br /&gt;
Any help is highly appreciated.&lt;br /&gt;
&lt;br /&gt;
I have done the below that I read from other posts but without any luck.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;br /&gt;
&amp;lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" &amp;gt;&lt;br /&gt;
&amp;lt;xsl:template name="today" &lt;br /&gt;
              xmlns:cal="java:java.util.GregorianCalendar"&amp;gt;&lt;br /&gt;
  &amp;lt;xsl:variable name="rightNow" select="cal:getInstance()" /&amp;gt;&lt;br /&gt;
  &amp;lt;!-- The Calendar class uses zero-based months; &lt;br /&gt;
       i.e. January is month 0, February is month 1, and &lt;br /&gt;
       so on. We have to add one to get the customary month &lt;br /&gt;
       number. --&amp;gt;&lt;br /&gt;
  &amp;lt;xsl:variable name="month" select="cal:get($rightNow, 2) + 1" /&amp;gt;&lt;br /&gt;
  &amp;lt;xsl:variable name="day" select="cal:get($rightNow, 5)" /&amp;gt;&lt;br /&gt;
  &amp;lt;xsl:variable name="year" select="cal:get($rightNow, 1)" /&amp;gt;&lt;br /&gt;
  &amp;lt;xsl:value-of &lt;br /&gt;
   select="$year" /&amp;gt;-&amp;lt;xsl:value-of &lt;br /&gt;
   select="$month" /&amp;gt;-&amp;lt;xsl:value-of &lt;br /&gt;
   select="$day" /&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
   &lt;br /&gt;
   &lt;br /&gt;
   &amp;lt;xsl:element name="CurrDate"&amp;gt;&lt;br /&gt;
   		&amp;lt;xsl:attribute name="TodayDate"&amp;gt;&lt;br /&gt;
   			&amp;lt;xsl:value-of select="$rightNow"/&amp;gt;  &lt;br /&gt;
   		&amp;lt;/xsl:attribute&amp;gt;	&lt;br /&gt;
   &amp;lt;/xsl:element&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/xsl:template&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;xsl:template match="today"&amp;gt;&lt;br /&gt;
   		&amp;lt;xsl:element name="CurrDate"&amp;gt;&lt;br /&gt;
   		&amp;lt;xsl:attribute name="TodayDate"&amp;gt;&lt;br /&gt;
   			&amp;lt;xsl:value-of select="rightNow"/&amp;gt;  &lt;br /&gt;
   		&amp;lt;/xsl:attribute&amp;gt;	&lt;br /&gt;
   		&amp;lt;/xsl:element&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:template&amp;gt;   		&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/389382/389382/need-help-in-xslt-10-to-get-the-current-date/</guid>
      <pubDate>Fri, 17 Apr 2009 09:01:54 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>How to update the content of an XML file using libxml2</title>
      <link>http://www.programmersheaven.com/mb/xml/389002/389002/how-to-update-the-content-of-an-xml-file-using-libxml2/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
My application is written in C and I am using libxml2 to parse my configuration file. Now i need to update some values and write them back in the same file.&lt;br /&gt;
&lt;br /&gt;
Can anybody let me know how i can do this.&lt;br /&gt;
Any example prg would be of great help.&lt;br /&gt;
&lt;br /&gt;
thanks,&lt;br /&gt;
GK&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/389002/389002/how-to-update-the-content-of-an-xml-file-using-libxml2/</guid>
      <pubDate>Sun, 12 Apr 2009 04:17:23 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>Can this be done with XSLT?</title>
      <link>http://www.programmersheaven.com/mb/xml/385018/385018/can-this-be-done-with-xslt/</link>
      <description>Hi Everyone,&lt;br /&gt;
&lt;br /&gt;
I've been stuck on a XSLT problem trying to convert an XML doc to another XML and now I'm wondering if it's even possible to be done with XSTL. Here is a very simple breakdown of what I'm trying to do:&lt;br /&gt;
&lt;br /&gt;
Convert this XML:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&amp;lt;Request&amp;gt;
   &amp;lt;SomeTypeA&amp;gt;
       &amp;lt;Variable&amp;gt;A&amp;lt;/Variable&amp;gt;
   &amp;lt;/SomeTypeA&amp;gt;
    &amp;lt;SomeTypeB&amp;gt;
       &amp;lt;Variable&amp;gt;B&amp;lt;/Variable&amp;gt;
   &amp;lt;/SomeTypeB&amp;gt;
   &amp;lt;SomeTypeB&amp;gt;
       &amp;lt;Variable&amp;gt;B&amp;lt;/Variable&amp;gt;
   &amp;lt;/SomeTypeB&amp;gt;
&amp;lt;/Request&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
To:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&amp;lt;Group name = Request&amp;gt;
   &amp;lt;Group name = SomeTypeA&amp;gt;
       &amp;lt;Variable&amp;gt;A&amp;lt;/Variable&amp;gt;
   &amp;lt;/Group&amp;gt;
   &amp;lt;Group name = SomeTypeB&amp;gt;
      &amp;lt;Item&amp;gt;
           &amp;lt;Variable&amp;gt;A&amp;lt;/Variable&amp;gt;
      &amp;lt;/Item&amp;gt;
      &amp;lt;Item&amp;gt;
           &amp;lt;Variable&amp;gt;A&amp;lt;/Variable&amp;gt;
      &amp;lt;/Item&amp;gt;
    &amp;lt;/Group&amp;gt;
&amp;lt;/Group&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
The key here is I want to group all Nodes under &amp;lt;Request&amp;gt; that have the same name, in the example above &amp;lt;SomeTypeB&amp;gt; and process them together so that they belong to the same &amp;lt;Group name = SomeTypeB&amp;gt; after the conversion and they are separate by the new &amp;lt;Item&amp;gt; tags.&lt;br /&gt;
&lt;br /&gt;
So far everything I tried has failed, the closest I get is that I get two sets &amp;lt;Group name = SomeTypeB&amp;gt; tags which is incorrect for my needs.&lt;br /&gt;
&lt;br /&gt;
Can this even be done with XSLT or do I have to use Java or something else?&lt;br /&gt;
&lt;br /&gt;
Much appreciated if you could solve this!!&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/385018/385018/can-this-be-done-with-xslt/</guid>
      <pubDate>Fri, 30 Jan 2009 10:01:58 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>Help needed with XSLT please!</title>
      <link>http://www.programmersheaven.com/mb/xml/385000/385000/help-needed-with-xslt-please/</link>
      <description>Hi All,&lt;br /&gt;
&lt;br /&gt;
I'm actually quite new to XSLT and I got this issue I need to resolve. I'm converting this web service XML request to an XML file my system will understand using XSLT. The problem is the guy who wrote it quit so now I have to make some mods to new functionality and I'm kind of stuck. The crux of the problem is that the current xslt will take an XML such as&lt;br /&gt;
&amp;lt;Table&amp;gt;&lt;br /&gt;
  &amp;lt;TypeA&amp;gt;&lt;br /&gt;
    &amp;lt;SomeVar&amp;gt; A &amp;lt;/SomeVar&amp;gt;&lt;br /&gt;
  &amp;lt;/Type&amp;gt;&lt;br /&gt;
  &amp;lt;TypeA&amp;gt;&lt;br /&gt;
    &amp;lt;SomeVar&amp;gt; B &amp;lt;/SomeVar&amp;gt;&lt;br /&gt;
  &amp;lt;/TypaA&amp;gt;&lt;br /&gt;
&amp;lt;/Table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and convert it to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;group name = TypeA&amp;gt;&lt;br /&gt;
  &amp;lt;Item&amp;gt;&lt;br /&gt;
    &amp;lt;SomeVar&amp;gt; A &amp;lt;/SomeVar&amp;gt;&lt;br /&gt;
  &amp;lt;/Item&amp;gt;&lt;br /&gt;
  &amp;lt;Item&amp;gt;&lt;br /&gt;
    &amp;lt;SomeVar&amp;gt; B &amp;lt;/SomeVar&amp;gt;&lt;br /&gt;
  &amp;lt;/Item&amp;gt;&lt;br /&gt;
&amp;lt;/group&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I need to get rid of the &amp;lt;Table&amp;gt; tags from the input XML altogether and still produce the same output after XSLT is applied.&lt;br /&gt;
&lt;br /&gt;
Here is the XSLT which currently handles this conversion:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;xsl:template name="GroupTable"&amp;gt;&lt;br /&gt;
&amp;lt;xsl:element name="Group"&amp;gt;&lt;br /&gt;
&amp;lt;xsl:attribute name="name"&amp;gt;&lt;br /&gt;
&amp;lt;xsl:value-of select="local-name(node()[local-name()][1])"/&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:attribute&amp;gt;&lt;br /&gt;
&amp;lt;xsl:copy-of select="@*"/&amp;gt;&lt;br /&gt;
  &amp;lt;xsl:for-each select="node()"&amp;gt;&lt;br /&gt;
   &amp;lt;xsl:if test="local-name() != ''"&amp;gt;&lt;br /&gt;
     &amp;lt;Item&amp;gt;&lt;br /&gt;
        &amp;lt;xsl:for-each select="node()"&amp;gt;&lt;br /&gt;
           &amp;lt;xsl:call-template name="CheckNode"/&amp;gt;&lt;br /&gt;
        &amp;lt;/xsl:for-each&amp;gt;&lt;br /&gt;
       &amp;lt;/Item&amp;gt;&lt;br /&gt;
    &amp;lt;/xsl:if&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:for-each&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:element&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I dont know what a couple of things do: &lt;br /&gt;
&lt;br /&gt;
1) &amp;lt;xsl:copy-of select="@*"/&amp;gt; .. Which nodes does this include?&lt;br /&gt;
2) "local-name(node()[local-name()][1])"/ what does this evaluate to?&lt;br /&gt;
3) Why there are two for loops to go through the set, shouldn't it go through the nodes only once?&lt;br /&gt;
&lt;br /&gt;
Sorry if some of these are stupid questions - I'm very new to this.&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
&lt;br /&gt;
Jiggs&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/385000/385000/help-needed-with-xslt-please/</guid>
      <pubDate>Fri, 30 Jan 2009 00:19:54 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>XML Filtering - Help for a newbie please</title>
      <link>http://www.programmersheaven.com/mb/xml/384999/384999/xml-filtering---help-for-a-newbie-please/</link>
      <description>Hi,&lt;br /&gt;
I am using XML for the first time to display item on a sales and wants page and need some help in displaying only those items of a particular category.&lt;br /&gt;
My idea is to have one that displays all items but then have a navigation bar that will allow visitors to see items by category.&lt;br /&gt;
&lt;br /&gt;
My XML file would look something like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version="1.0" encoding="ISO8859-1"?&amp;gt; &lt;br /&gt;
&amp;lt;?xml-stylesheet type="text/xsl" href="sales.xsl"?&amp;gt; &lt;br /&gt;
&amp;lt;SALESWANTS&amp;gt; &lt;br /&gt;
   &amp;lt;ITEM id="00001"&amp;gt; &lt;br /&gt;
	&amp;lt;Category&amp;gt;Car&amp;lt;/Category&amp;gt;&lt;br /&gt;
     	&amp;lt;TITLE category="Car"&amp;gt;Car make&amp;lt;/TITLE&amp;gt; &lt;br /&gt;
     	&amp;lt;Description&amp;gt;car description&amp;lt;/Description&amp;gt;&lt;br /&gt;
	&amp;lt;ContactNo&amp;gt;contact number&amp;lt;/ContactNo&amp;gt;&lt;br /&gt;
	&amp;lt;Email&amp;gt;email address&amp;lt;/Email&amp;gt;	&lt;br /&gt;
   &amp;lt;/ITEM&amp;gt; &lt;br /&gt;
&lt;br /&gt;
   &amp;lt;ITEM id="00002"&amp;gt; &lt;br /&gt;
	&amp;lt;Category&amp;gt;Furniture&amp;lt;/Category&amp;gt;&lt;br /&gt;
     	&amp;lt;TITLE category="Furniture"&amp;gt;Furniture Title&amp;lt;/TITLE&amp;gt; &lt;br /&gt;
     	&amp;lt;Description&amp;gt;Furniture Description&amp;lt;/Description&amp;gt;&lt;br /&gt;
	&amp;lt;ContactNo&amp;gt;contact number&amp;lt;/ContactNo&amp;gt;&lt;br /&gt;
	&amp;lt;Email&amp;gt;email address&amp;lt;/Email&amp;gt;	&lt;br /&gt;
   &amp;lt;/ITEM&amp;gt; &lt;br /&gt;
&lt;br /&gt;
   &amp;lt;ITEM id="00003"&amp;gt; &lt;br /&gt;
	&amp;lt;Category&amp;gt;Toys&amp;lt;/Category&amp;gt;&lt;br /&gt;
     	&amp;lt;TITLE category="Toys"&amp;gt;Toy Title&amp;lt;/TITLE&amp;gt; &lt;br /&gt;
     	&amp;lt;Description&amp;gt;Toys&amp;lt;/Description&amp;gt;&lt;br /&gt;
	&amp;lt;ContactNo&amp;gt;contact number&amp;lt;/ContactNo&amp;gt;&lt;br /&gt;
	&amp;lt;Email&amp;gt;email address&amp;lt;/Email&amp;gt;	&lt;br /&gt;
   &amp;lt;/ITEM&amp;gt; &lt;br /&gt;
&amp;lt;/SALESWANTS&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I have currently created a separate XML and XSL sheet for each category, which works, but I want to know if there is a better, more dynamic, way of doing what I want without having to alter several XML and XSL sheets.&lt;br /&gt;
&lt;br /&gt;
Many thanks in advance.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/384999/384999/xml-filtering---help-for-a-newbie-please/</guid>
      <pubDate>Thu, 29 Jan 2009 23:09:35 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>How can I use the current object in a loop as part of a query?</title>
      <link>http://www.programmersheaven.com/mb/xml/383974/383974/how-can-i-use-the-current-object-in-a-loop-as-part-of-a-query/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
I have an XML document with 2 parts, meta data and data.&lt;br /&gt;
In the data part I have a list of word elements and each word element has several test elements indicating tests that were done of this word and the results of these tests (each test has a separate test element which is a sub element of word). each test element has a passed attribute with a Boolean value&lt;br /&gt;
&lt;br /&gt;
In the metadata part I have a list of all the tests that were conducted in general (on all the words).&lt;br /&gt;
&lt;br /&gt;
I want to loop around the tests in the metadata part and for each test I want to count the words that have this test as a subelement with a True value to the passed attribute. I couldn't find any way to do this.&lt;br /&gt;
&lt;br /&gt;
what I'm trying to basically do is to use the name of the test in the current part of the loop as part of a separate XPath query?&lt;br /&gt;
&lt;br /&gt;
Here is an example of the XML document:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version="1.0" encoding="ISO-8859-1"?&amp;gt;&lt;br /&gt;
&amp;lt;compare&amp;gt;&lt;br /&gt;
  &amp;lt;info&amp;gt;&lt;br /&gt;
    &amp;lt;file type="semcor"&amp;gt;/freespace/stud/omerholz/NLP/SemCor/
Compare/scstat_br-ca01_wf.xml&amp;lt;/file&amp;gt;&lt;br /&gt;
    &amp;lt;file type="rawresults"&amp;gt;/freespace/stud/omerholz/NLP/res
ults/2009-01-03-12-47/raw_results/prob_ss_given_W_final_ca01.xml&amp;lt;/fil
e&amp;gt;&lt;br /&gt;
    &amp;lt;list type="tests"&amp;gt;&lt;br /&gt;
      &amp;lt;item type="test" name="firstequal"&amp;gt;Test whether the supersense with the highest rank is identical&amp;lt;/item&amp;gt;&lt;br /&gt;
      &amp;lt;item type="test" name="hresholdnonordered"&amp;gt;Test whether the group of highest ranked supersenses is identical, not checking whether the order is identical&amp;lt;/item&amp;gt;&lt;br /&gt;
      &amp;lt;item type="test" name="hresholdordered"&amp;gt;Test whether the group of highest ranked supersenses is identical, not checking whether the order is identical&amp;lt;/item&amp;gt;&lt;br /&gt;
    &amp;lt;/list&amp;gt;&lt;br /&gt;
  &amp;lt;/info&amp;gt;&lt;br /&gt;
  &amp;lt;comparison&amp;gt;&lt;br /&gt;
    &amp;lt;word lemma="shot"&amp;gt;&lt;br /&gt;
      &amp;lt;test name="firstequal" passed="False" description="True"&amp;gt;&lt;br /&gt;
        &amp;lt;description&amp;gt;Test whether the supersense with the highest rank is identical&amp;lt;/description&amp;gt;&lt;br /&gt;
        &amp;lt;sense type="semcor" rank="1"&amp;gt;noun.act&amp;lt;/sense&amp;gt;&lt;br /&gt;
      &amp;lt;/test&amp;gt;&lt;br /&gt;
      &amp;lt;test threshold="0.8" name="hresholdnonordered" passed="True" description="True"&amp;gt;&lt;br /&gt;
        &amp;lt;description&amp;gt;Test whether the group of highest ranked supersenses is identical, not checking whether the order is identical&amp;lt;/description&amp;gt;&lt;br /&gt;
        &amp;lt;sense type="semcor" rank="1" sense="noun.act"&amp;gt;1.0&amp;lt;/sense&amp;gt;&lt;br /&gt;
      &amp;lt;/test&amp;gt;&lt;br /&gt;
      &amp;lt;test threshold="0.8" name="hresholdordered" passed="False" description="True"&amp;gt;&lt;br /&gt;
        &amp;lt;description&amp;gt;Test whether the group of highest ranked supersenses is identical, not checking whether the order is identical&amp;lt;/description&amp;gt;&lt;br /&gt;
        &amp;lt;sense type="semcor" rank="1" sense="noun.act"&amp;gt;1.0&amp;lt;/sense&amp;gt;&lt;br /&gt;
      &amp;lt;/test&amp;gt;&lt;br /&gt;
    &amp;lt;/word&amp;gt;&lt;br /&gt;
    &amp;lt;word lemma="office"&amp;gt;&lt;br /&gt;
      &amp;lt;test name="firstequal" passed="False" description="True"&amp;gt;&lt;br /&gt;
        &amp;lt;description&amp;gt;Test whether the supersense with the highest rank is identical&amp;lt;/description&amp;gt;&lt;br /&gt;
        &amp;lt;sense type="semcor" rank="1"&amp;gt;noun.group&amp;lt;/sense&amp;gt;&lt;br /&gt;
      &amp;lt;/test&amp;gt;&lt;br /&gt;
      &amp;lt;test threshold="0.8" name="hresholdnonordered" passed="True" description="True"&amp;gt;&lt;br /&gt;
        &amp;lt;description&amp;gt;Test whether the group of highest ranked supersenses is identical, not checking whether the order is identical&amp;lt;/description&amp;gt;&lt;br /&gt;
        &amp;lt;sense type="semcor" rank="1" sense="noun.group"&amp;gt;1.0&amp;lt;/sense&amp;gt;&lt;br /&gt;
      &amp;lt;/test&amp;gt;&lt;br /&gt;
      &amp;lt;test threshold="0.8" name="hresholdordered" passed="False" description="True"&amp;gt;&lt;br /&gt;
        &amp;lt;description&amp;gt;Test whether the group of highest ranked supersenses is identical, not checking whether the order is identical&amp;lt;/description&amp;gt;&lt;br /&gt;
        &amp;lt;sense type="semcor" rank="1" sense="noun.group"&amp;gt;1.0&amp;lt;/sense&amp;gt;&lt;br /&gt;
      &amp;lt;/test&amp;gt;&lt;br /&gt;
    &amp;lt;/word&amp;gt;&lt;br /&gt;
  &amp;lt;/comparison&amp;gt;&lt;br /&gt;
&amp;lt;compare&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And this is an example of an XSLT code I was trying to use but it doesn't work (I hope that reading it will give better insight to what I was trying to achieve):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;xsl:for-each select="compare/info/list[@type='tests']/item"&amp;gt;&lt;br /&gt;
   &amp;lt;xsl:variable name="tname" select="@name" /&amp;gt;&lt;br /&gt;
   &amp;lt;xsl:value-of select="translate('count(/compare/comparison/word/
test[@name=&amp;amp;quot;%s&amp;amp;quot; and  @passed=&amp;amp;quot;True&amp;amp;quot;]/parent::node()/@lemma)',
'%s'$tname"/&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:for-each&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Anyone has an idea how I may use the name of the test in the current part of the loop as part of a separate XPath query?&lt;br /&gt;
&lt;br /&gt;
Thanks for any help :)&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/383974/383974/how-can-i-use-the-current-object-in-a-loop-as-part-of-a-query/</guid>
      <pubDate>Tue, 06 Jan 2009 13:52:39 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>New to XML need help</title>
      <link>http://www.programmersheaven.com/mb/xml/383293/383293/new-to-xml-need-help/</link>
      <description>I need to create an example xml document with CSS and DTD&lt;br /&gt;
&lt;br /&gt;
here is the code I have so far, but I cannot make it to view correctly in the browser the chapter information does not display.  can anyone help?&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE CATALOG SYSTEM "catalog1.dtd"&amp;gt;&lt;br /&gt;
&amp;lt;?xml-stylesheet type="text/css" href="catalog.css"?&amp;gt;&lt;br /&gt;
&amp;lt;CATALOG&amp;gt;&lt;br /&gt;
−&lt;br /&gt;
&amp;lt;BOOK&amp;gt;&lt;br /&gt;
		&amp;lt;TITLE&amp;gt;XML HACKS&amp;lt;/TITLE&amp;gt;&lt;br /&gt;
		&amp;lt;AUTHOR&amp;gt;MICHAEL FITZGERALD&amp;lt;/AUTHOR&amp;gt;&amp;gt;&lt;br /&gt;
&amp;lt;PUBLISHER&amp;gt;O'REILLY&amp;lt;/PUBLISHER&amp;gt;&lt;br /&gt;
		&amp;lt;CREDITS&amp;gt;MICHAEL FITZGERAL IS PRINCIPAL OF WY'EAST COMMUNICATIONS, A WRITING, TRAINING, AND PROGRAMMING CONSULTANT SPECIALIZED IN XML PROGRAMMING LANGUAGE&amp;lt;/CREDITS&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
		&amp;lt;ONE&amp;gt;Chapter 1 - Looking at XML Documents&amp;lt;/ONE&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		Some browsers, such as Microsoft Internet Explorer version 5 or later, let you display XML documents directly. For example, if you download the code for this book, you can browse to ch01_02.xml in Internet Explorer, as you see in Figure 1.2. As you see in the figure, the whole XML document we've created is displayed. You can even click the – sign in front of the &amp;lt;document&amp;gt; element to collapse all the contents of that element into a single line (which will have a + sign in front of it, indicating that that line may be expanded). In this way, you can display a raw XML document in Internet Explorer.&lt;br /&gt;
&lt;br /&gt;
		&amp;lt;TWO&amp;gt;Chapter 2 - CREATING XML DOCUMENTS&amp;lt;/TWO&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Yesterday you got an introduction to XML; today, you're going to get down to work by creating XML documents piece by piece. Here's an overview of today's topics:&lt;br /&gt;
&lt;br /&gt;
    * Writing XML&lt;br /&gt;
    * The parts of an XML document&lt;br /&gt;
    * XML prologs&lt;br /&gt;
    * XML declarations&lt;br /&gt;
    * Comments&lt;br /&gt;
    * Processing instructions&lt;br /&gt;
    * Elements&lt;br /&gt;
    * CDATA sections&lt;br /&gt;
    * Entities&lt;br /&gt;
    * XML tools&lt;br /&gt;
    * XML validators&lt;br /&gt;
&lt;br /&gt;
You'll start creating XML documents at the logical beginning point—by choosing the correct software for this task.&lt;br /&gt;
&lt;br /&gt;
			&amp;lt;THREE&amp;gt;Chapter 3 - TRANSFORMING XML DOCUMENTS&amp;lt;/THREE&amp;gt;&lt;br /&gt;
			&lt;br /&gt;
			&lt;br /&gt;
Before we move on to see the nuts-and-bolts of XSLT, you may want to download an editor that supports XSLT so you can try out some of these examples yourself. An editor you could use is XMLSpy Home Edition (from www.altova.com) which is free.&lt;br /&gt;
In all our examples both in this chapter and the next, we will use base XML file shown below as data, which we will then transform using XSLTs. I would recommend that you copy this file into your chosen editor and run the transformations as we go through them (in the XMLSpy editor, this would be done from the menu XSL Transformation).&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
As shown in the XML file below, in order to render a XML document using an XSLT, the XSLT name is specified just after the first statement of the XML file, using the following directive:&lt;br /&gt;
&amp;lt;INTRODUCTION&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Developers and system administrators alike are uncovering the true power of XML, the Extensible Markup Language that enables data to be sent over the Internet from one computer platform to another or one application to another and retain its original format. Flexible enough to be customized for applications as diverse as web sites, electronic data interchange, voice mail systems, wireless devices, web services, and more, XML is quickly becoming ubiquitous. XML Hacks is a roll-up-your-sleeves guide that distills years of ingenious XML hacking into a complete set of practical tips, tricks, and tools for web developers, system administrators, and programmers who want to go far beyond basic tutorials to leverage the untapped power of XML. With plenty of useful real-world projects that illustrate how to define, read, create, and manipulate XML documents, XML Hacks shows readers how to put XML's power to work on the Internet and within productivity applications. Each Hack in this book can be read easily in a few minutes, saving programmers and administrators countless hours of searching for the right answer. And this is an O'Reilly Hacks book, so it's not just practical, imminently useful, and time-saving. It's also fun. From Anatomy of an XML Document to Exploring SOAP Messages XML Hacks shows you how to save time and accomplish more with fewer resources. If you want much more than the average XML user--to explore and experiment, do things you didn't know you could do with XML, discover clever shortcuts, and show off just a little--this invaluable book is a must-have.&lt;br /&gt;
		&amp;lt;/INTRODUCTION&amp;gt;&lt;br /&gt;
		&amp;lt;PREFACE&amp;gt;&lt;br /&gt;
		&lt;br /&gt;
		&lt;br /&gt;
		&lt;br /&gt;
		 Along with XML has come a thundering horde of graphical XML editors that do everything short of buttering your toast. Many editors are readily available (see &lt;a href="http://www.xmlsoftware.com/editors.html"&gt;http://www.xmlsoftware.com/editors.html&lt;/a&gt; for a comprehensive though not exhaustive list), but I'll mention only a few safe bets here.&lt;br /&gt;
xmlspy 2004 by Altova (http://www.xmlspy.com) is a feature-rich, graphical editor for XML for the Windows environment. xmlspy has also been tested on Red Hat Linux running Wine, and Mac OS/X running Microsoft Virtual PC for Mac. The Home Edition of this popular editor is available for free, but you must pay for licensess for Professional and Enterprise editions. I'll give you a quick feature fly-over of xmlspy—though there are a number of features I won't get around to mentioning.&lt;br /&gt;
xmlspy can help you create documents and schemas by hand or from templates (examples), organize work into projects, and import text and database files. You can view documents as text with syntax highlighting or in a grid view, check spelling, validate against DTDs and XML Schema documents, perform XSLT transformations [Hack #33] and evaluate XPath location paths. xmlspy provides support for WSDL (http://www.w3.org/TR/wsdl) and SOAP [Hack #63] . You can also use xmlspy to generate Java, C++, or C# code [Hack #99] from DTDs or XML Schema documents.&lt;br /&gt;
Figure 1-10 shows the document valid.xml in xmlspy with helper panes on the right. These panes let you insert elements, attributes, and entities with a single click. The Project pane on the left gives you quick access to all kinds of templates.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/PREFACE&amp;gt;&lt;br /&gt;
		&amp;lt;INDEX&amp;gt;A-Z&amp;lt;/INDEX&amp;gt;&lt;br /&gt;
&amp;lt;/BOOK&amp;gt;&lt;br /&gt;
−&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/383293/383293/new-to-xml-need-help/</guid>
      <pubDate>Thu, 18 Dec 2008 17:00:37 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>XSLT attribute-centric to element-centric conversion problem</title>
      <link>http://www.programmersheaven.com/mb/xml/383063/383063/xslt-attribute-centric-to-element-centric-conversion-problem/</link>
      <description>Hi. I have problem constructing XML element-centric for ACCESS 03 import.&lt;br /&gt;
To convert is no problem, but then how to use the data is what i have been working on whole day without result... im desparate :(&lt;br /&gt;
&lt;br /&gt;
this is the XML file example:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;?xml version="1.0" encoding="UTF-8" ?&amp;gt; &lt;br /&gt;
- &amp;lt;service-list&amp;gt;&lt;br /&gt;
  &amp;lt;date-created&amp;gt;3.12.2008&amp;lt;/date-created&amp;gt; &lt;br /&gt;
- &amp;lt;user-filter&amp;gt;&lt;br /&gt;
  &amp;lt;cn&amp;gt;0000000&amp;lt;/cn&amp;gt; &lt;br /&gt;
  &amp;lt;group /&amp;gt; &lt;br /&gt;
  &amp;lt;user /&amp;gt; &lt;br /&gt;
  &amp;lt;/user-filter&amp;gt;&lt;br /&gt;
- &amp;lt;users&amp;gt;&lt;br /&gt;
- &amp;lt;user name="9asd2862" phone-number="049849849" lump="AAA6" date-expire="19.06.2010"&amp;gt;&lt;br /&gt;
- &amp;lt;services&amp;gt;&lt;br /&gt;
  &amp;lt;service name="Balík 150 minút" activated="false" /&amp;gt; &lt;br /&gt;
  &amp;lt;service name="Bezpečnostný balík" activated="false" /&amp;gt; &lt;br /&gt;
  &amp;lt;service name="Zvýšenie objemu dát" activated="false" /&amp;gt; &lt;br /&gt;
  &amp;lt;/services&amp;gt;&lt;br /&gt;
  &amp;lt;/user&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and there are like 16k user entries like this.&lt;br /&gt;
i need to create a list of all users and their activated services. like&lt;br /&gt;
&lt;br /&gt;
name / phone / lump / date-expire / service-name / service-activated&lt;br /&gt;
&lt;br /&gt;
this line has to be repeated for every service entry so the final DB in access should look like this&lt;br /&gt;
&lt;br /&gt;
test1 / 123456 / aaa6 / 12.12.2010 / test-service / true&lt;br /&gt;
test1 / 123456 / aaa6 / 12.12.2010 / test-service2 / false&lt;br /&gt;
test1 / 123456 / aaa6 / 12.12.2010 / test-service3 / true&lt;br /&gt;
test2 / 123412 / aaa1 / 12.12.2010 / test-service / true&lt;br /&gt;
test2 / 123412 / aaa1 / 12.12.2010 / test-service2 / true&lt;br /&gt;
test2 / 123412 / aaa1 / 12.12.2010 / test-service3 / true&lt;br /&gt;
&lt;br /&gt;
and so on...&lt;br /&gt;
&lt;br /&gt;
any ideaz?&lt;br /&gt;
&lt;br /&gt;
thanks in advance ;)</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/383063/383063/xslt-attribute-centric-to-element-centric-conversion-problem/</guid>
      <pubDate>Mon, 15 Dec 2008 07:22:01 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>XML instead of ADO.net</title>
      <link>http://www.programmersheaven.com/mb/xml/382231/382231/xml-instead-of-adonet/</link>
      <description>Hi , everybody, Are u having a good time? I am not......&lt;br /&gt;
I am working on a IVR project.We have completed the design stage, now coding.&lt;br /&gt;
&lt;br /&gt;
My boss said me to determine whether using XML for  data manipulation will be faster than normal process( for ex ADO.net).&lt;br /&gt;
We r working in C#(.net) &amp;amp; SQL server 2005. He wants to use 2 functions :&lt;br /&gt;
&lt;br /&gt;
xmlBuilder()&lt;br /&gt;
&lt;br /&gt;
xmlParser()&lt;br /&gt;
&lt;br /&gt;
xmlBuilder(CRecordset *rs,char* retValue) will be used to build an XML string for the recordset.&lt;br /&gt;
this xml string will be saved in the character array.&lt;br /&gt;
&lt;br /&gt;
Then we use xmlParser(retXML,"Location",index,filename) to search or find............&lt;br /&gt;
retXML is the xml string saved in the char array.&lt;br /&gt;
I have worked in ADO.net there with in_memory database(dataset...) data handling is faster.&lt;br /&gt;
&lt;br /&gt;
what do u think?&lt;br /&gt;
&lt;br /&gt;
Should we use XML?&lt;br /&gt;
&lt;br /&gt;
Pls reply, quick if possible.&lt;br /&gt;
&lt;br /&gt;
Best of luck. &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/382231/382231/xml-instead-of-adonet/</guid>
      <pubDate>Wed, 26 Nov 2008 01:33:59 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>Help transforming XML</title>
      <link>http://www.programmersheaven.com/mb/xml/381768/381768/help-transforming-xml/</link>
      <description>Hi, I would like to transform the following XML structure.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Region&amp;gt;&lt;br /&gt;
 &amp;lt;description&amp;gt;RegionDesc&amp;lt;/description&amp;gt;&lt;br /&gt;
 &amp;lt;Group&amp;gt;&lt;br /&gt;
  &amp;lt;description&amp;gt;GroupDesc&amp;lt;/description&amp;gt;&lt;br /&gt;
  &amp;lt;id&amp;gt;1&amp;lt;/id&amp;gt;&lt;br /&gt;
  &amp;lt;Events&amp;gt;&lt;br /&gt;
    &amp;lt;Event&amp;gt;&lt;br /&gt;
      &amp;lt;eventID&amp;gt;100&amp;lt;/eventID&amp;gt;&lt;br /&gt;
    &amp;lt;/Event&amp;gt;&lt;br /&gt;
    &amp;lt;Event&amp;gt;&lt;br /&gt;
      &amp;lt;eventID&amp;gt;200&amp;lt;/eventID&amp;gt;&lt;br /&gt;
    &amp;lt;/Event&amp;gt;&lt;br /&gt;
  &amp;lt;/Events&amp;gt;&lt;br /&gt;
 &amp;lt;/Group&amp;gt;&lt;br /&gt;
 &amp;lt;Group&amp;gt;&lt;br /&gt;
  &amp;lt;description&amp;gt;GroupDesc&amp;lt;/description&amp;gt;&lt;br /&gt;
  &amp;lt;id&amp;gt;2&amp;lt;/id&amp;gt;&lt;br /&gt;
  &amp;lt;Events&amp;gt;&lt;br /&gt;
  &amp;lt;/Events&amp;gt;&lt;br /&gt;
 &amp;lt;/Group&amp;gt;&lt;br /&gt;
&amp;lt;/Region&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I would like to be able to "flatten" the view so that the number of events are stored in an attribute. I'd also like to make the parent Region's description an attribute to each Group.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;Group&amp;gt;&lt;br /&gt;
  &amp;lt;region&amp;gt;RegionDesc&amp;lt;/region&amp;gt;&lt;br /&gt;
  &amp;lt;description&amp;gt;GroupDesc&amp;lt;/description&amp;gt;&lt;br /&gt;
  &amp;lt;id&amp;gt;1&amp;lt;/id&amp;gt;&lt;br /&gt;
  &amp;lt;eventCount&amp;gt;2&amp;lt;/eventCount&amp;gt;&lt;br /&gt;
 &amp;lt;/Group&amp;gt;&lt;br /&gt;
 &amp;lt;Group&amp;gt;&lt;br /&gt;
  &amp;lt;region&amp;gt;RegionDesc&amp;lt;/region&amp;gt;&lt;br /&gt;
  &amp;lt;description&amp;gt;GroupDesc&amp;lt;/description&amp;gt;&lt;br /&gt;
  &amp;lt;id&amp;gt;2&amp;lt;/id&amp;gt;&lt;br /&gt;
  &amp;lt;eventCount&amp;gt;0&amp;lt;/eventCount&amp;gt;&lt;br /&gt;
 &amp;lt;/Group&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Any help would be greatly appreciated!!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/381768/381768/help-transforming-xml/</guid>
      <pubDate>Wed, 12 Nov 2008 00:41:04 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>Trouble with zooming</title>
      <link>http://www.programmersheaven.com/mb/xml/381627/381627/trouble-with-zooming/</link>
      <description>I am making a GUI for an project and trying to implement zooming as well...&lt;br /&gt;
&lt;br /&gt;
Everything is fine except the fact that when i zoom to much in i dont get a scroll bar even if i put in a scrollviewer...here is the code&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&amp;lt;Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/present
ation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="wpftest.Window1"
    Title="Window1" Height="500" Width="500" xmlns:d="http://schemas.microsoft.com/expression/blend/2008
" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"&amp;gt;
    &amp;lt;Grid&amp;gt;
        &amp;lt;Grid.RowDefinitions&amp;gt;
            &amp;lt;RowDefinition Height="230*" /&amp;gt;
            &amp;lt;RowDefinition Height="185*" /&amp;gt;
            &amp;lt;RowDefinition Height="25*" /&amp;gt;
        &amp;lt;/Grid.RowDefinitions&amp;gt;
        &amp;lt;Slider Width="100" HorizontalAlignment="Right" x:Name="uiScaleSlider" ToolTip="Zoom" Value="1" Minimum="1" Maximum="10" Grid.Row="2" Margin="0,3,0,0" SmallChange="0.1" /&amp;gt;
        &amp;lt;ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Grid.Row="1" Grid.RowSpan="1"&amp;gt;
            &amp;lt;Grid Grid.Row="1" Grid.Column="0" Grid.RowSpan="1" Margin="0,0,0,0"&amp;gt;
                &amp;lt;Grid.RenderTransform&amp;gt;
                    &amp;lt;ScaleTransform ScaleX="{Binding Path=Value, ElementName=uiScaleSlider}" ScaleY="{Binding Path=Value, ElementName=uiScaleSlider}"/&amp;gt;
                &amp;lt;/Grid.RenderTransform&amp;gt;
                &amp;lt;Rectangle Name="rectangle1" Stroke="Black" Margin="156.698,40.008,236.714,56.678"&amp;gt;
                   
                &amp;lt;/Rectangle&amp;gt;
            &amp;lt;/Grid&amp;gt;
        &amp;lt;/ScrollViewer&amp;gt;
    &amp;lt;/Grid&amp;gt;
&amp;lt;/Window&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
first i was using a stackpanel instead of grid but i couldnt put them how i wanted... and instead of rendertransform i used layouttransform but then the elements scaled in a strange way...anyone know how to solve this :(&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/381627/381627/trouble-with-zooming/</guid>
      <pubDate>Fri, 07 Nov 2008 07:13:56 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>xml</title>
      <link>http://www.programmersheaven.com/mb/xml/381198/381198/xml/</link>
      <description>how can i read data from xml and write data to xml file in delphi 2007.give some sample code&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/381198/381198/xml/</guid>
      <pubDate>Wed, 15 Oct 2008 01:40:16 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>XML Stylesheets with unique XML</title>
      <link>http://www.programmersheaven.com/mb/xml/375064/375064/xml-stylesheets-with-unique-xml/</link>
      <description>The company I work for have developed a system that sends multiple difference XML based notices via web service and wants to be able to select some XML, which could be different every time, and apply a stylesheet to it so that the user can see it in a nice format.  The question is, can there just be one stylesheet or should there be one per notice?  As the notices or XML docments we produce contain different amounts of data with data of differing types and length it is my opinion that seperate xsl's should be produced but that in theory if the stylesheet was not massively complex and the data sets were similar i.e. of a similar length etc. it could be done in one stylesheet.&lt;br /&gt;
&lt;br /&gt;
Anyone know if I'm right or not or if there is an easy way to display unique XML data using a single stylesheet?&lt;br /&gt;
&lt;br /&gt;
Cheers&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/375064/375064/xml-stylesheets-with-unique-xml/</guid>
      <pubDate>Wed, 10 Sep 2008 03:14:14 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>Free Download XML ebooks</title>
      <link>http://www.programmersheaven.com/mb/xml/374993/374993/free-download-xml-ebooks/</link>
      <description>Dear Friends,&lt;br /&gt;
&lt;br /&gt;
You are free to download ebooks of XML, HTML, SQL Server, software, oracle, Unix, Linus and much more.&lt;br /&gt;
&lt;br /&gt;
Download from &lt;br /&gt;
&lt;a href="http://freedownload12.blogspot.com/"&gt;http://freedownload12.blogspot.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/374993/374993/free-download-xml-ebooks/</guid>
      <pubDate>Sun, 07 Sep 2008 22:38:10 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>transform XML to XML</title>
      <link>http://www.programmersheaven.com/mb/xml/374497/374497/transform-xml-to-xml/</link>
      <description>I have XML that I need to tranform to another structure of XML. The XML I need to transform is below:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ArrayNode&amp;gt;&lt;br /&gt;
   &amp;lt;Base&amp;gt;&lt;br /&gt;
      &amp;lt;aa&amp;gt;1&amp;lt;/aa&amp;gt;&lt;br /&gt;
      &amp;lt;bb&amp;gt;text&amp;lt;/bb&amp;gt;&lt;br /&gt;
      &amp;lt;cc&amp;gt;&lt;br /&gt;
            &amp;lt;ccc&amp;gt;&lt;br /&gt;
                  &amp;lt;cccc&amp;gt;text#1&amp;lt;/cccc&amp;gt;&lt;br /&gt;
                  &amp;lt;cccc2&amp;gt;text#1&amp;lt;/cccc2&amp;gt;&lt;br /&gt;
               &amp;lt;/ccc&amp;gt;&lt;br /&gt;
               &amp;lt;ccc&amp;gt;&lt;br /&gt;
                  &amp;lt;cccc&amp;gt;text#2&amp;lt;/cccc&amp;gt;&lt;br /&gt;
                  &amp;lt;cccc2&amp;gt;text#2&amp;lt;/cccc2&amp;gt;&lt;br /&gt;
               &amp;lt;/ccc&amp;gt;&lt;br /&gt;
         &amp;lt;/cc&amp;gt;&lt;br /&gt;
         &amp;lt;dd&amp;gt;text&amp;lt;/dd&amp;gt;&lt;br /&gt;
   &amp;lt;/Base&amp;gt;&lt;br /&gt;
   &amp;lt;Base&amp;gt;&lt;br /&gt;
         &amp;lt;aa&amp;gt;2&amp;lt;/aa&amp;gt;&lt;br /&gt;
         &amp;lt;bb&amp;gt;text2&amp;lt;/bb&amp;gt;&lt;br /&gt;
         &amp;lt;cc&amp;gt;&lt;br /&gt;
               &amp;lt;ccc&amp;gt;&lt;br /&gt;
                        &amp;lt;cccc&amp;gt;text#3&amp;lt;/cccc&amp;gt;&lt;br /&gt;
                        &amp;lt;cccc2&amp;gt;text#3&amp;lt;cccc2&amp;gt;&lt;br /&gt;
               &amp;lt;/ccc&amp;gt;&lt;br /&gt;
            &amp;lt;dd&amp;gt;text&amp;lt;/dd&amp;gt;&lt;br /&gt;
      &amp;lt;/Base&amp;gt;&lt;br /&gt;
&amp;lt;/ArrayNode&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This needs be tranformed to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ArrayNode&amp;gt;&lt;br /&gt;
   &amp;lt;Base&amp;gt;&lt;br /&gt;
      &amp;lt;aa&amp;gt;&amp;lt;/aa&amp;gt;&lt;br /&gt;
      &amp;lt;bb&amp;gt;&amp;lt;/bb&amp;gt;&lt;br /&gt;
      &amp;lt;cc&amp;gt;&lt;br /&gt;
            &amp;lt;ccc&amp;gt;&lt;br /&gt;
                     &amp;lt;cccc&amp;gt;Text#1&amp;lt;/cccc&amp;gt;&lt;br /&gt;
                     &amp;lt;cccc2&amp;gt;Text#1&amp;lt;/cccc2&amp;gt;&lt;br /&gt;
            &amp;lt;/ccc&amp;gt;&lt;br /&gt;
      &amp;lt;/cc&amp;gt;&lt;br /&gt;
      &amp;lt;dd&amp;gt;&amp;lt;/dd&amp;gt;&lt;br /&gt;
   &amp;lt;/Base&amp;gt;&lt;br /&gt;
   &amp;lt;Base&amp;gt;&lt;br /&gt;
         &amp;lt;aa&amp;gt;&amp;lt;/aa&amp;gt;&lt;br /&gt;
         &amp;lt;bb&amp;gt;&amp;lt;/bb&amp;gt;&lt;br /&gt;
         &amp;lt;cc&amp;gt;&lt;br /&gt;
               &amp;lt;ccc&amp;gt;&lt;br /&gt;
                     &amp;lt;cccc&amp;gt;Text#2&amp;lt;/cccc&amp;gt;&lt;br /&gt;
                     &amp;lt;cccc2&amp;gt;Text#2&amp;lt;/cccc2&amp;gt;&lt;br /&gt;
               &amp;lt;/ccc&amp;gt;&lt;br /&gt;
         &amp;lt;/cc&amp;gt;&lt;br /&gt;
         &amp;lt;dd&amp;gt;&amp;lt;/dd&amp;gt;&lt;br /&gt;
      &amp;lt;/Base&amp;gt;&lt;br /&gt;
      &amp;lt;Base&amp;gt;&lt;br /&gt;
         &amp;lt;aa&amp;gt;&amp;lt;/aa&amp;gt;&lt;br /&gt;
         &amp;lt;bb&amp;gt;&amp;lt;bb&amp;gt;&lt;br /&gt;
         &amp;lt;cc&amp;gt;&lt;br /&gt;
               &amp;lt;ccc&amp;gt;&lt;br /&gt;
                        &amp;lt;cccc&amp;gt;Text#3&amp;lt;/cccc&amp;gt;&lt;br /&gt;
                        &amp;lt;cccc2&amp;gt;Text#3&amp;lt;cccc2&amp;gt;&lt;br /&gt;
               &amp;lt;/ccc&amp;gt;&lt;br /&gt;
         &amp;lt;cc&amp;gt;&lt;br /&gt;
         &amp;lt;dd&amp;gt;&amp;lt;/dd&amp;gt;&lt;br /&gt;
      &amp;lt;/Base&amp;gt;&lt;br /&gt;
&amp;lt;/ArrayNode&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Wherever &amp;lt;ccc&amp;gt; exists, it needs to loop over each &amp;lt;ccc&amp;gt; and insert each individual &amp;lt;ccc&amp;gt; into the rest of the data for that &amp;lt;Base&amp;gt; group.   So if there are 3 &amp;lt;ccc&amp;gt;'s, it should repeat the entire &amp;lt;Base&amp;gt; group and insert one of the &amp;lt;ccc&amp;gt; nodes.&lt;br /&gt;
&lt;br /&gt;
Thanks in advance &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/374497/374497/transform-xml-to-xml/</guid>
      <pubDate>Mon, 25 Aug 2008 08:55:41 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>Display XML using XSL</title>
      <link>http://www.programmersheaven.com/mb/xml/372906/372906/display-xml-using-xsl/</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
  I want to display the contents of XML file using XSL one by one after clicking a button. Can anyone help regarding this matter. It's urgent....plz help....&lt;br /&gt;
&lt;br /&gt;
Thanks &lt;br /&gt;
Devi&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/372906/372906/display-xml-using-xsl/</guid>
      <pubDate>Wed, 25 Jun 2008 23:27:27 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>dtd question</title>
      <link>http://www.programmersheaven.com/mb/xml/371859/371859/dtd-question/</link>
      <description>can i specify fixed number of children in dtd?&lt;br /&gt;
&lt;br /&gt;
For example &amp;lt;!ELEMENT book (pages)*&amp;gt;&lt;br /&gt;
I want the number of pages to be exactly or less than 100 instead of 0 or more.&lt;br /&gt;
&lt;br /&gt;
Can i achieve the above?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks in advance.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Vamshi&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/371859/371859/dtd-question/</guid>
      <pubDate>Tue, 13 May 2008 02:44:24 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>windows movie maker</title>
      <link>http://www.programmersheaven.com/mb/xml/371304/371304/windows-movie-maker/</link>
      <description>hi, &lt;br /&gt;
does anyone know a xml code that would allow me to put text in the corner of every frame of a movie being edited in windows movie maker ?&lt;br /&gt;
it would be like making a "title on selected clip" but there would be a selection for text in corner "preferably the bottom right corner"&lt;br /&gt;
&lt;br /&gt;
i already have the code that allows pics to do this function but when u have a "pic" thats nothing but text with a tranparent background the text is bunched up and barley readable&lt;br /&gt;
&lt;br /&gt;
thanks for your input &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/371304/371304/windows-movie-maker/</guid>
      <pubDate>Thu, 17 Apr 2008 14:38:56 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>XSL and Excel</title>
      <link>http://www.programmersheaven.com/mb/xml/371214/371214/xsl-and-excel/</link>
      <description>I have an xml file saved from Excel.  The first cell in the first row contains a number that represents the row my column headings will start.  I'm trying to get the value from this cell and put it into a variable for later on.&lt;br /&gt;
&lt;br /&gt;
An excert from my original xml file:&lt;br /&gt;
&amp;lt;Row&amp;gt;&lt;br /&gt;
    &amp;lt;Cell&amp;gt;&amp;lt;Data ss:Type="Number"&amp;gt;7&amp;lt;/Data&amp;gt;&amp;lt;/Cell&amp;gt;&lt;br /&gt;
   &amp;lt;/Row&amp;gt;&lt;br /&gt;
   &amp;lt;Row&amp;gt;&lt;br /&gt;
    &amp;lt;Cell ss:StyleID="s70"&amp;gt;&amp;lt;Data ss:Type="String"&amp;gt;Some Bank&amp;lt;/Data&amp;gt;&amp;lt;/Cell&amp;gt;&lt;br /&gt;
    &amp;lt;Cell ss:StyleID="s64"/&amp;gt;&lt;br /&gt;
    &amp;lt;Cell ss:StyleID="s64"/&amp;gt;&lt;br /&gt;
    &amp;lt;Cell ss:StyleID="s64"/&amp;gt;&lt;br /&gt;
    &amp;lt;Cell ss:StyleID="s64"/&amp;gt;&lt;br /&gt;
    &amp;lt;Cell ss:StyleID="s64"/&amp;gt;&lt;br /&gt;
    &amp;lt;Cell ss:StyleID="s73"/&amp;gt;&lt;br /&gt;
    &amp;lt;Cell ss:StyleID="s73"/&amp;gt;&lt;br /&gt;
   &amp;lt;/Row&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The only thing I can guarentee with the original file is this 1st cell will contain the row number the column headings start on.  So my question is how do I reference that first cell? I've tried putting the value out in a comment just to see if I can reference it and it does not like it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;xsl:comment&amp;gt;&lt;br /&gt;
	&amp;lt;xsl:value-of select="ss:Row/ss:Cell[1]"/&amp;gt;&lt;br /&gt;
	&amp;lt;xsl:value-of select="$dataRowStart"/&amp;gt; -- this value is 8&lt;br /&gt;
&amp;lt;/xsl:comment&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
My output xml looks something like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;br /&gt;
&amp;lt;!--8--&amp;gt;&lt;br /&gt;
&amp;lt;Workbook xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:o="urn:schemas-microsoft-com:office:office"&amp;gt;&lt;br /&gt;
&amp;lt;FA_Report-September_2007&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any/all help is greatly appreciated due this being completely new to me.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/371214/371214/xsl-and-excel/</guid>
      <pubDate>Tue, 15 Apr 2008 07:49:30 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>ampersands in URLS in XML compliant HTML</title>
      <link>http://www.programmersheaven.com/mb/xml/370440/370440/ampersands-in-urls-in-xml-compliant-html/</link>
      <description>I have a problem with ampersands in URL's that use ampersands.&lt;br /&gt;
&lt;br /&gt;
The use of ampersand is kind of important in a URL.  You probably know this already but the ampersand in a URL often to set GET parameters for a request to a server side script.  &lt;br /&gt;
&lt;br /&gt;
The problem is that it seems XML needs all ampersands to be written of the form &amp;amp;amp; but I don't think the JavaScript below would work then.&lt;br /&gt;
&lt;br /&gt;
Here is an example of some code I'm referring to.  You can see the "&amp;amp;url=" that causes the problem.&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&amp;lt;a onclick="javascript:window.open('/cgi-bin/linkmailer.pl?&amp;amp;url=http://www.csgnetwork.com/tempconvjava.html'...
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How can you use ampersands in attribute values of XML compliant code?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/370440/370440/ampersands-in-urls-in-xml-compliant-html/</guid>
      <pubDate>Tue, 18 Mar 2008 12:17:29 -0700</pubDate>
      <category>XML Development</category>
    </item>
    <item>
      <title>XSL Formating a web Page question.</title>
      <link>http://www.programmersheaven.com/mb/xml/370320/370320/xsl-formating-a-web-page-question/</link>
      <description>I would like to have an evenly spaced table that will be ten cells wide, but I do not know how to write the .xsl file so that it knows when to start a new row.  I would like a row of pictures, and then a row of captions for those pictures in a separate cell below the picture.  Once I have ten items in a row I would then like it to start a new row.  I am new to xml, and am not sure this is even possible.  Any help would be appreciated.&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
&lt;br /&gt;
Smurf&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/370320/370320/xsl-formating-a-web-page-question/</guid>
      <pubDate>Fri, 14 Mar 2008 05:42:40 -0700</pubDate>
      <category>XML Development</category>
    </item>
  </channel>
</rss>