The document discusses XSL, XSLT, XPath and how they are used together. XSL is an XML-based stylesheet language used to describe how XML documents should be displayed. It consists of three parts: XSLT for transforming XML documents, XPath for navigating XML documents, and XSL-FO for formatting XML documents. XSLT uses XPath to find information in XML documents and transform them into other XML documents. XPath allows navigation through elements and attributes in XML documents using path expressions. All major browsers support XML, XSLT and XPath.
XML Document Object Model (DOM) is a standard for accessing and navigating XML code. All structured documents have a DOM system. The DOM simply defines the objects and properties in code, so parsers can identify and understand the individual parts. The DOM presents an XML document as a tree-structure. Knowing the XML DOM is a must for anyone working with XML.
In this presentation, I am explaining about Threads, types of threads, its advantages and disadvantages, difference between Process and Threads, multithreading and its type.
"Like the ppt if you liked the ppt"
LinkedIn - https://in.linkedin.com/in/prakharmaurya
This is the twelfth set of slightly updated slides from a Perl programming course that I held some years ago.
I want to share it with everyone looking for intransitive Perl-knowledge.
A table of content for all presentations can be found at i-can.eu.
The source code for the examples and the presentations in ODP format are on https://github.com/kberov/PerlProgrammingCourse
Abstraction is a process by which concepts are derived from the usage and classification of literal ("real" or "concrete") concepts.
Abstraction is a concept that acts as a super-categorical noun for all subordinate concepts, and connects any related concepts as a group, field, or category.
XML Document Object Model (DOM) is a standard for accessing and navigating XML code. All structured documents have a DOM system. The DOM simply defines the objects and properties in code, so parsers can identify and understand the individual parts. The DOM presents an XML document as a tree-structure. Knowing the XML DOM is a must for anyone working with XML.
In this presentation, I am explaining about Threads, types of threads, its advantages and disadvantages, difference between Process and Threads, multithreading and its type.
"Like the ppt if you liked the ppt"
LinkedIn - https://in.linkedin.com/in/prakharmaurya
This is the twelfth set of slightly updated slides from a Perl programming course that I held some years ago.
I want to share it with everyone looking for intransitive Perl-knowledge.
A table of content for all presentations can be found at i-can.eu.
The source code for the examples and the presentations in ODP format are on https://github.com/kberov/PerlProgrammingCourse
Abstraction is a process by which concepts are derived from the usage and classification of literal ("real" or "concrete") concepts.
Abstraction is a concept that acts as a super-categorical noun for all subordinate concepts, and connects any related concepts as a group, field, or category.
Human Computer Interaction Chapter 2 Interaction and Interaction Design Basi...VijiPriya Jeyamani
Interaction:
Introduction
Models of interaction
Ergonomics
Interaction styles
The context of the interactions
Paradigms:
Introduction
Paradigms for interaction.
2.2 Interaction Design:
Introduction
What is design?
User focus
Scenarios
Navigation design
Screen design and layout
Interaction and prototyping
Human Computer Interaction Chapter 3 HCI in the Software Process and Design ...VijiPriya Jeyamani
HCI in the Software Process:
Introduction
The software lifecycle
Usability engineering
Interactive design and prototyping
Design rationale
3.2 Design Rules
Introduction
Principles to support usability
Standards
Guidelines
Golden rules and heuristics
HCI patterns
Human Computer Interaction Chapter 4 Implementation Support and Evaluation Te...VijiPriya Jeyamani
Implementation Support:
Introduction
Elements of windowing systems
Programming the application
User interface management systems
4.2 Evaluation Techniques
What is evaluation?
Goals of evaluation
Choosing an evaluation method
Human Computer Interaction Chapter 5 Universal Design and User Support - Dr....VijiPriya Jeyamani
Universal Design:
Introduction
Universal design principles
Multi-modal interaction
Designing for diversity
User Support:
Introduction
Requirements of user support
Approaches to user support
Adaptive help systems
Designing user support systems
Expert System Lecture Notes Chapter 1,2,3,4,5 - Dr.J.VijiPriyaVijiPriya Jeyamani
Chapter 1 Introduction to AI
Chapter 2 Introduction to Expert Systems
Chapter 3 Knowledge Representation
Chapter 4 Inference Methods and Reasoning
Chapter 5 Expert System Design and Pattern Matching
Integrative Programming Technology Chapter 5 - Dr. J. VijiPriyaVijiPriya Jeyamani
Chapter 5 in Integrative Programming Technology
Integrative Coding: Design Patterns; Interfaces; Inheritance
Miscellaneous Issues: Adopt and Adapt vs. make; Versioning and version control
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)MdTanvirMahtab2
This presentation is about the working procedure of Shahjalal Fertilizer Company Limited (SFCL). A Govt. owned Company of Bangladesh Chemical Industries Corporation under Ministry of Industries.
Hierarchical Digital Twin of a Naval Power SystemKerry Sado
A hierarchical digital twin of a Naval DC power system has been developed and experimentally verified. Similar to other state-of-the-art digital twins, this technology creates a digital replica of the physical system executed in real-time or faster, which can modify hardware controls. However, its advantage stems from distributing computational efforts by utilizing a hierarchical structure composed of lower-level digital twin blocks and a higher-level system digital twin. Each digital twin block is associated with a physical subsystem of the hardware and communicates with a singular system digital twin, which creates a system-level response. By extracting information from each level of the hierarchy, power system controls of the hardware were reconfigured autonomously. This hierarchical digital twin development offers several advantages over other digital twins, particularly in the field of naval power systems. The hierarchical structure allows for greater computational efficiency and scalability while the ability to autonomously reconfigure hardware controls offers increased flexibility and responsiveness. The hierarchical decomposition and models utilized were well aligned with the physical twin, as indicated by the maximum deviations between the developed digital twin hierarchy and the hardware.
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxR&R Consult
CFD analysis is incredibly effective at solving mysteries and improving the performance of complex systems!
Here's a great example: At a large natural gas-fired power plant, where they use waste heat to generate steam and energy, they were puzzled that their boiler wasn't producing as much steam as expected.
R&R and Tetra Engineering Group Inc. were asked to solve the issue with reduced steam production.
An inspection had shown that a significant amount of hot flue gas was bypassing the boiler tubes, where the heat was supposed to be transferred.
R&R Consult conducted a CFD analysis, which revealed that 6.3% of the flue gas was bypassing the boiler tubes without transferring heat. The analysis also showed that the flue gas was instead being directed along the sides of the boiler and between the modules that were supposed to capture the heat. This was the cause of the reduced performance.
Based on our results, Tetra Engineering installed covering plates to reduce the bypass flow. This improved the boiler's performance and increased electricity production.
It is always satisfying when we can help solve complex challenges like this. Do your systems also need a check-up or optimization? Give us a call!
Work done in cooperation with James Malloy and David Moelling from Tetra Engineering.
More examples of our work https://www.r-r-consult.dk/en/cases-en/
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdffxintegritypublishin
Advancements in technology unveil a myriad of electrical and electronic breakthroughs geared towards efficiently harnessing limited resources to meet human energy demands. The optimization of hybrid solar PV panels and pumped hydro energy supply systems plays a pivotal role in utilizing natural resources effectively. This initiative not only benefits humanity but also fosters environmental sustainability. The study investigated the design optimization of these hybrid systems, focusing on understanding solar radiation patterns, identifying geographical influences on solar radiation, formulating a mathematical model for system optimization, and determining the optimal configuration of PV panels and pumped hydro storage. Through a comparative analysis approach and eight weeks of data collection, the study addressed key research questions related to solar radiation patterns and optimal system design. The findings highlighted regions with heightened solar radiation levels, showcasing substantial potential for power generation and emphasizing the system's efficiency. Optimizing system design significantly boosted power generation, promoted renewable energy utilization, and enhanced energy storage capacity. The study underscored the benefits of optimizing hybrid solar PV panels and pumped hydro energy supply systems for sustainable energy usage. Optimizing the design of solar PV panels and pumped hydro energy supply systems as examined across diverse climatic conditions in a developing country, not only enhances power generation but also improves the integration of renewable energy sources and boosts energy storage capacities, particularly beneficial for less economically prosperous regions. Additionally, the study provides valuable insights for advancing energy research in economically viable areas. Recommendations included conducting site-specific assessments, utilizing advanced modeling tools, implementing regular maintenance protocols, and enhancing communication among system components.
Overview of the fundamental roles in Hydropower generation and the components involved in wider Electrical Engineering.
This paper presents the design and construction of hydroelectric dams from the hydrologist’s survey of the valley before construction, all aspects and involved disciplines, fluid dynamics, structural engineering, generation and mains frequency regulation to the very transmission of power through the network in the United Kingdom.
Author: Robbie Edward Sayers
Collaborators and co editors: Charlie Sims and Connor Healey.
(C) 2024 Robbie E. Sayers
Integrative Programming and Technology Chapter 4- Dr. J. VijiPriya
1. XSL , XSLT and XPATH
08/12/2015 1Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
2. XSL stands for EXtensible Stylesheet Language.
It is an XML-based Stylesheet Language.
XSL describes how the XML document should be displayed
XSL consists of three parts:
XSLT - a language for transforming XML documents
XPath - a language for navigating inXML documents
XSL-FO - a language for formatting XML documents
08/12/2015 2Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
3. XSLT stands for XSLTransformations,
XSLT transforms an XML source-tree into an XML result-tree.
XSLT transforms an XML document into another XML document,
recognized by a browser, like HTML and XHTML.
Add/remove elements and attributes to or from the output file.
Rearrange and sort elements, perform tests and make decisions about
which elements to hide and display, and a lot more.
XSLT uses XPath to find information in an XML document.
XPath is used to navigate through elements and attributes in XML
documents.
08/12/2015 3Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
4. How Does itWork?
In the transformation process, XSLT uses XPath to define parts of the
source document that should match one or more predefined
templates.
When a match is found, XSLT will transform the matching part of the
source document into the result document.
All major browsers such as Internet Explorer ,Chrome, Firefox, Safari and
Opera supports XML, XSLT, and XPath
08/12/2015 4Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
5. The XML File
<?xml version="1.0" encoding="UTF-8"?>
<catalog>
<cd>
<title>Empire Burlesque</title>
<artist>Bob Dylan</artist>
<country>USA</country>
<company>Columbia</company>
<price>10.90</price>
<year>1985</year>
</cd>
.
.
</catalog>
08/12/2015 5Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
6. XSLT <xsl:stylesheet> Element
defines that this document is an XSLT style sheet document (along with
the version number and XSLT namespace attributes).
XSLT <xsl:template> Element
An XSL style sheet consists of one or more set of rules that are called
templates.
A template contains rules to apply when a specified node is matched.
The <xsl:template> element is used to build templates.
XSLT match attribute
The match attribute is used to associate a template with an XML
element.
The match attribute can also be used to define a template for the entire
XML document.
The value of the match attribute is an XPath expression (i.e. match="/"
defines the whole document).
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
// some output
</xsl:template>
</xsl:stylesheet>08/12/2015 6Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
7. XSLT <xsl:value-of> Element
used to extract the value of an XML element and add it to the output
stream of the transformation
XSLT select attribute
contains an XPath expression.An XPath expression works like navigating
a file system; a forward slash (/) selects subdirectories.
XSLT <xsl:for-each> and <xsl:sort> Element
<xsl:for-each> element to loop through the XML elements, and display
all of the records.
The <xsl:sort> element is used to sort the output.
To sort the output, simply add an <xsl:sort> element inside the <xsl:for-
each> element in the XSL file:
<xsl:for-each select="catalog/cd">
<xsl:sort select="artist"/>
<xsl:value-of select="title"/>
<xsl:value-of select="artist"/>
</xsl:for-each>
08/12/2015 7Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
8. The XML File
<?xml version="1.0" encoding="UTF-8"?>
<catalog>
<cd>
<title>Empire Burlesque</title>
<artist>Bob Dylan</artist>
<country>USA</country>
<company>Columbia</company>
<price>10.90</price>
<year>1985</year>
</cd>
.
.
</catalog>
08/12/2015 8Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
10. XSLT <xsl:if> Element
The <xsl:if> element is used to put a conditional test against the content of
the XML file.
Syntax
<xsl:if test="expression">
...some output if the expression is true...
</xsl:if>
To add a conditional test, add the <xsl:if> element inside the <xsl:for-each>
element in the XSL file.
The value of the required test attribute contains the expression to be
evaluated.
08/12/2015 10Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
12. XSLT <xsl:choose> Element
The <xsl:choose> element is used in conjunction with <xsl:when> and
<xsl:otherwise> to express multiple conditional tests.
Syntax
<xsl:choose>
<xsl:when test="expression">
... some output ...
</xsl:when>
<xsl:otherwise>
... some output ....
</xsl:otherwise>
</xsl:choose>
To insert a multiple conditional test against the XML file, add the
<xsl:choose>, <xsl:when>, and <xsl:otherwise> elements to the XSL file:
08/12/2015 12Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
14. XSLT <xsl:apply-templates> Element
The <xsl:apply-templates> element applies a template to the current
element or it's child nodes.
If we add a select attribute to the <xsl:apply-templates> element it will
process only the child element that matches the value of the select
attribute.
We can use the select attribute to specify the order in which the child
nodes are processed.
Some time XSL Style Sheet may have multiple matches
<xsl:template match="cd">
<p>
<xsl:apply-templates select="title"/>
<xsl:apply-templates select="artist"/>
</p>
</xsl:template>
08/12/2015 14Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
16. XPath is a syntax for defining parts of an XML document
XPath uses path expressions to navigate in XML documents
XPath contains a library of standard functions
XPath is also used in XSLT,XQuery, XPointer and XLink
Without XPath knowledge you will not be able to create XSLT
documents.
XPath is aW3C recommendation
08/12/2015 16Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
17. there are various types of legal XPath expressions:
Node sets-indicates what type of node you want to match
Booleans-use the built-in XPath logical operators to produce Boolean
results.
Besides Boolean values, XPath can also work with node sets.
<xsl:template match="state[position() > 3]">
<xsl:value-of select="."/>
</xsl:template>
Numbers- use numbers in expressions
<xsl:apply-templates select="state[population div area > 200]"/>
Strings-XPath functions are specially designed to work on strings
Wildcard - to select element nodes
* -Matches any element node
@*-Matches any attribute node
node() -Matches any node of any kind
08/12/2015 17Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
18. 08/12/2015 18Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
XPath Expression Result
/bookstore/book[1]
Selects the first book element that is the child of the bookstore
element
/bookstore/book[last()]
Selects the last book element that is the child of the bookstore
element
/bookstore/book[last()-1]
Selects the last but one book element that is the child of the
bookstore element
/bookstore/book[position()<3]
Selects the first two book elements that are children of the
bookstore element
//title[@lang] Selects all the title elements that have an attribute named lang
//title[@lang='eng']
Selects all the title elements that have an attribute named lang
with a value of 'eng'
/bookstore/book[price>35.00]
Selects all the book elements of the bookstore element that have a
price element with a value greater than 35.00
/bookstore/book[price>35.00]/title
Selects all the title elements of the book elements of the bookstore
element that have a price element with a value greater than 35.00
19. 08/12/2015 19Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia
Path Expression Result
//book/title | //book/price
Selects all the title AND price elements of all book
elements
//title | //price
Selects all the title AND price elements in the
document
/bookstore/book/title | //price
Selects all the title elements of the book element of the
bookstore element AND all the price elements in the
document
Path Expression Result
/bookstore/* Selects all the child nodes of the bookstore element
//* Selects all elements in the document
//title[@*] Selects all title elements which have any attribute
20. Example Result
child::book Selects all book nodes that are children of the current node
attribute::lang Selects the lang attribute of the current node
child::* Selects all element children of the current node
attribute::* Selects all attributes of the current node
child::text() Selects all text node children of the current node
child::node() Selects all children of the current node
descendant::book Selects all book descendants of the current node
ancestor::book Selects all book ancestors of the current node
ancestor-or-self::book
Selects all book ancestors of the current node - and the current as
well if it is a book node
child::*/child::price Selects all price grandchildren of the current node
08/12/2015 Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia 20
21. XPath Axes
defines a node-set relative to the current node.
XPath supports many different axes listed:
ancestor — contains the ancestors of the context node. An
ancestor node is the parent of the context node,
the parent of the parent, and so forth, back to (and
including) the root node.
ancestor-or-self — contains the context node and the ancestors
of the context node.
Attribute — contains the attributes of the context node.
Child — contains the children of the context node.
Descendant — contains the descendants of the context node. A
descendant is a child or a child of a child and so on.
descendant-or-self— contains the context node and the descendants of
the context node.
08/12/2015 Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia 21
22. XPath Axes Con…
following — contains all nodes that come after the context
node.
following-sibling — contains all the following siblings of the context
node.
namespace — the namespace nodes of the
context node.
parent — contains the parent of the context node.
preceding — contains all nodes that come before the context
node.
preceding-sibling — contains all the preceding siblings of the context
node.
self — contains the context node.
08/12/2015 Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia 22
23. Node Sets
By collecting nodes into a set, XPath lets you work with multiple nodes at
once
Node set functions:
last() — Returns the number of nodes in the node set.
position() — Returns the position of the context node in the
node set. (The first node is Node 1.)
count(node-set) — Returns the number of nodes in node-set.
id(ID) — Returns a node set that contains the element
whose ID value matches ID.
local-name(node-set) — Returns the name of the first node in node-set.
namespace-uri (node-set) — Returns the URI of the namespace of the first
node in node-set.
name(node-set) — Returns the qualified name of the first node in
node-set.
08/12/2015 Dr. J.VijiPriya,Assistant Professor, Hawassa University, Ethiopia 23