Rule-based Stylesheets
 primarily consists of template rules, describing how dierent informations from the source
should be processed.
 represents the principal way that it is intended to be used.
 is not structured according to the desired output layout.
 like an inventory of components that might be encountered in the source, in arbitrary
order.
 good for sources with  exible or unpredictable structure.
 natural evolution of CSS, with reacher pattern language and actions.
 Example: scene2.xml, scene.xsl (Chapter 9).
HTML format for Scene 2 from Shakespeare’s Othello.
Pdf create fillable form - C# PDF Form Data fill-in Library: auto fill-in PDF form data in C#.net, ASP.NET, MVC, WinForms, WPF
Online C# Tutorial to Automatically Fill in Field Data to PDF
convert pdf forms to fillable; convert word to pdf fillable form online
Pdf create fillable form - VB.NET PDF Form Data fill-in library: auto fill-in PDF form data in vb.net, ASP.NET, MVC, WinForms, WPF
VB.NET PDF Form Data fill-in library: auto fill-in PDF form data in vb.net, ASP.NET, MVC, WinForms, WPF
convert pdf to form fill; pdf fillable forms
Computational Stylesheets
 for generating nodes in the result tree that do not correspond directly to nodes in the
source, e.g.
{ there is structure in the source document that is not explicit in markup.
{ complex aggregation of data.
 based heavily on functional programming paradigma
{ no side-eects, i.e. no assignment instructions
{ recursion instead of iteration
 Example: number-list.xml, number-total.xsl (Chapter 9).
totaling a list of numbers.
VB.NET Create PDF from PowerPoint Library to convert pptx, ppt to
Convert multiple pages PowerPoint to fillable and editable PDF documents. Easy to create searchable and scanned PDF files from PowerPoint.
create a fillable pdf form from a word document; convert pdf fillable form to word
VB.NET Create PDF from Word Library to convert docx, doc to PDF in
Edit Bookmark. Metadata: Edit, Delete Metadata. Form Process. Create PDF files from both DOC and DOCX formats. Convert multiple pages Word to fillable and editable
convert pdf file to fillable form; convert word doc to fillable pdf form
More XSLT Examples
 Finding the type of a node.
 Finding the namespaces of elements and attributes.
 Dierentiate with XSLT.
 Computation of n!.
 The Sieve of Erastothenes.
 XML to SVG.
VB.NET Create PDF from Excel Library to convert xlsx, xls to PDF
Link: Edit URL. Bookmark: Edit Bookmark. Metadata: Edit, Delete Metadata. Form Process. Create fillable and editable PDF documents from Excel in Visual
convert fillable pdf to html form; pdf add signature field
C# Create PDF from Excel Library to convert xlsx, xls to PDF in C#
Create fillable and editable PDF documents from Excel in both .NET WinForms and ASP.NET. Create searchable and scanned PDF files from Excel.
convert an existing form into a fillable pdf; create a fillable pdf form in word
Example: Finding the Type of a Node
<xsl:template name="node:type">
<xsl:param name="node" select="."/>
<xsl:choose>
<xsl:when test="$node/self::*">
<xsl:text> element </xsl:text>
</xsl:when>
<xsl:when test="$node/self::text()">
<xsl:text> text </xsl:text>
</xsl:when>
<xsl:when test="$node/self::comment()">
<xsl:text> comment </xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text> processing instruction </xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
C# Create PDF from PowerPoint Library to convert pptx, ppt to PDF
Convert multiple pages PowerPoint to fillable and editable PDF documents. Easy to create searchable and scanned PDF files from PowerPoint.
convert word to fillable pdf form; create a pdf with fields to fill in
C# Create PDF from Word Library to convert docx, doc to PDF in C#.
Convert multiple pages Word to fillable and editable PDF documents in both .NET WinForms and ASP.NET. Easy to create searchable and scanned PDF files from
attach image to pdf form; change font pdf fillable form
Example: Finding the Namespaces of Elements and Attributes
<xsl:template match="*" mode="namespace">
<xsl:for-each select="namespace::*">
<xsl:variable name="uri" select="."/>
<xsl:if test="namespace-uri(..) = $uri">
<p> <span style="text-width:bold;color:blue;">
<xsl:value-of select="name(..)"/>
<span/> is in namespace
<code> <a href="$uri"> <xsl:value-of select="$uri"/> </a> </code>
<xsl:if test="name()">
with prex <code> <xsl:value-of select="name()"/> </code>
</xsl:if> </p>
</xsl:if>
</xsl:for-each>
</xsl:template>
C# Create PDF Library SDK to convert PDF from other file formats
Create fillable PDF document with fields. Load PDF from existing documents and image in SQL server. Load PDF from stream programmatically.
pdf form fill; convert word document to fillable pdf form
VB.NET Create PDF Library SDK to convert PDF from other file
Create fillable PDF document with fields in Visual Basic .NET application. Load PDF from existing documents and image in SQL server.
fillable pdf forms; pdf fill form
Example: Dierentiate with XSLT (1/2)
f(x) = (1 x
3
)+(2x
2
)+(3x
1
)+(4x
0
)
f
0
(x) = (3x
2
)+(4x
1
)+ (3 x
0
)+(0x
1
)
DTD:
<!ELEMENT function-of-x (term+)>
<!ELEMENT term (coeff, x, power)>
<!ELEMENT coeff (#PCDATA)>
<!ELEMENT x EMPTY>
<!ELEMENT power (#PCDATA)>
Instance:
<function-of-x>
<term> <coeff> 1 </coeff> <x/> <power> 3 </power> </term>
<term> <coeff> 2 </coeff> <x/> <power> 2 </power> </term>
<term> <coeff> 3 </coeff> <x/> <power> 1 </power> </term>
<term> <coeff> 4 </coeff> <x/> <power> 0 </power> </term>
</function-of-x>
VB.NET Create PDF from OpenOffice to convert odt, odp files to PDF
Create PDF document from OpenOffice Text Document with embedded Export PDF document from OpenOffice Presentation. ODT, ODS, ODP forms into fillable PDF formats.
add attachment to pdf form; convert word to pdf fillable form
C# Create PDF from OpenOffice to convert odt, odp files to PDF in
Create PDF document from OpenOffice Presentation in both .NET WinForms and ASP.NET NET control to change ODT, ODS, ODP forms to fillable PDF formats in Visual
create a fillable pdf form; auto fill pdf form fields
Example: Dierentiate with XSLT (2/2)
<xsl:stylesheet version=’1.0’ xmlns:xsl=’http://.../Transform’>
<xsl:strip-space elements=’*’/>
<xsl:output method=’xml’ indent=’yes’/>
<xsl:template match=’/function-of-x’>
<xsl:element name=’function-of-x’>
<xsl:apply-templates select=’term’/>
</xsl:element>
</xsl:template>
<xsl:template match=’term’>
<term>
<coeff> <xsl:value-of select=’coeff * power’/> </coeff>
<x/>
<power> <xsl:value-of select=’power - 1’/> </power>
</term>
</xsl:template>
</xsl:stylesheet>
Example: Computation of n! Factorial
<xsl:template name="factorial">
<xsl:param name="n" select="1"/>
<xsl:variable name="sum">
<xsl:if test="$n = 1"> 1 </xsl:if>
<xsl:if test="$n != 1">
<xsl:call-template name="factorial">
<xsl:with-param name="n" select="$n - 1"/>
</xsl:call-template>
</xsl:if>
</xsl:variable>
<xsl:value-of select="$sum * $n"/>
</xsl:template>
Example: The Sieve of Erastothenes (1/2)
 Compute prime numbers
 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89,
97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181,
191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277,
281, ...
Example: The Sieve of Erastothenes (2/2)
<!-- Mark all multiples of $number in $array with ’*’ -->
<xsl:template name="mark">
<xsl:param name="array"/>
<xsl:param name="number"/>
<xsl:choose>
<xsl:when test="string-length($array) &gt; $number">
<xsl:value-of select="substring($array, 1, $number - 1)"/>
<xsl:text> * </xsl:text>
<xsl:call-template name="mark">
<xsl:with-param name="array" select="substring($array,$number+1)"/>
<xsl:with-param name="number" select="$number"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$array"/>
</xsl:otherwise>
</xsl:choose> </xsl:template>
Documents you may be interested
Documents you may be interested