English
|
Français
|
Deutsch
|
>> Magyar <<
|
中文
thebigdir
>
Tutorials
>
XSLT Tutorial
Bevezetés
/
Keresés
/
home loan mortgage equity refinancing calculator lender rates
>> Oldal 1 <<
|
Előző
|
Következő
|
Tartalom
|
Elem index
Az XSL segítségével szabadon módosíthatsz bármilyen forrás fájlt. Az
XSLT stíluslap 1
és az
XSLT stíluslap 2
kül?nféle kimenetet eredményez ugyanabból a forrás fájlból.
XSLT stíluslap 1
home loan forrás
<source>
<title>XSL</title>
<author>John Smith</author>
</source>
Kimenet
<h1>XSL</h1>
<h2>John Smith</h2>
HTML nézet
XSL
John Smith
XSLT stíluslap
<
xsl:stylesheet
version
= '1.0'
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<
xsl:template
match
="/">
<
h1
>
<
xsl:value-of
select
="//title"/>
</
h1
>
<
h2
>
<
xsl:value-of
select
="//author"/>
</
h2
>
</
xsl:template
>
</
xsl:stylesheet
>
XSLT stíluslap 2
home loan forrás
<source>
<title>XSL</title>
<author>John Smith</author>
</source>
Kimenet
<h2>John Smith</h2>
<h1>XSL</h1>
HTML nézet
John Smith
XSL
XSLT stíluslap
<
xsl:stylesheet
version
= '1.0'
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<
xsl:template
match
="/">
<
h2
>
<
xsl:value-of
select
="//author"/>
</
h2
>
<
h1
>
<
xsl:value-of
select
="//title"/>
</
h1
>
</
xsl:template
>
</
xsl:stylesheet
>