Top "Xpath-1.0" questions

Use this tag for questions specific to XML Path Language (XPath) version 1.0

XSLT string replace

I don't really know XSL but I need to fix this code, I have reduced it to make it simpler. …

xslt xpath replace xslt-1.0 xpath-1.0
How to use starts-with() , contains() and ends-with() in XPath to find the xml node innertext? in XPATH 1.0

<ArticleBackmatter> <Heading>Ethical standards and patient consent</Heading> <Heading>Ethical standards and …

xslt xpath xpath-1.0
How can I use XPath to find the minimum value of an attribute in a set of elements?

If I have XML like: <foo> <bar id="1" score="192" /> <bar id="2" score="227" /> <bar …

xml xpath xpath-1.0
How to find the max attribute from an XML document using Xpath 1.0

Is there a way to query an XML document to return the maximum of a given attribute using Xpath 1.0 ? For …

xml xpath xpath-1.0
Encoding XPath Expressions with both single and double quotes

XPath (v1) contains no way to encode expressions. If you only have single OR double quotes then you can use …

c# xml xpath xpath-1.0
Check type of node in XSL template

Is it possible to check the type of a node I matched with a template inside the same template? In …

xslt xpath-1.0
How to select the nth item in xpath 1.0?

I have some XML and an XPath query. I'm using Yahoo! widgets, so I'm using XPath 1.0. Here's the gist of …

javascript xml xpath yahoo-widgets xpath-1.0
Aggregate-function for sum and product in XPath

Similar to this question (http://stackoverflow.com/q/1333558/948404) I want to use XPath to calculate a sum over products in …

xslt-1.0 xpath-1.0
Can I select in XPath based on a variable attribute?

I think this isn't possible but would like to have a definitive answer. XML: <agentlang>French</agentlang&…

xslt xpath xslt-1.0 xpath-1.0
Concat function with strings in XPath

I am trying to get the complete address using XPath. I am new to XPath. This is what I have …

xml xpath xpath-1.0