Note that there are some explanatory texts on larger screens.

plurals
  1. POxml elements position
    primarykey
    data
    text
    <p>Here is an xml File</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; </code></pre> <p></p> <pre><code>&lt;contact-information&gt; &lt;full-name&gt;Peter John&lt;/full-name&gt; &lt;address_line_1&gt;some place&lt;/address_line_1&gt; &lt;address_line_2&gt;some place2&lt;/address_line_2&gt; &lt;city&gt;some city&lt;/city&gt; &lt;state&gt;some state&lt;/state&gt; &lt;zip&gt;54000&lt;/zip&gt; &lt;country&gt;some country&lt;/country&gt; &lt;phone&gt;2121314144&lt;/phone&gt; &lt;email&gt;abc@xyz.com&lt;/email&gt; &lt;/contact-information&gt; &lt;professional-experience-section&gt; &lt;section-name&gt;PROFESSIONAL EXPERIENCE&lt;/section-name&gt; &lt;enabled&gt;true&lt;/enabled&gt; &lt;company&gt; &lt;name&gt;Computer Sciences Corporation&lt;/name&gt; &lt;city&gt;New York&lt;/city&gt; &lt;state&gt;NY&lt;/state&gt; &lt;country&gt;United States&lt;/country&gt; &lt;job-title&gt; &lt;title&gt;Senior Software Engineer&lt;/title&gt; &lt;start-date&gt;Aug 1996&lt;/start-date&gt; &lt;end-date&gt;May 2010&lt;/end-date&gt; &lt;ongoing&gt;false&lt;/ongoing&gt; &lt;job-description&gt; &lt;bullet-point&gt; &lt;statement&gt;C#, Visual Basic, Asp.net&lt;/statement&gt; &lt;/bullet-point&gt; &lt;bullet-point&gt; &lt;statement&gt;Inspect completed work to ensure conformance to specifications, standards, and contract requirements.&lt;/statement&gt; &lt;/bullet-point&gt; &lt;bullet-point&gt; &lt;statement&gt;Another Work Description.&lt;/statement&gt; &lt;/bullet-point&gt; &lt;/job-description&gt; &lt;/job-title&gt; &lt;/company&gt; &lt;company&gt; &lt;name&gt;Acme&lt;/name&gt; &lt;city&gt;Silver Spring&lt;/city&gt; &lt;state&gt;MD&lt;/state&gt; &lt;country&gt;United States&lt;/country&gt; &lt;job-title&gt; &lt;title&gt;Manager&lt;/title&gt; &lt;start-date&gt;Jul 2010&lt;/start-date&gt; &lt;end-date&gt;present&lt;/end-date&gt; &lt;ongoing&gt;true&lt;/ongoing&gt; &lt;job-description&gt; &lt;bullet-point&gt; &lt;statement&gt;Report to management regarding the finances of establishment.&lt;/statement&gt; &lt;/bullet-point&gt; &lt;bullet-point&gt; &lt;statement&gt;Prepare, examine, or analyze accounting records, financial statements, or other financial reports to assess accuracy, completeness, and conformance to reporting and procedural standards.&lt;/statement&gt; &lt;/bullet-point&gt; &lt;bullet-point&gt; &lt;statement&gt;Prepare, examine, or analyze accounting records, financial statements, or other financial reports to assess accuracy, completeness, and conformance to reporting and procedural standards.&lt;/statement&gt; &lt;/bullet-point&gt; &lt;/job-description&gt; &lt;/job-title&gt; &lt;job-title&gt; &lt;title&gt;Analyst&lt;/title&gt; &lt;start-date&gt;Jul 2001&lt;/start-date&gt; &lt;end-date&gt;Jan 2010&lt;/end-date&gt; &lt;ongoing&gt;false&lt;/ongoing&gt; &lt;job-description&gt; &lt;bullet-point&gt; &lt;statement&gt;Study and rehearse roles from scripts in order to interpret, learn and memorize lines, stunts, and cues as directed.&lt;/statement&gt; &lt;/bullet-point&gt; &lt;bullet-point&gt; &lt;statement&gt;Work closely with directors, other actors, and playwrights to find the interpretation most suited to the role.&lt;/statement&gt; &lt;/bullet-point&gt; &lt;/job-description&gt; &lt;/job-title&gt; &lt;/company&gt; &lt;/professional-experience-section&gt; &lt;education-section&gt; &lt;section-name&gt;EDUCATION&lt;/section-name&gt; &lt;enabled&gt;true&lt;/enabled&gt; &lt;institution&gt; &lt;name&gt;Allston Community College&lt;/name&gt; &lt;city&gt;Akron&lt;/city&gt; &lt;state&gt;MA&lt;/state&gt; &lt;country&gt;United States&lt;/country&gt; &lt;degree&gt;Bachelor of Art in Marketing Candidate&lt;/degree&gt; &lt;end-date&gt;Jan 2020&lt;/end-date&gt; &lt;ongoing&gt;true&lt;/ongoing&gt; &lt;expected-completion-date&gt;Jan 2020&lt;/expected-completion-date&gt; &lt;completed&gt;&lt;/completed&gt; &lt;bullet-point&gt; &lt;statement&gt;detail of what i did at the allston community college&lt;/statement&gt; &lt;/bullet-point&gt; &lt;/institution&gt; &lt;institution&gt; &lt;name&gt;Boston College&lt;/name&gt; &lt;city&gt;Boston&lt;/city&gt; &lt;state&gt;MA&lt;/state&gt; &lt;country&gt;United States&lt;/country&gt; &lt;degree&gt;Bachelor of Science in Information Systems&lt;/degree&gt; &lt;end-date&gt;Jul 1990&lt;/end-date&gt; &lt;ongoing&gt;false&lt;/ongoing&gt; &lt;expected-completion-date&gt;&lt;/expected-completion-date&gt; &lt;completed&gt;true&lt;/completed&gt; &lt;bullet-point&gt; &lt;statement&gt;Lorem Ipsum&lt;/statement&gt; &lt;/bullet-point&gt; &lt;/institution&gt; &lt;institution&gt; &lt;name&gt;Testing&lt;/name&gt; &lt;city&gt;Testing&lt;/city&gt; &lt;state&gt;PA&lt;/state&gt; &lt;country&gt;United States&lt;/country&gt; &lt;degree&gt;Completed coursework towards Bachelor of Art in Marketing&lt;/degree&gt; &lt;end-date&gt;Mar 1963&lt;/end-date&gt; &lt;ongoing&gt;false&lt;/ongoing&gt; &lt;expected-completion-date&gt;&lt;/expected-completion-date&gt; &lt;completed&gt;false&lt;/completed&gt; &lt;bullet-point&gt; &lt;statement&gt;Lorem Ipsum&lt;/statement&gt; &lt;/bullet-point&gt; &lt;/institution&gt; &lt;institution&gt; &lt;name&gt;Testing&lt;/name&gt; &lt;city&gt;Testing&lt;/city&gt; &lt;state&gt;PA&lt;/state&gt; &lt;country&gt;United States&lt;/country&gt; &lt;degree&gt;Completed coursework towards Bachelor of Art in Marketing&lt;/degree&gt; &lt;end-date&gt;Mar 1963&lt;/end-date&gt; &lt;ongoing&gt;false&lt;/ongoing&gt; &lt;expected-completion-date&gt;&lt;/expected-completion-date&gt; &lt;completed&gt;false&lt;/completed&gt; &lt;bullet-point&gt; &lt;statement&gt;Lorem Ipsum&lt;/statement&gt; &lt;/bullet-point&gt; &lt;/institution&gt; &lt;/education-section&gt; &lt;additional-skills-section&gt; &lt;section-name&gt;ADDITIONAL SKILLS&lt;/section-name&gt; &lt;enabled&gt;true&lt;/enabled&gt; &lt;layout&gt;1 Column&lt;/layout&gt; &lt;bullet-point&gt; &lt;statement&gt;Additional Skills 1&lt;/statement&gt; &lt;/bullet-point&gt; &lt;/additional-skills-section&gt; &lt;custom-section&gt; &lt;section-name&gt;PUBLICATIONS&lt;/section-name&gt; &lt;layout&gt;2&lt;/layout&gt; &lt;bullet-point&gt; &lt;statement&gt;test&lt;/statement&gt; &lt;/bullet-point&gt; &lt;/custom-section&gt; </code></pre> <p></p> <p>This xml file is transformed by the following xsl:</p> <pre><code>&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; &lt;xsl:template match="/resume"&gt; &lt;xsl:value-of select="/resume/contact-information/full-name"/&gt; &lt;xsl:value-of select="/resume/contact-information/address_line_1"/&gt; &lt;xsl:value-of select="/resume/contact-information/address_line_2"/&gt; &lt;xsl:value-of select="/resume/contact-information/city"/&gt; &lt;xsl:value-of select="/resume/contact-information/state"/&gt; &lt;xsl:value-of select="/resume/contact-information/country"/&gt; &lt;xsl:value-of select="/resume/contact-information/phone"/&gt; &lt;xsl:for-each select="/resume/professional-experience-section/company"&gt; &lt;!--for company name--&gt; &lt;xsl:value-of select="name"/&gt; &lt;xsl:value-of select="city"/&gt;, &lt;xsl:value-of select="state"/&gt; &lt;xsl:value-of select="country"/&gt; &lt;!--loop into job title--&gt; &lt;xsl:for-each select="job-title"&gt; &lt;!--for job title--&gt; &lt;xsl:value-of select="title"/&gt; &lt;!--for job start date and job end date--&gt; &lt;xsl:value-of select="start-date"/&gt; – &lt;xsl:value-of select="end-date"/&gt; &lt;!--Loop into job description--&gt; &lt;xsl:for-each select="job-description"&gt; &lt;!--loop into each bullet point--&gt; &lt;xsl:for-each select="bullet-point"&gt; &lt;xsl:value-of select="statement"/&gt; &lt;/xsl:for-each&gt; &lt;/xsl:for-each&gt; &lt;/xsl:for-each&gt; &lt;/xsl:for-each&gt; &lt;!--education section--&gt; &lt;!--for education section's section name--&gt; &lt;xsl:value-of select="/resume/education-section/section-name"/&gt; &lt;!--loop into each institution name--&gt; &lt;xsl:for-each select="/resume/education-section/institution"&gt; &lt;!--for institution name --&gt; &lt;xsl:value-of select="name"/&gt; &lt;!--for institution city and state--&gt; &lt;xsl:value-of select="city"/&gt;, &lt;xsl:value-of select="state"/&gt; &lt;xsl:value-of select="country"/&gt; &lt;!--for degree of a particular institution--&gt; &lt;xsl:value-of select="degree"/&gt;-&lt;xsl:value-of select="expected-completion-date"/&gt; &lt;xsl:for-each select="bullet-point"&gt; &lt;xsl:for-each select="statement" &gt; &lt;xsl:value-of select="."/&gt; &lt;/xsl:for-each&gt; &lt;/xsl:for-each&gt; &lt;/xsl:for-each&gt; &lt;/xsl:template&gt; </code></pre> <p></p> <p>The professional section will always be rendered ahead of the educational section. I want to develop a mechanism that sections can be changed in xsl for instance if i want the information of educational section to be shown first instead of professional by using some kind of input and i don't have to do it manually. How shall i change the xml or xsl file so that i can change the order of each section at runtime in the xsl listed above?</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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