Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The <code>&amp;apos;</code> references are resolved by the XML parser that parses your XSLT. Your XSLT processor never sees them. What your XSLT processor sees is:</p> <pre><code>concat('url('', $imgSrc, '')') </code></pre> <p>Which is not valid because the commas don't end up in the right place to separate the arguments. However, this might work for you, <a href="http://www.stylusstudio.com/xsllist/200211/post30020.html" rel="nofollow">depending on the serializer</a> your XSLT processor uses:</p> <pre><code>concat(&amp;quot;url('&amp;quot;, $imgSrc, &amp;quot;')&amp;quot;) </code></pre> <p>This surrounds the arguments in double-quotes, so that your single-quotes do not conflict. The XSLT processor should see this:</p> <pre><code>concat("url('", $imgSrc, "')") </code></pre> <p>Another option is to define a variable:</p> <pre><code>&lt;xsl:variable name="apos" select='"&amp;apos;"'/&gt; </code></pre> <p>Which can be used like this:</p> <pre><code> concat('url(', $apos, $imgSrc, $apos, ')') </code></pre> <p>More <a href="http://www.xml.com/pub/a/2001/03/14/trxml10.html" rel="nofollow">here</a>:</p> <blockquote> <p>When you apply an XSLT stylesheet to a document, if entities are declared and referenced in that document, your XSLT processor won't even know about them. An XSLT processor leaves the job of parsing the input document (reading it and figuring out what's what) to an XML parser; that's why the installation of some XSLT processors requires you to identify the XML parser you want them to use. (Others include an XML parser as part of their installation.) An important part of an XML parser's job is to resolve all entity references, so that if the input document's DTD declares a cpdate entity as having the value "2001" and the document has the line "copyright &cpdate; all rights reserved", the XML parser will pass along the text node "copyright 2001 all rights reserved" to put on the XSLT source tree.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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