Programação com XML e XSLT. 1 Web Control XML – System.Web.UI.WebControls.XML Use the Xml control to display the contents of an XML document without formatting.

Slides:



Advertisements
Similar presentations
3rd Annual Plex/2E Worldwide Users Conference Page based on Title Slide from Slide Layout palette. Design is cacorp Title text for Title or Divider.
Advertisements

Sofia, Bulgaria | 9-10 October Developing An Advanced ASP.NET Server Control With Rich Design-Time Goksin Bakir Yage Ltd Microsoft Regional Director, MEA.
1 Roger L. Costello 16 June 2010 XQuery
Copyright © 1999, Architag International Corporation. All rights reserved. Use without express written permission from Architag International Corporation.
Windows Workflow Foundation By Sam Nasr, MCAD October 23,
Advanced XSLT II. Iteration in XSLT we sometimes wish to apply the same transform to a set of nodes we iterate through a node set the node set is defined.
ADO.Net Modelo para acesso a dados nas aplicação.Net Componentes: DataSet.Net Data providers: Connection Command DataReader DataAdapter.
Overview Environment for Internet database connectivity
Collections Management Museums XSLT – EMus New Page View Chris Fincham Operations Manager, North America KE Software.
DOCUMENT TYPES. Digital Documents Converting documents to an electronic format will preserve those documents, but how would such a process be organized?
CG0119 Web Database Systems Parsing XML: using SimpleXML & XSLT.
1 A Method for Creating Web Sites Representation and Management of Data on the Internet.
Advanced XSL Learn how to use advanced XSLT techniques, EXSLT, and Xalan extensions to solve complicated problems Cascade Server User’s ConferenceAmy.
XML & Data Structures for the Internet Yingcai Xiao.
4/17/2015Comp Sci 3461 XML_2 Ch. 7. 4/17/2015Comp Sci 3462 XML Vocabularies  MathML  An application to parse, render, and edit MathML: Amaya 
XML: Styling and Transformation Dr Andy Evans. Multiple views Nice thing is that this data can be styled in lots of different ways using stylesheets.
Open XML SDK for Microsoft Office
XSL XSLT and XPath 11-Apr-17.
XML: Managing Data Exchange Stylesheets. Lesson Contents CSS The basic XSL file XSL transforms Templates Sort Numbering Parameters and Variables Datatypes.
SCOPE Metadata Legibilis … while the quality of content is paramount, its measure and utility can be hampered by a format that is not transparent or.
XML and XSL Transforming your XML documents with eXtensible Stylesheet Language Transformations [Optional Lecture]
Chapter 13 XML Yingcai Xiao. What is XML? What is it for? Examples How to write? How to validate? How to read? How to display? How to format? How to translate?
©Silberschatz, Korth and Sudarshan10.1Database System Concepts W3C Activities HTML: is the lingua franca for publishing on the Web XHTML: an XML application.
XSL Concepts Lecture 7. XML Display Options What can XSL Transformations do? generation of constant text suppression of content moving text (e.g., exchanging.
W3C Activities HTML: is the lingua franca for publishing on the Web XHTML: an XML application with a clean migration path from HTML 4.01 CSS: Style sheets.
XSL Transformations Transforming XML document into other (XML) documents 1XSL Transformations.
C# The new language for Updated by Pavel Ježek © University of Linz, Institute for System Software, 2004 published under the Microsoft Curriculum License.
.NET and XML (or XML in.NET) David Oguns Matt Harding.
Microsoft Share Point 2007 Lela Castaneda. Microsoft Office SharePoint Designer 2007 top 10 benefits 1)Be more productive with next-generation Microsoft.
XML Fundementals XML vs.. HTML XML vs.. HTML XML Document (elements vs. attributes) XML Document (elements vs. attributes) XML and RDBMS XML and RDBMS.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
JSP Standard Tag Library
ASP.NET INTRODUCTION INTO وزارة التربية و التعليم العالي كلية العلوم و التكنولوجيا قسم علوم الحاسوب و تكنولوجيا المعلومات اعداد الاستاذ: عبد الله محمد.
Presentation XML. NET SEMINAR By: Siddhant Ahuja (SID)
Introduction technology XSL. 04/11/2005 Script of the presentation Introduction the XSL The XSL standard Tools for edition of codes XSL Necessary resources.
XP New Perspectives on XML Tutorial 6 1 TUTORIAL 6 XSLT Tutorial – Carey ISBN
WORKING WITH XSLT AND XPATH
XP New Perspectives on XML, 2 nd Edition Tutorial 10 1 WORKING WITH THE DOCUMENT OBJECT MODEL TUTORIAL 10.
Session II Chapter 2 – Chapter 2 – XSLhttp://
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Extending System.Xml Ted Neward
Weekend MS CS Program Internet and Web Technologies COT 5930 Web Project Development - Ajax Dr. Roy Levow, Associate Chair & Professor
CITA 330 Section 6 XSLT. Transforming XML Documents to XHTML Documents XSLT is an XML dialect which is declared under namespace "
1 XMLXML and.NETNOEA / PQC 2005 (rev. FEN 2007) XML and the.NET framework Heavily inspired by: Support WebCast: Programming XML in the Microsoft.NET Framework.
XSLT Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
CIS 375—Web App Dev II XSL. 2 XSL Introduction XSL stands for _____________________________. XSL is the language used for manipulating and displaying.
Presentation Topic: XML and ASP Presented by Yanzhi Zhang.
DAT 379 XML Today And Tomorrow Mark Fussell Lead Program Manager Microsoft Corporation.
SDPL 2001Notes 7.2: Apache Cocoon1 7.2 Apache Cocoon An example of a Web publishing architecture based on XML technology An.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 24 – Case Study: ASP.NET and XML Outline 24.1 Introduction 24.2 Setup and Message Forum Documents.
ITB Web programming for E- Commerce 1 ITB6227 Programming for E-COMMERCE Lecture Presentation of XML Documents.
1 Overview of XSL. 2 Outline We will use Roger Costello’s tutorial The purpose of this presentation is  To give a quick overview of XSL  To describe.
JSTL The JavaServer Pages Standard Tag Library (JSTL) is a collection of useful JSP tags which encapsulates core functionality common to many JSP applications.
Using XML to store Descriptive Metadata Richard Murphy Rosarie O’Riordan Central Statistics Office Ireland.
Unit 3 — Advanced Internet Technologies Lesson 11 — Introduction to XSL.
 XSL – Extensible Style Sheet Language  XSLT – XSL Transformations › Used to transform XML documents to other formats,like HTML or other XML documents.
