Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: How would we get xml tags in xsl if we have same element name

From: kamkaro@-----------.---------.---
To: NULL
Date: 7/12/2007 8:56:00 AM



"ML" wrote:

> Are you referring to XPath wildcards?
> 
> E.g.:
> "//cell" will give you all cell nodes anywhere in the XML.
> 
> Is this what you need? For a more accurate answer post an example of the 
> output XML.
> 
> 
> ML
> 
> ---
> http://milambda.blogspot.com/


Thanks ML, you r trying to help me out but i think i did not explain very 
well what is my problem, here i am pasting my xml code and output that what i 
want; 

Although i have a big file but i just minimize and took only two child node, 
if you see my code so you can easily distingush by title name, My problem is 
i have two title info (data) and has same child nodes like "table, row, cell, 
db, idebtifier" but i want to display in different "table block" not display 
all db or identifier at one place. 

<Record>
	<content>	
				<!-- Title= Redundant Groups  -->			
			<field>
				<title>Redundant Group</title>
					<summary>3 identical protein(s) found.</summary>
					<content>
						<table>
							<row>
								<cell>
									<idebtifier>Q9D6L8</idebtifier>
								</cell>
								<cell>
									<db>dbj</db>
								</cell>
							</row>
						</table>
					</content>
			</field>
				<!--  Title= Database Cross-references  -->
			<field>
				<title>Database Cross-references</title>
					<summary>3 cross-reference(s) found </summary>
					<content>
						<table>
							<row>
								<cell>
									<db>GENE</db>
								</cell>
								<cell>
									<idebtifier>Z98T23</idebtifier>
								</cell>
							</row>
						</table>
					</content>
			</field>
	</content>
</Record>
 
 output:
 Title: Redundant Group
		 Identifier = Q9D6L8
		 db = dbj
Title: Database Cross-references
		Identifier = Z98T23
		db = GENE


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