<div dir="ltr"><div><div><div>Hi Al,<br><br>If you want to randomly select from single-part problems, have you tried using the <randomlist> tag? This would look something like this:<br><br></div><problem><br></div>

<div><randomlist show="1"><br></div><div>  <block><br></div><div>  #insert single-part problem here (without the <problem> tags)<br></div><div>  </block><br><div>  <block><br></div>

  #insert single-part problem here<br>  </block><br><div>  <block><br></div>  #insert single-part problem here<br>  </block><br></div><div></randomlist><br></div></problem><br><br></div>Regards,<br>

Justin<br></div><div class="gmail_extra"><br clear="all"><div><div><br></div><div><br></div><div style="color:rgb(102,102,102)">Justin Gray | Senior Lecturer</div><span style="color:rgb(102,102,102)">Department of Mathematics | Simon Fraser University</span><br style="color:rgb(102,102,102)">

<span style="color:rgb(102,102,102)">8888 University Drive, Burnaby | V5A 1S6 | Canada</span><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">Tel: +1 778.782.4237</span><div><div><br></div></div></div>


<br><br><div class="gmail_quote">On Fri, Feb 22, 2013 at 1:10 AM, Al Cone <span dir="ltr"><<a href="mailto:tal_cone@web.de" target="_blank">tal_cone@web.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


  

    
  
  <div text="#000000" bgcolor="#FFFFFF">
    
    <p class="MsoNormal"><span lang="EN-US">Yoho Guys,<u></u><u></u></span></p>
    <p class="MsoNormal"><span lang="EN-US">I try to
        build a .problem, that import other .problem’s. So that I can
        create a dynamic
        .problem, that contain static .problem’s. <span> </span>I know it’s possible by using
        library’s,
        however I want use already existing .problem’s. <u></u><u></u></span></p>
    <p class="MsoNormal"><span lang="EN-US">Because a .problem
        can’t have more than one <problem>-tag, it's a little bit
        difficult. <u></u><u></u></span></p>
    <p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
    <p class="MsoNormal"><span lang="EN-US"><span> </span>My present
        Idea… Get the XML-Code from a .problem as a string
        and filter the <problem>-tag with regular expression. <u></u><u></u></span></p>
    <p class="MsoNormal"><span lang="EN-US">Is there a
        way to get the XML-Code from a .problem as a String? Or is there
        another way
        for my request?<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></span></p><span class="HOEnZb"><font color="#888888">
    <p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
    <p class="MsoNormal"><span lang="EN-US">~Cone<u></u><u></u></span></p>
    
    
    
    
    
    
    
    
  </font></span></div>

<br>_______________________________________________<br>
LON-CAPA-users mailing list<br>
<a href="mailto:LON-CAPA-users@mail.lon-capa.org">LON-CAPA-users@mail.lon-capa.org</a><br>
<a href="http://mail.lon-capa.org/mailman/listinfo/lon-capa-users" target="_blank">http://mail.lon-capa.org/mailman/listinfo/lon-capa-users</a><br>
<br></blockquote></div><br></div>