[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Group by parameter tag

Subject: Group by parameter tag
From: IZASKUN GUTIERREZ GUTIERREZ <igutierrez027@xxxxxxxxxxxxx>
Date: Wed, 25 Mar 2009 11:05:01 +0100
 Group by parameter tag
Hello everybody!

I have this .xml file:

<?xml version="1.0" encoding="windows-1252"?>
<file xmlns="http://bibtexml.sf.net/">

  <entry id="art">
    <article>
      <author>Isabel Menindez and Luis Perez</author>
      <note>note1</note>
      <note>note2</note>
    </article>
  </entry>

<entry id="conf">
    <conference>
      <author>Jhon Smith</author>
      <note>note5</note>
    </conference>
  </entry>

<entry id="boo">
    <book>
      <title>The title</title>
      <note>note3</note>
      <note>note4</note>
    </book>
  </entry>

<entry id="inb">
    <inbook>
      <pages>42</pages>
    </inbook>
  </entry>

</file>


I need one template (version 1.0 or 2.0) to group values of tags note separated by "and" words, but I have a problem. Really, the tag I must group by must come like parameter. This is, I dont know really what is the name of the tag that I must group by.

The result must be:

<?xml version="1.0" encoding="windows-1252"?>
<file xmlns="http://bibtexml.sf.net/">

  <entry id="art">
    <article>
      <author>Isabel Menindez and Luis Perez</author>
      <note>note1 and note2</note>
    </article>
  </entry>

<entry id="conf">
    <conference>
      <author>Jhon Smith</author>
      <note>note5</note>
    </conference>
  </entry>

<entry id="boo">
    <book>
      <title>The title</title>
      <note>note3 and note4</note>
    </book>
  </entry>

<entry id="inb">
    <inbook>
      <pages>42</pages>
    </inbook>
  </entry>

</file>


Could anybody help me?


Thank You, Regards

Izaskun Gutierrez

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.