Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ncphp
/
mcClasses
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bc356bfb
authored
Mar 31, 2012
by
meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mode=dev hinzugefügt
1 parent
18ce4b7f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
24 deletions
mcPUIX/mcPUIX.xsl
mcPUIX/mcPUIX.xsl
View file @
bc356bf
...
...
@@ -10,11 +10,11 @@
xmlns:php=
"http://php.net/xsl"
>
<xsl:template
match=
"/"
>
<xsl:apply-templates
select=
"DBUIElement"
/>
<xsl:apply-templates
select=
"PUIXArray"
/>
<xsl:apply-templates
select=
"DBUIElement"
mode=
"dev"
/>
<xsl:apply-templates
select=
"PUIXArray"
mode=
"dev"
/>
</xsl:template>
<xsl:template
match=
"mcPUIX"
>
<xsl:template
match=
"mcPUIX"
mode=
"dev"
>
<xsl:param
name=
"param_inputBE"
>
0
</xsl:param>
<h2><xsl:value-of
select=
"@label"
/></h2>
<!-- <b><xsl:value-of select="$param_inputBE" /></b>-->
...
...
@@ -22,24 +22,26 @@
<!-- <tr><td>show</td></tr>-->
<tr>
<td>
<xsl:apply-templates
select=
"DOMmcPUIX_show/PUIXArray"
>
<xsl:apply-templates
select=
"DOMmcPUIX_show/PUIXArray"
mode=
"dev"
>
<xsl:with-param
name=
"param_inputBE"
><xsl:value-of
select=
"$param_inputBE"
/></xsl:with-param>
</xsl:apply-templates>
<br/>
</td>
</tr>
<!-- <tr><td>edit</td></tr>-->
<tr>
<td>
<xsl:apply-templates
select=
"DOMmcPUIX_edit/PUIXArray"
>
<xsl:apply-templates
select=
"DOMmcPUIX_edit/PUIXArray"
mode=
"dev"
>
<xsl:with-param
name=
"param_inputBE"
><xsl:value-of
select=
"$param_inputBE"
/></xsl:with-param>
</xsl:apply-templates>
<br/>
</td>
</tr>
</table>
</xsl:template>
<xsl:template
match=
"PUIXArray"
>
<xsl:template
match=
"PUIXArray"
mode=
"dev"
>
<xsl:param
name=
"param_inputBE"
>
0
</xsl:param>
<xsl:param
name=
"param_noform"
>
0
</xsl:param>
...
...
@@ -49,7 +51,7 @@
<div
class=
"row"
><span
class=
"element"
><xsl:value-of
select=
"@label"
/>
count(
<xsl:value-of
select=
"@count"
/>
)
</span>
</div>
<xsl:for-each
select=
"DBUIRow"
>
<div
class=
"row"
><span
class=
"element"
><xsl:value-of
select=
"@label"
/>
i(
<xsl:value-of
select=
"@i"
/>
)
</span>
</div>
<xsl:apply-templates
select=
"DBUIElement"
>
<xsl:apply-templates
select=
"DBUIElement"
mode=
"dev"
>
<xsl:with-param
name=
"param_inputBE"
><xsl:value-of
select=
"$param_inputBE"
/></xsl:with-param>
</xsl:apply-templates>
</xsl:for-each>
...
...
@@ -83,14 +85,14 @@
<xsl:when
test=
"@show=1"
>
<td>
<!-- <xsl:value-of select="position()" />-->
<xsl:apply-templates
select=
"."
>
<xsl:apply-templates
select=
"."
mode=
"dev"
>
<xsl:with-param
name=
"param_inputBE"
><xsl:value-of
select=
"$param_inputBE"
/></xsl:with-param>
<xsl:with-param
name=
"param_withoutLabel"
>
1
</xsl:with-param>
</xsl:apply-templates>
</td>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates
select=
"."
>
<xsl:apply-templates
select=
"."
mode=
"dev"
>
<xsl:with-param
name=
"param_inputBE"
><xsl:value-of
select=
"$param_inputBE"
/></xsl:with-param>
<xsl:with-param
name=
"param_withoutLabel"
>
1
</xsl:with-param>
</xsl:apply-templates>
...
...
@@ -121,14 +123,14 @@
<xsl:when
test=
"@show=1"
>
<td>
<!-- <xsl:value-of select="position()" />-->
<xsl:apply-templates
select=
"."
>
<xsl:apply-templates
select=
"."
mode=
"dev"
>
<xsl:with-param
name=
"param_inputBE"
><xsl:value-of
select=
"$param_inputBE"
/></xsl:with-param>
<xsl:with-param
name=
"param_withoutLabel"
>
1
</xsl:with-param>
</xsl:apply-templates>
</td>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates
select=
"."
>
<xsl:apply-templates
select=
"."
mode=
"dev"
>
<xsl:with-param
name=
"param_inputBE"
><xsl:value-of
select=
"$param_inputBE"
/></xsl:with-param>
<xsl:with-param
name=
"param_withoutLabel"
>
1
</xsl:with-param>
</xsl:apply-templates>
...
...
@@ -146,7 +148,7 @@
</xsl:choose>
</xsl:template>
<xsl:template
match=
"DBUIElement"
>
<xsl:template
match=
"DBUIElement"
mode=
"dev"
>
<xsl:param
name=
"param_url"
>
?
</xsl:param>
<xsl:param
name=
"param_only_objvar"
>
0
</xsl:param>
<xsl:param
name=
"param_noform"
>
0
</xsl:param>
...
...
@@ -186,7 +188,7 @@
</xsl:when>
<xsl:when
test=
"@type='PUIXArray'"
>
es wird nicht formpath übernommen!!!
<xsl:apply-templates
select=
"PUIXArray"
>
<xsl:apply-templates
select=
"PUIXArray"
mode=
"dev"
>
<xsl:with-param
name=
"param_inputBE"
><xsl:value-of
select=
"$param_inputBE"
/></xsl:with-param>
</xsl:apply-templates>
</xsl:when>
...
...
@@ -277,7 +279,7 @@
<a
href=
"{$param_url}"
><xsl:value-of
select=
"@value"
/><xsl:text
disable-output-escaping=
"no"
>
 
</xsl:text></a>
</xsl:when>
<xsl:when
test=
"@type='PUIXArray'"
>
<xsl:apply-templates
select=
"PUIXArray"
>
<xsl:apply-templates
select=
"PUIXArray"
mode=
"dev"
>
<xsl:with-param
name=
"param_inputBE"
><xsl:value-of
select=
"$param_inputBE"
/></xsl:with-param>
</xsl:apply-templates>
</xsl:when>
...
...
@@ -312,14 +314,4 @@
</span>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment