[xsl] REtrieving attributes with XPATH

Subject: [xsl] REtrieving attributes with XPATH
From: "Miguel Carvalho" <mig.carv@xxxxxxxxxxxxxxx>
Date: Wed, 10 Sep 2003 21:25:29 +0100
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