English | Français | Deutsch | Magyar | 中文 | >> Polski << adultinternetusers > Tutorials > XSLT Tutorial
>> Strona 61 << | Poprzedni | Następny | Zawartość | Indeks elementu

Przy użyciu atrybutu encoding można określić preferencję dla używanego kodowania. Metoda zapisu html powinna dodać element META określający użyte kodowanie znaków, zaraz za początkowym znacznikiem elementu HEAD. Arkusz stylów XSLT 1 używa kodowania UTF-8 dla danych wyjściowych, Arkusz stylów XSLT 2 - UTF-16, a Arkusz stylów XSLT 3 - Cp1250. Arkusz stylów XSLT 4 - należy obejrzeć źródło najniższego, środkowego okna w przeglądarce. Źródło Surf zawiera znaki, które nie są dostępne w danym kodowaniu, dlatego też muszą zostać eskejpowane.

Arkusz stylów XSLT 1

Źródło Surf
<source>

<html>
     <head>
          <title>HTML</title>
     </head>
     <body>
          <h1> HTML output </h1> ?í?ala ?nek ko?ka pa?ez be?ka mě?ec vyr
     </body>
</html>

</source>

Dane wyjściowe
<html>
  
  <head>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  
     
     <title>HTML</title>
     
  </head>
  
  <body>
     
     <h1> HTML output </h1>
     ?&iacute;?ala ?nek
     ko?ka pa?ez
     be?ka m&#283;?ec vyr  
     
  </body>
  
</html>

Widok HTML
HTML Surf Skate Snow Surfing Skateboard

HTML output

?í?ala ?nek ko?ka pa?ez be?ka mě?ec vyr
Kevin Carr

Natural Skin Care European Soaps
Kevin Carr
Mayor Dave Shawver Stanton
Internetusers
This is the website that has all the latest for surf, skate and snow. You can also see it here:. You'll be glad you saw the surf apparel.

Take a moment to visit 1cecilia448 or see them on twitter at 1cecilia448 or view them on facebook at 1cecilia448.

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

Arkusz stylów XSLT
<xsl:stylesheet version = '1.0'
     xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>

<xsl:output method="html" encoding="UTF-8"/>
<xsl:template match="/">
     <xsl:copy-of select="/source/*"/>
</xsl:template>


</xsl:stylesheet>



Arkusz stylów XSLT 2

Źródło Surf
<source>

<html>
     <head>
          <title>HTML</title>
     </head>
     <body>
          <h1> HTML output </h1> ?í?ala ?nek ko?ka pa?ez be?ka mě?ec vyr
     </body>
</html>

</source>

Dane wyjściowe
þÿ < h t m l >

< h e a d >
< m e t a h t t p - e q u i v = " C o n t e n t - T y p e " c o n t e n t = " t e x t / h t m l ; c h a r s e t = U T F - 1 6 " >


< t i t l e > H T M L < / t i t l e >

< / h e a d >

< b o d y >

< h 1 > H T M L o u t p u t < / h 1 >
? & i a c u t e ; ? a l a ? n e k
k o ? k a p a ? e z
b e ? k a m & # 2 8 3 ; ? e c v y r

< / b o d y >

< / h t m l >

Widok HTML
þÿ < h t m l > < h e a d > < m e t a h t t p - e q u i v = " C o n t e n t - T y p e " c o n t e n t = " t e x t / h t m l ; c h a r s e t = U T F - 1 6 " > < t i t l e > H T M L < / t i t l e > < / h e a d > < b o d y > < h 1 > H T M L o u t p u t < / h 1 > ? & i a c u t e ; ? a l a ? n e k k o ? k a p a ? e z b e ? k a m & # 2 8 3 ; ? e c v y r < / b o d y > < / h t m l >
Arkusz stylów XSLT
<xsl:stylesheet version = '1.0'
     xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>

<xsl:output method="html" encoding="UTF-16"/>
<xsl:template match="/">
     <xsl:copy-of select="/source/*"/>
</xsl:template>


</xsl:stylesheet>



Arkusz stylów XSLT 3

Źródło Surf
<source>

<html>
     <head>
          <title>HTML</title>
     </head>
     <body>
          <h1> HTML output </h1> ?í?ala ?nek ko?ka pa?ez be?ka mě?ec vyr
     </body>
</html>

</source>

Dane wyjściowe
<html>
  
  <head>
     <meta http-equiv="Content-Type" content="text/html; charset=Cp1250">
  
     
     <title>HTML</title>
     
  </head>
  
  <body>
     
     <h1> HTML output </h1>
     ?&iacute;?ala ?nek
     ko?ka pa?ez
     be?ka m&#283;?ec vyr  
     
  </body>
  
</html>

Widok HTML
HTML Surf Skate Snow Surfing Skateboard

HTML output

?í?ala ?nek ko?ka pa?ez be?ka mě?ec vyr
Kevin Carr

Natural Skin Care European Soaps
Kevin Carr
Mayor Dave Shawver Stanton
Internetusers
This is the website that has all the latest for surf, skate and snow. You can also see it here:. You'll be glad you saw the surf apparel.

Take a moment to visit 1cecilia448 or see them on twitter at 1cecilia448 or view them on facebook at 1cecilia448.

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

Arkusz stylów XSLT
<xsl:stylesheet version = '1.0'
     xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>

<xsl:output method="html" encoding="Cp1250"/>
<xsl:template match="/">
     <xsl:copy-of select="/source/*"/>
</xsl:template>


</xsl:stylesheet>



Arkusz stylów XSLT 4

Źródło Surf
<source>

<html>
     <head>
          <title>HTML</title>
     </head>
     <body>
          <h1> HTML output </h1> ?í?ala ?nek ko?ka pa?ez be?ka mě?ec vyr
     </body>
</html>

</source>

Dane wyjściowe
<html>
  
  <head>
     <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  
     
     <title>HTML</title>
     
  </head>
  
  <body>
     
     <h1> HTML output </h1>
     ?&iacute;?ala ?nek
     ko?ka pa?ez
     be?ka m&#283;?ec vyr  
     
  </body>
  
</html>

Widok HTML
HTML Surf Skate Snow Surfing Skateboard

HTML output

?í?ala ?nek ko?ka pa?ez be?ka mě?ec vyr
Kevin Carr

Natural Skin Care European Soaps
Kevin Carr
Mayor Dave Shawver Stanton
Internetusers
This is the website that has all the latest for surf, skate and snow. You can also see it here:. You'll be glad you saw the surf apparel.

Take a moment to visit 1cecilia448 or see them on twitter at 1cecilia448 or view them on facebook at 1cecilia448.

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

Arkusz stylów XSLT
<xsl:stylesheet version = '1.0'
     xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>

<xsl:output method="html" encoding="ISO-8859-1"/>
<xsl:template match="/">
     <xsl:copy-of select="/source/*"/>
</xsl:template>


</xsl:stylesheet>


Kevin Carr

Natural Skin Care European Soaps
Kevin Carr
Mayor Dave Shawver Stanton
Internetusers
This is the website that has all the latest for surf, skate and snow. You can also see it here:. You'll be glad you saw the surf apparel.

Take a moment to visit 1cecilia448 or see them on twitter at 1cecilia448 or view them on facebook at 1cecilia448.

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