Skip to content

Commit

Permalink
Fixed a bug in the generated SVG code.
Browse files Browse the repository at this point in the history
Styled plain text in the SVG code.
Added alerts to unimplemented menu items.
  • Loading branch information
Roenbaeck committed Sep 14, 2010
1 parent 6270e92 commit 9ecc196
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
8 changes: 6 additions & 2 deletions index.html
Expand Up @@ -216,6 +216,10 @@
#content .tabs {
visibility: hidden;
}
#content .texts {
color: #f55;
font-weight: bold;
}
#content .brackets {
color: white;
}
Expand Down Expand Up @@ -3266,8 +3270,8 @@ <h1>Your browser does not support HTML5 canvas!</h1>
<li>File
<ul class="submenu">
<li onclick="Model.setupMinimal()">Empty model...</li>
<li>Load model from cloud...</li>
<li>Save model to cloud...</li>
<li onclick="alert('Coming soon')">Load model from cloud...</li>
<li onclick="alert('Coming soon')">Save model to cloud...</li>
<li>Load model from local file...<input class="invisible" type="file" onchange="FileHandler.handleFiles(this.files); FileHandler.replaceInput(this.parentNode, this);"/></li>
<li onclick="ActionsMenu.loadFromURL('example.xml')">Load example model</li>
</ul>
Expand Down
17 changes: 16 additions & 1 deletion xml2html.xsl
Expand Up @@ -26,6 +26,21 @@
<xsl:text>"</xsl:text>
</span>
</xsl:for-each>
<xsl:if test=".. and not(parent::*) and namespace-uri()">
<xsl:text> </xsl:text>
<span class="attributes">
<xsl:text>xmlns</xsl:text>
</span>
<span class="brackets">
<xsl:text>="</xsl:text>
</span>
<span class="values">
<xsl:value-of select="namespace-uri()"/>
</span>
<span class="brackets">
<xsl:text>"</xsl:text>
</span>
</xsl:if>
<xsl:choose>
<xsl:when test="normalize-space(text())">
<span class="brackets">
Expand All @@ -47,7 +62,7 @@
<xsl:value-of select="local-name(.)"/>
</span>
<span class="brackets">
<xsl:text>/&gt;</xsl:text><br/>
<xsl:text>&gt;</xsl:text><br/>
</span>
</xsl:when>
<xsl:when test="node()">
Expand Down

0 comments on commit 9ecc196

Please sign in to comment.