You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xang-cvs@xml.apache.org by md...@locus.apache.org on 2000/09/13 20:41:56 UTC
cvs commit: xml-xang/java/samples/layouts editor.xsl editor_browse.xsl editor_edit.xsl
mdierken 00/09/13 11:41:56
Modified: java/samples/fs2http/layouts fs2http.xsl
java/samples/hello/layouts xap.xsl
Added: java/samples/layouts editor.xsl editor_browse.xsl
editor_edit.xsl
Removed: java/samples/fs2http editor.script.xml system.script.xml
java/samples/fs2http/layouts editor.xsl editor_browse.xsl
editor_edit.xsl
java/samples/hello editor.script.xml system.script.xml
java/samples/hello/layouts editor.xsl editor_browse.xsl
editor_edit.xsl
Log:
Fixed some bugs.
Moved some files.
Revision Changes Path
1.3 +3 -9 xml-xang/java/samples/fs2http/layouts/fs2http.xsl
Index: fs2http.xsl
===================================================================
RCS file: /home/cvs/xml-xang/java/samples/fs2http/layouts/fs2http.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- fs2http.xsl 2000/06/22 00:13:39 1.2
+++ fs2http.xsl 2000/09/13 18:41:51 1.3
@@ -65,9 +65,7 @@
</td>
<td>
<a>
- <xsl:attribute name='href'>
- <xsl:value-of select='@name' />/
- </xsl:attribute>
+ <xsl:attribute name='href'><xsl:value-of select='@name' />/</xsl:attribute>
<xsl:value-of select='@title' />
</a>
</td>
@@ -81,9 +79,7 @@
</td>
<td>
<a>
- <xsl:attribute name='href'>
- <xsl:value-of select='@uri' />
- </xsl:attribute>
+ <xsl:attribute name='href'><xsl:value-of select='@uri' /></xsl:attribute>
<xsl:value-of select='@title' />
</a>
</td>
@@ -93,9 +89,7 @@
<xsl:template match='*' mode="outer">
<a>
- <xsl:attribute name='href'>
- <xsl:value-of select='@name' />/
- </xsl:attribute>
+ <xsl:attribute name='href'><xsl:value-of select='@name' />/</xsl:attribute>
<xsl:value-of select='title' />
</a>
<br />
1.2 +1 -3 xml-xang/java/samples/hello/layouts/xap.xsl
Index: xap.xsl
===================================================================
RCS file: /home/cvs/xml-xang/java/samples/hello/layouts/xap.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- xap.xsl 2000/03/24 22:25:45 1.1
+++ xap.xsl 2000/09/13 18:41:55 1.2
@@ -27,9 +27,7 @@
<xsl:template match='*' mode="outer">
<a>
- <xsl:attribute name='href'>
- <xsl:value-of select='@name' />/
- </xsl:attribute>
+ <xsl:attribute name='href'><xsl:value-of select='@name' />/</xsl:attribute>
<xsl:value-of select='title' />
</a>
<br />
1.1 xml-xang/java/samples/layouts/editor.xsl
Index: editor.xsl
===================================================================
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
<xsl:output method="html" indent="yes"/>
<xsl:template match="*">
<FRAMESET COLS="200,*" BORDER="TRUE">
<FRAME NAME="obj_browser" src="?do:method=browse" marginwidth="1" marginheight="1" scrolling="auto" >
</FRAME>
<FRAME NAME="obj_editor" src="?do:method=edit" FRAMESPACING="1" marginwidth="2" marginheight="2" scrolling="auto">
</FRAME>
</FRAMESET>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xang/java/samples/layouts/editor_browse.xsl
Index: editor_browse.xsl
===================================================================
<?xml version="1.0" ?>
<!DOCTYPE layout [
<!ENTITY baseResourcePath "/xang/apps/" >
<!ENTITY nbsp "<![CDATA[ ]]>" >
<!ENTITY tag-start "<![CDATA[<]]>" >
<!ENTITY tag-end "<![CDATA[>]]>" >
<!ENTITY atag-start "<xsl:text disable-output-escaping='yes'><</xsl:text>" >
<!ENTITY atag-end "<xsl:text disable-output-escaping='yes'>></xsl:text>" >
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0' xml:space='false'>
<xsl:output method="html" indent="no"/>
<!-- the current 'root' -->
<xsl:template match='*' >
<HTML>
<BODY>
<a href='.'>Refresh</a>
<hr />
<xsl:apply-templates select='..' mode='parent' />
<xsl:apply-templates select='.' mode='nav'/>
<xsl:apply-templates select='*' mode='child' />
</BODY>
</HTML>
</xsl:template>
<!-- &tag-start;DIV style="position:relative;top:0;left:8; display: ;"&tag-end; -->
<xsl:template match='*' mode='parent' >
<xsl:choose>
<xsl:when test='@name'>
<xsl:apply-templates select='..' mode='parent' />
</xsl:when>
</xsl:choose>
<xsl:text disable-output-escaping='yes'>
&tag-start;DIV style="position:relative;top:0;left:8; display: ;"&tag-end;
</xsl:text>
<a target='_parent'>
<xsl:attribute name='href'>
<xsl:apply-templates select='.' mode='url'/>?do:method=editor
</xsl:attribute>
<img border='0' src="&baseResourcePath;images/folder.gif" />
<xsl:value-of select='@name' />
</a>
</xsl:template>
<xsl:template match='*' mode='nav' >
<xsl:if test='@name'>
<xsl:text disable-output-escaping='yes'>
&tag-start;DIV style="position:relative;top:0;left:8; display: ;"&tag-end;
</xsl:text>
<a target='_parent'>
<xsl:attribute name='href'>./?do:method=editor</xsl:attribute>
<img border='0' src="&baseResourcePath;images/folder.gif" />
<b><xsl:value-of select='@name' /> </b>
</a>
</xsl:if>
</xsl:template>
<xsl:template match='*' mode='child' >
<xsl:if test='@name'>
<xsl:text disable-output-escaping='yes'>
&tag-start;DIV style="position:relative;top:0;left:8; display: ;"&tag-end;
</xsl:text>
<a target='_parent'>
<xsl:attribute name='href'><xsl:value-of select='@name' />/?do:method=editor</xsl:attribute>
<img border='0' src="&baseResourcePath;images/folder.gif" />
<xsl:value-of select='@name' />
</a>
<xsl:text disable-output-escaping='yes'>
&tag-start;/DIV&tag-end;
</xsl:text>
</xsl:if>
</xsl:template>
<xsl:template match='*' mode='url'>
<xsl:choose>
<xsl:when test='@name'>
../<xsl:apply-templates select='..' mode='url'/>
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xang/java/samples/layouts/editor_edit.xsl
Index: editor_edit.xsl
===================================================================
<?xml version="1.0" ?>
<!DOCTYPE riolayout [
<!ENTITY nbsp "<![CDATA[ ]]>" >
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
<xsl:output method="html" indent="yes"/>
<xsl:template match="*" >
<HTML>
<BODY bgcolor='#f0f0f0' >
<!-- banner -->
<table width='100%' bgcolor='#a0a0ff'>
<tr ><td><font size='+2'>
<<xsl:value-of select='name()' />> : <xsl:value-of select='@name' />
</font></td>
<td align='right'>
<a href="javascript:window.location=window.location" ><b>Refresh</b></a>
</td>
</tr>
</table>
<!-- banner -->
<table width='100%' bgcolor='#c0c0ff'>
<tr ><td><font size='+1'>
Modify attributes
</font></td></tr>
</table>
<form method='post' action='?do:method=update'>
<TABLE>
<!-- Attributes -->
<xsl:for-each select="@*[((name() < 'onGet') or (name() >= 'onGeu')) and (name() < 'onPost' or name() >= 'onPosu') ]">
<tr>
<td>
<b><xsl:value-of select='name()' /></b>
</td>
<td>
<input type='text' size='50' id='text' name='text'>
<xsl:attribute name='name'>
prop_<xsl:value-of select='name()' />
</xsl:attribute>
<xsl:attribute name='value'>
<xsl:value-of select='name()'/>
</xsl:attribute>
</input>
</td>
</tr>
</xsl:for-each>
<tr align='right'>
<td>
</td>
<td>
<input name='submit' id='submit' type='submit' value=' Update '/>
</td>
</tr>
</TABLE>
</form>
<!-- banner -->
<table width='100%' bgcolor='#c0c0ff'>
<tr ><td><font size='+1'>
Add new attribute
</font></td></tr>
</table>
<form method='post' action='?do:method=addprop' id='form1' name='form1'>
<TABLE>
<tr>
<td>
<input type='text' size='10' name='name' />
</td>
<td>
<input type='text' size='40' name='value' />
<input name='submit2' id='submit2' type='submit' value=' Add '/>
</td>
</tr>
</TABLE>
</form>
<!-- banner -->
<table width='100%' bgcolor='#c0c0ff'>
<tr ><td><font size='+1'>
Modify methods
</font></td></tr>
</table>
<form method='post' action='?do:method=update' id='form1' name='dialog'>
<TABLE>
<!-- Methods -->
<xsl:for-each select="@*[(name() >= 'onGet' and name() <= 'onGeu') or (name() >= 'onPost' and name() <= 'onPosu') ]">
<tr>
<td>
<b><xsl:value-of select='name()' /></b>
</td>
<td>
<input type='text' size='50' id='text' name='text'>
<xsl:attribute name='name'>
prop_<xsl:value-of select='name()' />
</xsl:attribute>
<xsl:attribute name='value'>
<xsl:value-of select='name()'/>
</xsl:attribute>
</input>
</td>
</tr>
</xsl:for-each>
<tr align='right'>
<td>
</td>
<td>
<input name='submit' id='submit' type='submit' value=' Update '/>
</td>
</tr>
</TABLE>
</form>
<!-- banner -->
<table width='100%' bgcolor='#c0c0ff'>
<tr ><td><font size='+1'>
Add new method
</font></td></tr>
</table>
<form method='post' action='?do:method=addprop' id='form1' name='form1'>
<TABLE>
<tr>
<td>
<input type='text' size='10' name='name' />
</td>
<td>
<input type='text' size='40' name='value' />
<input name='submit2' id='submit2' type='submit' value=' Add '/>
</td>
</tr>
</TABLE>
</form>
</BODY>
</HTML>
</xsl:template>
</xsl:stylesheet>