English
|
Français
|
Deutsch
|
>> Magyar <<
|
中文
thebigdir
>
Tutorials
>
XSLT Tutorial
Bevezetés
/
Keresés
/
home loan mortgage equity refinancing calculator lender rates
>> Oldal 13 <<
|
Előző
|
Következő
|
Tartalom
|
Elem index
Az attribútumok ugyanúgy feldolgozhatóak, mint az elemek.
XSLT stíluslap 1
home loan forrás
<source>
<employee id="js0034"> Joe Smith </employee>
</source>
Kimenet
Joe Smith
[<b>
<i>js0034</i>
</b>]
HTML nézet
Joe Smith [
js0034
]
XSLT stíluslap
<
xsl:stylesheet
version
= '1.0'
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<
xsl:template
match
="employee">
<
xsl:value-of
select
="."/>
<
xsl:text
>[</
xsl:text
>
<
xsl:apply-templates
select
="@id"/>
<
xsl:text
>]</
xsl:text
>
</
xsl:template
>
<
xsl:template
match
="@id">
<
b
>
<
i
>
<
xsl:value-of
select
="."/>
</
i
>
</
b
>
</
xsl:template
>
</
xsl:stylesheet
>