title: Loading style sheet(xhtml file), dynamically
body: <p>I am trying to reload a style sheet (written in xhtml), dynamically.</p>
  
  <p>To describe the scenario:</p>
  
  <p>The application can be accessed by the user in multiple languages; First time when the application loads, a default file master-styles.xhtml is loaded, and now the user from some control screen can modify the language in which user wants to view the screen. Now at this point I want to load a different stylesheet for that specific language, scrapping the currently used stylesheet (master-styles.xhtml); </p>
  
  <p>I am using JSF, richfaces for the UI components:</p>
  
  <pre><code>&lt;html&gt;
       &lt;head&gt;
  
  &lt;sf:includeStyles /&gt;
    &lt;ui:insert name="globalStyles"&gt;
        &lt;ui:include src="/WEB-INF/flows/ui/core/resources/styles/master-styles.xhtml"/&gt;
    &lt;/ui:insert&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>Is there a way to discard this file and load another file as part of my CSS; or is there an alternate way by which i can counter this problem?</p>
  
  <p>Thanks.</p>