Главная -> XML&... -> XSLT в примерах 
>> Страница 68 << | Назад | Вперед | Содержание | Указатель

В преобразование 3 включается преобразование 2, в которое, в свою очередь, импортируется преобразование 1.

Преобразование 1

Исходный Surf
<source>

<AAA>red</AAA>
<BBB>blue</BBB>
<CCC>purple</CCC>

</source>

Результат
<h3 style="color:red">red</h3>
blue
purple

Представление HTML

red

blue purple
XSLT stylesheet (file: id2.xsl )
<xsl:stylesheet version = '1.0'
     xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>

<xsl:template match="AAA">
     <h3 style="color:{.}">
          <xsl:value-of select="."/>
     </h3>
</xsl:template>


</xsl:stylesheet>



Преобразование 2

Исходный Surf
<source>

<AAA>red</AAA>
<BBB>blue</BBB>
<CCC>purple</CCC>

</source>

Результат
<h3 style="color:red">red</h3>

<h2 style="color:blue">blue</h2>
purple

Представление HTML

red

blue

purple
XSLT stylesheet (file: id3.xsl )
<xsl:stylesheet version = '1.0'
     xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>

<xsl:import href="id2.xsl"/>
<xsl:template match="BBB">
     <h2 style="color:{.}">
          <xsl:value-of select="."/>
     </h2>
</xsl:template>


</xsl:stylesheet>



Преобразование 3

Исходный Surf
<source>

<AAA>red</AAA>
<BBB>blue</BBB>
<CCC>purple</CCC>

</source>

Результат
<h3 style="color:red">red</h3>

<h2 style="color:blue">blue</h2>

<h1 style="color:purple">purple</h1>

Представление HTML

red

blue

purple

XSLT stylesheet (file: id4.xsl )
<xsl:stylesheet version = '1.0'
     xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>

<xsl:include href="id3.xsl"/>
<xsl:template match="CCC">
     <h1 style="color:{.}">
          <xsl:value-of select="."/>
     </h1>
</xsl:template>


</xsl:stylesheet>

Raleigh.ruCopyright © 2002

Kevin Carr in Stanton

Natural Skin Care and European Soaps
Kevin Carr
Mayor Dave Shawver Stanton
Internetusers

Dave Shawver Stanton | City Of Stanton Election 2022 Voting Information | Warren Stanton Council and Gary Taylor Stanton | Mayor Dave Shawver Stanton |



Take a moment to visit obey clothing or see them on twitter at world series baseball jerseys or view them on facebook at hawaiian luxury shoes.

Take a moment to visit Men's Clothing Product Reviews and free stock videos or see them on twitter at Men's Clothing Product Reviews and free stock videos or view them on facebook at Men's Clothing Product Reviews and free stock videos.

Don't forget to check out the following links. You'll be glad you did:

You can also get Organic Skin Care products from Bliss Bath Body and you must check out their Natural Body Lotions and bath soaps

Now if you are looking for the best deals on surf clothing from Quiksilver and Roxy then you have to check these amazing deals here:

Hey, check out this Organic Skin Care European Soaps along with Natural Lavender Body Lotion and shea butter

and we can get surf t shirts surfing shirt and And you must check out this website swim suit swimming suit and swim trunks