Academic Tutorials



English | French | Portugese | Dutch | Italian
Google

em linha

Home Códigos de fonte E-Livros Downloads Contatar-nos Sobre nós

HTML Tutorials
HTML Tutorial
XHTML Tutorial
CSS Tutorial
TCP/IP Tutorial
XML Tutorials
XML Tutorial
XSL Tutorial
XSLT Tutorial
DTD Tutorial
Schema Tutorial
XForms Tutorial
XSL-FO Tutorial
XML DOM Tutorial
XLink Tutorial
XQuery Tutorial
XPath Tutorial
XPointer Tutorial
RDF Tutorial
SOAP Tutorial
WSDL Tutorial
RSS Tutorial
WAP Tutorial
Web Services Tutorial
Browser Scripting
JavaScript Tutorial
VBScript Tutorial
AJAX Tutorial
DHTML Tutorial
HTML DOM Tutorial
WMLScript Tutorial
E4X Tutorial
Server Scripting
ASP Tutorial
PHP Tutorial
PERL Tutorial
SQL Tutorial
ADO Tutorial
.NET (dotnet)
Microsoft.Net
XML Web Services
ASP.Net
.Net Mobile
C# : C Sharp
ADO.NET
VB.NET
Multimedia
SVG Tutorial
Flash Tutorial
Media Tutorial
SMIL Tutorial
Web Building
Web Browsers
Web Hosting
W3C Tutorial
Web Building
Web Quality
Web Semantic
Web Careers
Java Tutorials
Java Tutorial
JSP Tutorial
Servlets Tutorial
Struts Tutorial
EJB Tutorial
JMS Tutorial
JMX Tutorial
Programming Langauges
C Tutorial
C++ Tutorial
Visual Basic Tutorial
Data Structures Using C
Soft Skills
Communication Skills
Time Management
Project Management
Team Work
Leadership Skills
Corporate Communication
Negotiation Skills


Molde de XSLT

Next Next





Molde de XSLT


Os moldes são bàsicamente as réguas que definem como uma parte particular do original da fonte XML traça sobre ao resultado que você quer. Stylesheets de XSLT que têm o número dos moldes.




<xsl: elemento do template>

Os moldes são definidos usando o <xsl: elemento do template>. O atributo do fósforo no <xsl: o template> indica que partes do original de fonte devem ser processadas com o molde particular e o índice do <xsl: o elemento do template> indica o que é feito com essa parte particular do original de fonte. Você pode usar elementos literais do resultado, <xsl: for-each> e <xsl: value-of> dentro de um molde exatamente na mesma maneira que você faz dentro de um stylesheet simplificado para gerar alguma saída.


<xsl:template
match="pattern"
mode="qname"
name="qname"
priority="number"
>
</xsl:template>
 


O xsl: o elemento do molde é usado definir um molde que possa ser aplicado a um nó para produzir uma saída desejada.

Deve haver um atributo do fósforo do nameor, ou ambos, e este determina como a régua do molde pode ser invocada. Se houver somente um atributo do fósforo, então você pode usar o xsl: elemento do aplic-molde para invocar a régua do molde definida pelo xsl: elemento do molde. Se houver somente um atributo conhecido, então você pode usar o xsl: elemento do cham-molde para invocar o molde nomeado definido pelo xsl: elemento do molde. Se ambos os atributos estiverem atuais, então você pode invocar o molde por todo o procedimento.

Pode ser possível que mais de um molde pode ser aplicado a um nó. O molde do valor da prioridade a mais elevada é escolhe sempre. Se mais de um molde apropriado tiver o mesmo valor da prioridade a mais elevada, a seguir o processador de XSLT escolhe geralmente último que aparece. Os moldes diferentes não podem ter os mesmos valores da prioridade e do nome. I que o mesmo erro dos valores então gera

O xsl: o elemento do molde é sempre uma criança do um ou outro o xsl: transformar ou xsl: elementos do stylesheet




Exemplo:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/">
<html>
<body>
Book Collection
<table border="1">
<tr bgcolor="#9acd32">
<th>Book</th>
<th>Price</th>
</tr>
<tr>
<td>.</td>
<td>.</td>
</tr>
</table>
</body>
</html>
</xsl:template></xsl:stylesheet>

Saída

Book Collection
Book Price
, ,




Next Next





Next Next

Keywordsxslt-template, xsl template, xslt template, xsl templates, xsl apply templates, xsl call template, sample xsl, xslt sample, xslt template match, xsl template match, xpath sample, xsl apply template, xslt call template, xslt apply templates, xslt templates, xslt apply template, stylesheet template, stylesheet templates, sample stylesheet, sample xsl file, sample stylesheets, xslt for each, xsl template mode, xpath sample code, xsl sample code, xslt sample code, asp net xslt, asp net template, template in xsl.


HTML Quizes
HTML Quiz
XHTML Quiz
CSS Quiz
TCP/IP Quiz
XML Quizes
XML Quiz
XSL Quiz
XSLT Quiz
DTD Quiz
Schema Quiz
XForms Quiz
XSL-FO Quiz
XML DOM Quiz
XLink Quiz
XQuery Quiz
XPath Quiz
XPointer Quiz
RDF Quiz
SOAP Quiz
WSDL Quiz
RSS Quiz
WAP Quiz
Web Services Quiz
Browser Scripting Quizes
JavaScript Quiz
VBScript Quiz
AJAX Quiz
DHTML Quiz
HTML DOM Quiz
WMLScript Quiz
E4X Quiz
Server Scripting Quizes
ASP Quiz
PHP Quiz
PERL Quiz
SQL Quiz
ADO Quiz
.NET (dotnet) Quizes
Microsoft.Net Quiz
XML Web Services Quiz
ASP.Net Quiz
.Net Mobile Quiz
C# : C Sharp Quiz
ADO.NET Quiz
VB.NET Quiz
Multimedia Quizes
SVG Quiz
Flash Quiz
Media Quiz
SMIL Quiz
Web Building  Quizes
Web Browsers Quiz
Web Hosting Quiz
W3C Quiz
Web Building Quiz
Web Quality Quiz
Web Semantic Quiz
Web Careers Quiz
Java Quizes
Java Quiz
JSP Quiz
Servlets Quiz
Struts Quiz
EJB Quiz
JMS Quiz
JMX Quiz
Programming Langauges Quizes
C Quiz
C++ Quiz
Visual Basic Quiz
Data Structures Using C Quiz
Soft Skills Quizes
Communication Skills Quiz
Time Management Quiz
Project Management Quiz
Team Work Quiz
Leadership Skills Quiz
Corporate Communication Quiz
Negotiation Skills Quiz

Privacy Policy
Copyright © 2003-2008 Vyom Technosoft Pvt. Ltd., All Rights Reserved.