Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>For a XML document to be queryable using XQquery you do not have to define a DTD or XSD. The purpose of DTD or XSD is to define the strict structure of a XML document and to allow validation before usage.</p> <p>Modern browsers interpret XML files very nicely and show a DOM tree. If enhanced formatting of XML for browser display is necessary you have to create a XSLT transformation file and then add a directive to the original XML document pointing to the XSLT file. The browser picks that directive and uses the built-in XSLT processor to obtain the output that is then interpreted by the browser.</p> <p><strong>info.xml</strong></p> <pre><code>&lt;?xml version="1.0" encoding="iso-8859-1"?&gt; &lt;?xml-stylesheet type="text/xsl" href="info.xslt"?&gt; &lt;info&gt; &lt;appName&gt;My App&lt;/appName&gt; &lt;version&gt;1.0.129&lt;/version&gt; &lt;buildTime&gt;10-09-2008 12:44:03&lt;/buildTime&gt; &lt;/info&gt; </code></pre> <p><strong>info.xslt</strong></p> <pre><code>&lt;?xml version="1.0" encoding="iso-8859-1"?&gt; &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; &lt;xsl:template match="/"&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Application&lt;/title&gt; &lt;style type="text/css"&gt; body { font-family: Lucida Console; } #outer { text-align: left; } #name { font-weight: bold; font-size: 1.2em; } #logo { float: left; padding-right: 20px; padding-bottom: 200px; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;xsl:apply-templates select="info" /&gt; &lt;/body&gt; &lt;/html&gt; &lt;/xsl:template&gt; &lt;xsl:template match="info"&gt; &lt;img id="logo" src="image.png" /&gt; &lt;div id="outer"&gt; &lt;div id="name"&gt; &lt;xsl:value-of select="appName"/&gt; &lt;/div&gt; &lt;div id="version"&gt; &lt;xsl:value-of select="version"/&gt; &lt;/div&gt; &lt;div id="date"&gt; &lt;xsl:value-of select="buildTime"/&gt; &lt;/div&gt; &lt;/div&gt; &lt;/xsl:template&gt; &lt;/xsl:stylesheet&gt; </code></pre>
    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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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