0 Replies Latest reply on Aug 11, 2011 12:40 PM by James Robinson

    [CS5][XSL] InDesign crashes on dynamic selection...

    James Robinson

      If I have any code like:

       

      <xsl:variable name="selectStr"><xsl:text>/Some/Path/To/Nodes</xsl:text></xsl:variable>

       

      combined with either of these:

       

      <xsl:variable name="selectNodes" select="$selectStr" />

       

      <xsl:for-each select="$selectStr">
           <!-- Some XSL stuff -->
      </xsl:for-each>
      

       

      results in InDesign crashing. The selectStr can be anything. I have tried many things.

       

      The only thing I can think of is that it is not automatically parsing the string to a node-set.

      Others seem to be getting a "result must be a node-set" with other parsers (not InDesign).

       

      Also it crashes reguardless of having the <xsl:text> elements in the first variable.

       

      Anyone know of a way to do this without crashing?