What’s New in Visual Studio NET Framework 2.0 Themes Windows Forms 2.0 ASP.NET 2.0.NET Compact Framework 2.0 Set the bar in developer productivity.
©Silberschatz, Korth and Sudarshan10.1Database System Concepts W3C - The World Wide Web Consortium W3C - The World Wide Web Consortium.
Introduction Because database applications today reside in a complicated environment, various standards have been developed for accessing database servers.
Introduction to.NET Building.NET Applications Mike Taulty Developer & Platform Group Microsoft Ltd
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
Chapter 29. Copyright 2003, Paradigm Publishing Inc. CHAPTER 29 BACKNEXTEND 29-2 LINKS TO OBJECTIVES Attach an XML Schema Attach an XML Schema Load XML.
D Copyright © 2004, Oracle. All rights reserved. Using Oracle XML Developer’s Kit.
Open XML Developer Workshop XSLT and Open XML. Open XML Developer Workshop Disclaimer The information contained in this slide deck represents the current.
XSLT, XML Schema, and XPath Matt McClelland. Introduction XML Schema ▫Defines the content and structure of XML data. XSLT ▫Used to transform XML documents.
XML Related Technologies
Displaying XML Data with XSLT
XSLT and Open XML.
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
Chapter 13 XML Yingcai Xiao.
Presentation transcript:

Programação com XML e XSLT

1 Web Control XML – System.Web.UI.WebControls.XML Use the Xml control to display the contents of an XML document without formatting or using XSL Transformations. PropertyDescription Document Sets the XML document using a System.Xml.XmlDocument object. DocumentContent Sets the XML document using a string. DocumentSource Sets the XML document using a file. TransformFormats the XML document using the specified System.Xml.Xsl.XslTransform object. System.Xml.Xsl.XslTransform TransformSourceFormats the XML document using the specified XSL Transformation style sheet file.

2 XmlDocument – XslTransform Transformação de um documento XML Display num Web XML control XmlDocument doc = new XmlDocument(); doc.Load(Server.MapPath("people.xml")); XslTransform trans = new XslTransform(); trans.Load(Server.MapPath("peopletable.xsl")); xml1.Document = doc; xml1.Transform = trans; Exemplo

3 Preencher DataSet com XML Método ReadXml XmlTextReader string pathname=Server.MapPath("produtos.xml"); XmlTextReader tr=new XmlTextReader(pathname); mydataset=new DataSet(); mydataset.ReadXml(tr); DataGrid1.DataSource=mydataset; DataGrid1.DataBind();

4 Process XML Data In-Memory Discusses the two models for processing XML data. The XmlDocument class, and its associated classes, is based on the W3C Document Object Model. The XPathDocument class is based on the XPath data model.XmlDocument XPathDocument us/library/2bcctyt8.aspx us/library/2bcctyt8.aspx us/library/534aacaa.aspx

5 Migrating from Version 1.1 of the XML Classes us/library/534aacaa.aspx

6 The XslCompiledTransform class is the new XSLT processor. It replaces the XslTransform class. The XsltSettings enumeration is used to enable optional XSLT settings such as support for embedded scripts or the XSLT document() function.XslCompiledTransform XslTransformXsltSettings Version 1.1

7 Criar XML com informação de um DataSet (1) Método WriteXml oleDbDataAdapter1.Fill(dataset); string name=tbName.Text; string path=Server.MapPath("."); string filepath=path+"\\ " + name; dataset.WriteXml(filepath); Vários overload: DataSet.WriteXml (String) DataSet.WriteXml (XmlWriter, XmlWriteMode) …

8 Criar XML com informação de um DataSet (2) Método GetXml do DataSet Class XPathNavigator Provides a cursor model for navigating and editing XML data. Class XPathDocument Provides a fast, read-only, in-memory representation of an XML document using the XPath data model. string strxml = dataset.GetXml(); StringReader str=new StringReader(strxml); XPathDocument docpath = new XPathDocument(str); XPathNavigator nav=docpath.CreateNavigator(); Xml1.XPathNavigator = nav; Xml1.DataBind();

9 Actualizar BD com documento XML – (tabela Produtos) string pathname2= Server.MapPath("produtos2.xml"); DataSet novo=new DataSet(); novo.ReadXml(pathname2); oleDbDataAdapter1.Update(novo,"Produtos");

10 Transformações XSLT Class XslCompileTransform Microsoft.NET Framework XSLT processor. This class is used to compile style sheets and execute XSLT transformations.