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

Select issue with some attr and others not.

Subject: Select issue with some attr and others not.
From: "John Hamman" <John@xxxxxxxxxxxxxxxxx>
Date: Fri, 16 Apr 2004 12:14:22 -0400
lang en us
Hello all,
Forgive me, im new at xsl but I have a xml file like below 
	<List id="someListid">
		<Title lang="en-US">Upcoming Impact Events</Title>
		<Title lang="es-ES">Acontecimientos Prsximos Del
Impact</Title>
		<Item publishdate="04/02/2004">
			<Title lang="en-US">IMPACT goes to Mexico</Title>
			<Title lang="es-ES">El IMPACT va a Mixico</Title>
			<near
resource="/Base/Impact_Events/Impact-goes-to-Mexico"/>
			<Description lang="en-US"><![CDATA[IMPACT goes to
Mexico today for a short term mission trip. ]]></Description>
			<Description lang="es-ES"><![CDATA[El IMPACT va a
Mixico hoy para un viaje a corto plazo de la misisn. ]]></Description>
		</Item>
		<Item publishdate="01/02/2004">
			<Title lang="en-US">IMPACT visits iThink Designs,
Inc.</Title>
			<Title lang="es-ES">El IMPACTvisita los  iThink
Designs, Inc.</Title>
			<far resource="http://www.ithinkdesigns.com/"/>
			<Description lang="en-US"><![CDATA[IMPACT goes to
see John Hamman,president of iThink Designs, Inc., to thank him for an
excellent Site! ]]></Description>
			<Description lang="es-ES"><![CDATA[!El IMPACT va a
ver a John Hamman, presidente de los iThink Designs, inc., para agradecerlo
por un sitio excelente!]]></Description>
		</Item>
		</List>

AND I want to pull back this result with xsl (depeding on the language.)

	<List id="someListid">
		<Title lang="en-US">Upcoming Impact Events</Title>
			<Item publishdate="04/02/2004">
			<Title lang="en-US">IMPACT goes to Mexico</Title>
			<near
resourse="/Base/Impact_Events/Impact-goes-to-Mexico"/>
			<Description lang="en-US"><![CDATA[IMPACT goes to
Mexico today for a short term mission trip. ]]></Description>
			</Item>
		<Item publishdate="01/02/2004">
			<Title lang="en-US">IMPACT visits iThink Designs,
Inc.</Title>
			<far resourse="http://www.ithinkdesigns.com/"/>
			<Description lang="en-US"><![CDATA[IMPACT goes to
see John Hamman,president of iThink Designs, Inc., to thank him for an
excellent Site! ]]></Description>
			</Item>
		</List>

But im not sure how to do it or where to start! I think what throws me off
is the <near> and <far> tags.
john

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.