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

REtrieving attributes with XPATH

Subject: REtrieving attributes with XPATH
From: "Miguel Carvalho" <mig.carv@xxxxxxxxxxxxxxx>
Date: Wed, 10 Sep 2003 21:25:29 +0100
xpath attributes
Hi,

imagine that i have this XML,

<article articleid="1" height="5" rating="2" sectionid="1" width="6"
xmlns:src="http://xml.apache.org/xindice/Query" src:col="/db/daeDocuments"
src:key="1"><title>Corrupção
ambiental</title><text>ilegaisddfdf</text></article>

<article articleid="2" height="4" rating="2" sectionid="1" width="7"
xmlns:src="http://xml.apache.org/xindice/Query" src:col="/db/daeDocuments"
src:key="1"><title>Corrupção
ambiental</title><text>ilegaisddfdf</text></article>

and i want to retreive something like this

<article>
<id>1</id>
<width>6</width>
<height>5</height>
</article>

<article>
<id>2</id>
<width>7</width>
<height>4</height>
</article>

how can i do it in XSL?

Thanks in advance

Miguel Carvalho



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.