Skip to content

Commit

Permalink
[RELEASE] iText 7 Core Styled XML Parser - 7.1.3
Browse files Browse the repository at this point in the history
https://github.com/itext/i7j-styled-xml-parser/releases/tag/7.1.3

* release/7.1.3:
  [RELEASE] 7.1.3-SNAPSHOT -> 7.1.3
  Merge CssUtilsTest and CssUtilTest.
  Add util methods for parsing unicode range strings. Add a test.
  Remove collectCssDeclarations form ICssResolver interface
  Move display and inline block
  Move display and inline block
  fix findbugs errors
  Property Inheritance support
  Open QueryParser class
  Move classes and tests from html2pdf to SXP
  RND-864 add tests to improve coverage
  RND-864 fix sonarqube discovered bugs
  RND-864 add extra tests to improve coverage results
  RND-883 font resolution initial commit
  Refactor time-based system utils to better represent there purpose
  Make pdftest a test dependency rather than a compile one
  Support SVG processing in pdfHTML
  Revert "RND-864 add extra tests to improve coverage results"
  RND-864 add extra tests to improve coverage results
  Add method to ICssResolver interface. RND-928
  Port UriResolver from pdfHTML
  Move external style sheet loading from pdfHTML to styled-xml-parser RND-864
  [RELEASE] 7.1.2-SNAPSHOT -> 7.1.3-SNAPSHOT
  • Loading branch information
iText-CI committed Jul 27, 2018
2 parents 16f7194 + c515f92 commit b3a35ec
Show file tree
Hide file tree
Showing 181 changed files with 9,131 additions and 1,134 deletions.
21 changes: 13 additions & 8 deletions pom.xml
@@ -1,38 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.itextpdf</groupId>
<artifactId>root</artifactId>
<version>7.1.2</version>
<relativePath />
<version>7.1.3</version>
<relativePath/>
</parent>

<artifactId>styled-xml-parser</artifactId>

<name>iText 7 - Styled XML Parser</name>
<description>Styled XML parser is used by iText7 modules to parse HTML and XML</description>
<url>http://itextpdf.com/</url>

<properties>
<itext.version>${project.parent.version}</itext.version>
<javadoc.version>2.10.4</javadoc.version>
</properties>

<dependencies>
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>io</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>kernel</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>layout</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>pdftest</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<resources>
<resource>
Expand Down
248 changes: 0 additions & 248 deletions src/main/java/com/itextpdf/styledxmlparser/AttributeConstants.java

This file was deleted.

@@ -0,0 +1,14 @@
package com.itextpdf.styledxmlparser;

public class CommonAttributeConstants {
/** The Constant ID. */
public static final String ID = "id";
/** The Constant CLASS. */
public static final String CLASS = "class";
/** The Constant LANG. */
public static final String LANG = "lang";
/** The Constant LANG. */
public static final String STYLESHEET = "stylesheet";
/** The Constant LANG. */
public static final String REL = "rel";
}
@@ -1,25 +1,25 @@
/*
This file is part of the iText (R) project.
Copyright (c) 1998-2018 iText Group NV
CopyrigX (c) 1998-2018 iText Group NV
Authors: Bruno Lowagie, Paulo Soares, et al.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Software Foundation with the addition of the
following permission added to Section 15 as permitted in Section 7(a):
FOR ANY PART OF THE COVERED WORK IN WHICH THE COPYRIGHT IS OWNED BY
FOR ANY PART OF THE COVERED WORK IN WHICH THE COPYRIGX IS OWNED BY
ITEXT GROUP. ITEXT GROUP DISCLAIMS THE WARRANTY OF NON INFRINGEMENT
OF THIRD PARTY RIGHTS
OF THIRD PARTY RIGXS
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program; if not, see http://www.gnu.org/licenses or write to
along with this program; if not, see Xtp://www.gnu.org/licenses or write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA, 02110-1301 USA, or download the license from the following URL:
http://itextpdf.com/terms-of-use/
Xtp://itextpdf.com/terms-of-use/
The interactive user interfaces in modified source and object code versions
of this program must display Appropriate Legal Notices, as required under
Expand Down Expand Up @@ -49,26 +49,26 @@ This file is part of the iText (R) project.
import java.io.InputStream;

/**
* Interface for the HTML parsing operations that accept HTML and return a document node.
* Interface for the XML parsing operations that accept XML and return a document node.
*/
public interface IHtmlParser {
public interface IXmlParser {

/**
* Parses HTML provided as an {@code InputStream} and an encoding.
* Parses XML provided as an {@code InputStream} and an encoding.
*
* @param htmlStream the html stream
* @param XmlStream the Xml stream
* @param charset the character set. If {@code null} then parser should detect encoding from stream.
* @return a document node
* @throws IOException Signals that an I/O exception has occurred.
*/
IDocumentNode parse(InputStream htmlStream, String charset) throws IOException;
IDocumentNode parse(InputStream XmlStream, String charset) throws IOException;

/**
* Parses HTML provided as a {@code String}.
* Parses XML provided as a {@code String}.
*
* @param html the html string
* @param Xml the Xml string
* @return a document node
*/
IDocumentNode parse(String html);
IDocumentNode parse(String Xml);

}

0 comments on commit b3a35ec

Please sign in to comment.