Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>Use</strong>:</p> <pre><code>//div[@class='rsw-pp rsw-pp-widget']/node() </code></pre> <p>This selects any node (element, text-node, processing instruction or comment-node) that is a child of any element selected by the expression <code>//div[@class='rsw-pp rsw-pp-widget']</code>.</p> <p><strong>XSLT verification</strong>:</p> <p>This transformation:</p> <pre><code>&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; &lt;xsl:output omit-xml-declaration="yes" indent="yes"/&gt; &lt;xsl:template match="/"&gt; &lt;xsl:copy-of select= "//div[@class='rsw-pp rsw-pp-widget']/node()"/&gt; &lt;/xsl:template&gt; &lt;/xsl:stylesheet&gt; </code></pre> <p><strong>when applied on the provided XML document</strong> (corrected to be wellformed):</p> <pre><code>&lt;div class="rsw-pp rsw-pp-widget"&gt; &lt;div xmlns:g="g:g" g:type="AverageStarRating" g:secondaryurls="http://maps.google.com/?cid=12948004443906002997" g:decorateusingsecondary="http://maps.google.com/?cid=12948004443906002997" g:groups="maps" g:rating_override="2.998000" class="rsw-stars "&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p><strong>selects and outputs exactly the wanted nodes</strong>:</p> <pre><code> &lt;div xmlns:g="g:g" g:type="AverageStarRating" g:secondaryurls="http://maps.google.com/?cid=12948004443906002997" g:decorateusingsecondary="http://maps.google.com/?cid=12948004443906002997" g:groups="maps" g:rating_override="2.998000" class="rsw-stars "/&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload