Skip to content
Browse files

updated the example xsl and xml

  • Loading branch information...
1 parent 64ddc78 commit 201abac5d8d73103ef9e093e803a7a8916bc1d88 @agcolom committed
Showing with 34 additions and 19 deletions.
  1. +18 −4 entries/dialog.xml
  2. +16 −15 entries2html.xsl
View
22 entries/dialog.xml
@@ -27,7 +27,7 @@
</events>
<methods>
<method name="close">
- <desc>Close the dialog.</desc>
+ <desc>Closes the dialog.</desc>
</method>
</methods>
<theming>
@@ -43,9 +43,23 @@
<example>
<desc>A basic example of opening a page as a dialog by adding <code>data-rel="dialog"</code> to the anchor tag.</desc>
<code><![CDATA[]]></code>
- <html><![CDATA[<div data-role="content">
-<a href="foo.html" data-rel="dialog">Open dialog</a>
-</div>]]></html>
+ <html><![CDATA[ <div data-role="header">
+ <h2>Dialog Example 1</h2>
+ </div>
+ <div data-role="content">
+ <a href="#dialogPage" data-rel="dialog">Open dialog</a>
+ </div>
+ <div data-role="footer">
+ <h2></h2>
+ </div>
+ </div>
+ <div data-role="page" id="dialogPage">
+ <div data-role="header">
+ <h2>Dialog</h2>
+ </div>
+ <div data-role="content">
+ <p>I am a dialog</p>
+ </div>]]></html>
</example>
<category slug="widgets"/>
</entry>
View
31 entries2html.xsl
@@ -189,22 +189,23 @@
</span>
</h4>
<pre>
- <code data-linenum="true"><xsl:choose><xsl:when test="html"><xsl:attribute name="class">example demo-code</xsl:attribute></xsl:when><xsl:otherwise><xsl:attribute name="class">example</xsl:attribute></xsl:otherwise></xsl:choose>&lt;!doctype html&gt;
+ <code data-linenum="true"><xsl:choose><xsl:when test="html"><xsl:attribute name="class">example demo-code</xsl:attribute></xsl:when><xsl:otherwise><xsl:attribute name="class">example</xsl:attribute></xsl:otherwise></xsl:choose>
+&lt;!DOCTYPE html&gt;
&lt;html&gt;
-&lt;head&gt;
-&lt;meta charset="utf-8"&gt;
-&lt;title&gt;<xsl:value-of select="desc"/>&lt;/title&gt;
-&lt;link rel="stylesheet" href="jquery-mobile.css"&gt;<xsl:if test="css">
-&lt;style&gt;<xsl:copy-of select="css/text()"/> &lt;/style&gt;</xsl:if>
-&lt;script src="jquery.js"&gt;&lt;/script&gt;
-&lt;script src="jquery-mobile.js"&gt;&lt;/script&gt;
-&lt;/head&gt;
-&lt;body&gt;
-&lt;div data-role="page"&gt;
-<xsl:copy-of select="html/text()"/>
-&lt;/div&gt;
-&lt;script&gt;<xsl:copy-of select="code/text()"/>&lt;/script&gt;
-&lt;/body&gt;
+ &lt;head&gt;
+ &lt;title&gt;<xsl:value-of select="desc"/>&lt;/title&gt;
+ &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
+ &lt;link rel="stylesheet" href="jquery-mobile.css"&gt;<xsl:if test="css">
+ &lt;style&gt;<xsl:copy-of select="css/text()"/> &lt;/style&gt;</xsl:if>
+ &lt;script src="jquery.js"&gt;&lt;/script&gt;
+ &lt;script src="jquery-mobile.js"&gt;&lt;/script&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+ &lt;div data-role="page"&gt;
+ <xsl:copy-of select="html/text()"/>
+ &lt;/div&gt;
+ &lt;script&gt;<xsl:copy-of select="code/text()"/>&lt;/script&gt;
+ &lt;/body&gt;
&lt;/html&gt;
</code>
</pre>

0 comments on commit 201abac

Please sign in to comment.
Something went wrong with that request. Please try again.