[xslt] Extracting just the value of a property



Say you have an xml file like:

<project name="FullDist" default="full">
    <property name="projectname" value="Bleeding_Edge"/>
    <!-- Lots of other stuff here -->
</project>

And you want to pull out just Bleeding_Edge without a lot of xml framing.

>From a shell script, is xsltproc a good way of doing this?  If so how?

Would xquery be better than XSLT?

Thanks!




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]