Hello,
I found in Geonetwork Xsl files a PATH like this : /root/gui/... and i want
to understand what this path means.
thnx
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Xsl-PATH-tp5035093p5035093.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.
Hi,
I found in Geonetwork Xsl files a PATH like this : /root/gui/… and i want
to understand what this path means.
It is related to Xpath language :
http://en.wikipedia.org/wiki/Xpath
Note : If you add a “!” after your GeoNetwork URLs, you may get the raw XML datas before XSL processing ; then you should recover the XML path, i.e. :
[...]
[...]
[...]
[...]
[...]
In your example “/root/gui/…”, it means that is children of . You may find better documentation than I can provide on the net
Hope that helps,
–
Pierre Mauduit
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
Tel : + 33 (0)4 79 44 44 92
http://www.camptocamp.com
pierre.mauduit@anonymised.com
Hello,
thank you for your help, i understand better than before.
I have a seconde question, in Geonetwork when we want to get some data from
a node in xml file like City in <city>City</city> who is defined in
strings.xml (PATH\web\geonetwork\loc\en\xml\strings.xml) they just write in
the Xsl file value-of select="/root/gui/strings/city".
It's like the " /root/gui/" define a path and not node...?!
You know what it means in this case ?
Thnx
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Xsl-PATH-tp5035093p5035635.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.
hi Cissine,
I think the is a thing of Jeeves, and its descendants are added because of this in config.xml:
main.home
fr
true
text/html; charset=UTF-8
… etc.
Kind regards
Heikki Doeleman
On Tue, May 11, 2010 at 2:03 PM, Cissine <mohcine.chibane@anonymised.com…31…> wrote:
Hello,
thank you for your help, i understand better than before.
I have a seconde question, in Geonetwork when we want to get some data from
a node in xml file like City in City who is defined in
strings.xml (PATH\web\geonetwork\loc\en\xml\strings.xml) they just write in
the Xsl file value-of select=“/root/gui/strings/city”.
It’s like the " /root/gui/" define a path and not node…?!
You know what it means in this case ?
Thnx
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Xsl-PATH-tp5035093p5035635.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Hello,
I have a seconde question, in Geonetwork when we want to get some data from
a node in xml file like City in City who is defined in
strings.xml (PATH\web\geonetwork\loc\en\xml\strings.xml) they just write in
the Xsl file value-of select=“/root/gui/strings/city”.
It’s like the " /root/gui/" define a path and not node…?!
You know what it means in this case ?
the “/root/gui/…” defines the path which allows you to point on the XML node you are interested in. the xsl “value-of” indicates that you’re interested in the “inner” value between the two anchors, I guess ( http://www.w3schools.com/xsl/el_value-of.asp )
If you had something like “City…”, and you did use a , I think it’d have been equivalent to “capital”, but I’m not a XSL expert (relying on : http://www.w3schools.com/xsl/el_param.asp ).
Hth,
–
Pierre Mauduit
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
Tel : + 33 (0)4 79 44 44 92
http://www.camptocamp.com
pierre.mauduit@anonymised.com
Hello everybody,
thx for your help, i understand know what it mean.
In the browser when i put "!" at the end of the url i saw the structure of
the main.xml i think and it look like this :
- <root>
-<gui>
+<strings></strings>
+<countries></countries>
...
+<iso19139></iso19139>
+<templates></templates>
...
-<gui>
-<root>
So when we want to get some informations from any node we have just to write
the right path for this xml.
thnx
Merci beaucoup.
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Xsl-PATH-tp5035093p5035813.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.