xslt
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 124
mod-xslt 1.3.8
mod-xslt is an Apache module that converts XML files into HTML files using XSLT stylesheets. more>>
mod-xslt is an Apache module that converts XML files into HTML files using XSLT stylesheets. It was written to overcome most of the limits of similar modules and uses a standard API, which could easily be used for other applications or to support more servers.
It is able to parse dynamically generated documents, both in POST and GET requests, includes a fully featured language to choose the stylesheet to load from both configuration files and from .xml files, and allows stylesheets to access server variables. It supports redirects, dynamically generated stylesheets, and both Apache 1 and 2.
Enhancements:
- configure, configure.ac - updated automatically by release scripts, in order to prepare a snapshot.
<<lessIt is able to parse dynamically generated documents, both in POST and GET requests, includes a fully featured language to choose the stylesheet to load from both configuration files and from .xml files, and allows stylesheets to access server variables. It supports redirects, dynamically generated stylesheets, and both Apache 1 and 2.
Enhancements:
- configure, configure.ac - updated automatically by release scripts, in order to prepare a snapshot.
Download (1.7MB)
Added: 2005-08-23 License: GPL (GNU General Public License) Price:
1525 downloads
Libxslt 1.1.20
Libxslt is the XSLT C library developed for the Gnome project. more>>
Libxslt is the XSLT C library developed for the Gnome project. XSLT itself is a an XML language to define transformation for XML. Libxslt is based on libxml2 the XML C library developed for the Gnome project.
It also implements most of the EXSLT set of processor-portable extensions functions and some of Saxons evaluate and expressions extensions.
People can either embed the library in their application or use xsltproc the command line processing tool. This library is free software and can be reused in commercial applications
<<lessIt also implements most of the EXSLT set of processor-portable extensions functions and some of Saxons evaluate and expressions extensions.
People can either embed the library in their application or use xsltproc the command line processing tool. This library is free software and can be reused in commercial applications
Download (2.6MB)
Added: 2007-01-24 License: GPL (GNU General Public License) Price:
1007 downloads
XML::DOM::Lite::XSLT 0.15
XML::DOM::Lite::XSLT is Perl module XSLT engine for XML::DOM::Lite. more>>
[COPYRIGHT]
SYNOPSIS
use XML::DOM::Lite qw(Parser XSLT);
$parser = Parser->new( whitespace => strip );
$xsldoc = $parser->parse($xsl);
$xmldoc = $parser->parse($xml);
$output = XSLT->process($xmldoc, $xsldoc);
<<lessSYNOPSIS
use XML::DOM::Lite qw(Parser XSLT);
$parser = Parser->new( whitespace => strip );
$xsldoc = $parser->parse($xsl);
$xmldoc = $parser->parse($xml);
$output = XSLT->process($xmldoc, $xsldoc);
Download (0.031MB)
Added: 2006-11-30 License: Perl Artistic License Price:
1059 downloads
XML::XSLT::Wrapper 0.32
XML::XSLT::Wrapper is a consistent interface to XSLT processors. more>>
XML::XSLT::Wrapper is a consistent interface to XSLT processors.
SYNOPSIS
use XML::XSLT::Wrapper;
my $xslt = XML::XSLT::Wrapper->new(
ProcessorList => [libxslt, sablotron],
)
$result = $xslt->transform(
XMLFile => $xml_filename
XSLFile => $xsl_filename
#OR: XMLString => $xml_string
#OR: XSLString => $xsl_string
#OR: xml => $xml_filename_or_string,
#OR: xsl => $xsl_filename_or_string,
XSLParams => { COMEIN => knock knock,
GOAWAY => conk conk },
);
$result = $xslt->transform(
OutFile => $output_filename,
XMLFile => $xml_filename
XSLFile => $xsl_filename
XSLParams => [ COMEIN, knock knock,
GOAWAY, conk conk ],
);
# NB: The pre_parsing interface is likely to change:
%pre_parsed = $xslt->pre_parse(
XSLFile => $xsl_filename
);
$pre_parsed{$processor}{xsl} = $parsed_xsl;
foreach (@xml_files) {
$result = $xslt->transform(
XSLParsed = $parsed_xsl;
OutFile => $output_filename,
XMLFile => $_,
XSLParams => [ COMEIN, knock knock,
GOAWAY, conk conk ],
);
}
See also examples/*.pl, t/*.t and Driver/*.pm in the distribution directory.
Provides a consistent interface to various XSLT processors. Tries each of a supplied list of processors in turn until one performs a successful transform. If no list is given, tries all the processors it knows until one works. Does its best to fail gracefully whenever a processor does not work for some reason.
Can return the result of the transform as a string, or write it to a specified file.
For those processors which can accept parameters to an XSLT stylesheet, XML::XSLT::Wrapper can accept these as hash of name-value pairs, or as an array of [name, value, name, value, ...]
On completion, returns: - if it has written an output file - the result string if it has succeeded but not written an output file - undef if it has failed
Currently knows how to use XML::LibXSLT, XML::Xalan, XML::Sablotron, XML::XSLT as well as the Java processors XT and Saxon. You need to set your CLASSPATH environment variable first for the Java processors, or pass it to the transform in a JavaClassPath hash element. In a future version, there will be a parameter to turn off support for the Java processors. The XML::Sablotron Ive tested with is 0.52.
<<lessSYNOPSIS
use XML::XSLT::Wrapper;
my $xslt = XML::XSLT::Wrapper->new(
ProcessorList => [libxslt, sablotron],
)
$result = $xslt->transform(
XMLFile => $xml_filename
XSLFile => $xsl_filename
#OR: XMLString => $xml_string
#OR: XSLString => $xsl_string
#OR: xml => $xml_filename_or_string,
#OR: xsl => $xsl_filename_or_string,
XSLParams => { COMEIN => knock knock,
GOAWAY => conk conk },
);
$result = $xslt->transform(
OutFile => $output_filename,
XMLFile => $xml_filename
XSLFile => $xsl_filename
XSLParams => [ COMEIN, knock knock,
GOAWAY, conk conk ],
);
# NB: The pre_parsing interface is likely to change:
%pre_parsed = $xslt->pre_parse(
XSLFile => $xsl_filename
);
$pre_parsed{$processor}{xsl} = $parsed_xsl;
foreach (@xml_files) {
$result = $xslt->transform(
XSLParsed = $parsed_xsl;
OutFile => $output_filename,
XMLFile => $_,
XSLParams => [ COMEIN, knock knock,
GOAWAY, conk conk ],
);
}
See also examples/*.pl, t/*.t and Driver/*.pm in the distribution directory.
Provides a consistent interface to various XSLT processors. Tries each of a supplied list of processors in turn until one performs a successful transform. If no list is given, tries all the processors it knows until one works. Does its best to fail gracefully whenever a processor does not work for some reason.
Can return the result of the transform as a string, or write it to a specified file.
For those processors which can accept parameters to an XSLT stylesheet, XML::XSLT::Wrapper can accept these as hash of name-value pairs, or as an array of [name, value, name, value, ...]
On completion, returns: - if it has written an output file - the result string if it has succeeded but not written an output file - undef if it has failed
Currently knows how to use XML::LibXSLT, XML::Xalan, XML::Sablotron, XML::XSLT as well as the Java processors XT and Saxon. You need to set your CLASSPATH environment variable first for the Java processors, or pass it to the transform in a JavaClassPath hash element. In a future version, there will be a parameter to turn off support for the Java processors. The XML::Sablotron Ive tested with is 0.52.
Download (0.010MB)
Added: 2007-06-07 License: Perl Artistic License Price:
872 downloads

Rapid XSLT for linux 0.1
Provide a complete set of tools that a programmer can use for writing XSLT. more>> The project is still too early in its development life cycle to be compared to other, more mature, editors and IDEs. Nevertheless, it does provide a complete set of tools that a programmer can use for writing XSLT.
There are no plans to further develop this project.
Some of the features of this editor:
- Ctrl+Shift brings up a list of frequently typed XSLT elements with a shortcut letter that allows one to be inserted.
- Shorthand Notation supports two groups of elements that abstract nicely to programmatic constructs: xsl:call-template and xsl:with-param elements and xsl:choose, xsl:when and xsl:otherwise. They can be written using the shorthand notation as a method call and a case-default construct, respectively.
- Ctrl+Alt+arrow keys navigate between elements and attributes.
- User preferences allow inserted code to be customized.
- One or more elements can be wrapped with an inserted element.
- Multiple XSLT files can be opened and edited at once.
The download file contains help sheets to explain how to use the program.
What are its known limitations?
- The preferences window is not user friendly in that the options that should be set via radio buttons are set by typing YES or NO into text fields.
- When closing an open document, the user is prompted to save even if no changes have been made to it.
- Only one construct can be typed at a time in the shorthand notation text area. Therefore, a case/default construct may not be followed by a method call, and vice versa.<<less
Download (111KB)
Added: 2009-04-18 License: Freeware Price: Free
188 downloads
xSiteable 0.88
xSiteable project consists of all you need for Web site management and creation. more>>
xSiteable project consists of all you need for Web site management and creation.
xSiteable is a complete all-you-need package for creating sites that are fully relational, open source, fully templating-enabled, using only XML-based technologies to help you create complex sites on the fly.
It packs such features as topic maps, notation for content, and the fast Sablotron xslt parser.
Main features:
- Topic maps (model and XTM)
- Cross-platform (Windows, Linux, *BSD, Mac OS X)
- Prototyping
- Site-management
- Compiler, not dynamic resource-gulper
- Metadata support : RSS, XFTM, XTM, RDF, DC.
- Blogging / news (w/external database or XML)
- Notational content
- Dynamic designs and site-templates (skins, if you like)
- Wireframe design (IA and prototyping, print-friendly)
- Flexible ontology
- Automatic taxonomy
- Fast and easy
- Open-source and licensed under BSD
Enhancements:
- Import; XML, XTM and delimited text-files.
- Graphviz; create GraphViz maps of your site.
- Added and revised documentation.
<<lessxSiteable is a complete all-you-need package for creating sites that are fully relational, open source, fully templating-enabled, using only XML-based technologies to help you create complex sites on the fly.
It packs such features as topic maps, notation for content, and the fast Sablotron xslt parser.
Main features:
- Topic maps (model and XTM)
- Cross-platform (Windows, Linux, *BSD, Mac OS X)
- Prototyping
- Site-management
- Compiler, not dynamic resource-gulper
- Metadata support : RSS, XFTM, XTM, RDF, DC.
- Blogging / news (w/external database or XML)
- Notational content
- Dynamic designs and site-templates (skins, if you like)
- Wireframe design (IA and prototyping, print-friendly)
- Flexible ontology
- Automatic taxonomy
- Fast and easy
- Open-source and licensed under BSD
Enhancements:
- Import; XML, XTM and delimited text-files.
- Graphviz; create GraphViz maps of your site.
- Added and revised documentation.
Download (1.4MB)
Added: 2007-01-18 License: BSD License Price:
1010 downloads
Sablotron 1.0.3
Sablotron is a fast, compact and portable XML toolkit implementing XSLT 1.0, DOM Level2 and XPath 1.0. more>>
Sablotron is a fast, compact and portable XML toolkit implementing XSLT 1.0, DOM Level2 and XPath 1.0. Sablotron is an open project; other users and developers are encouraged to use it or to help us testing or improving it.
Sablotron is written in C++ and we try to keep it as portable as possible. Click here here to see Sablotron cross-reference sources. We compile Sablotron on Linux (using g++) and Windows 2000 (using MS Visual C++).
GA does not directly support other platforms but as far as we know, it runs on Solaris, FreeBSD, OpenBSD, HP-UX, Irix and all Win32 systems. It should be possible to port Sablotron on other systems as well. In the event you run any other port of Sablotron, please let us know.
<<lessSablotron is written in C++ and we try to keep it as portable as possible. Click here here to see Sablotron cross-reference sources. We compile Sablotron on Linux (using g++) and Windows 2000 (using MS Visual C++).
GA does not directly support other platforms but as far as we know, it runs on Solaris, FreeBSD, OpenBSD, HP-UX, Irix and all Win32 systems. It should be possible to port Sablotron on other systems as well. In the event you run any other port of Sablotron, please let us know.
Download (MB)
Added: 2006-10-18 License: MPL (Mozilla Public License) Price:
1175 downloads
xmlTreeNav 0.3.0
xmlTreeNav is a XML viewer with several features. more>>
xmlTreeNav is a XML viewer with several features. It can show the differences between two XML files (by using software based on the libxmldiff project).
xmlTreeNav can also perform XPath searches, "local XSLT" display, easy tree navigation, and more.
Main features:
- tree navigation
- diff XML files
- customization of the display with XSLT files (you can customize what appears on a tree line : add a label, convert ids...)
- XSLT HTML visualization (you can automatically apply a XSLT and view the result in xmlTreeNav ; if you copy/paste XML, it will be transformed)
- support for large XML files
- run both on Windows and Linux
Enhancements:
- This release lets you view, directly in xmlTreeNav, the HTML result of an XSLT conversion (you can directly copy/paste some XML in it, and view the result).
- It adds a configuration file, an XPath bar, and a few bugfixes.
<<lessxmlTreeNav can also perform XPath searches, "local XSLT" display, easy tree navigation, and more.
Main features:
- tree navigation
- diff XML files
- customization of the display with XSLT files (you can customize what appears on a tree line : add a label, convert ids...)
- XSLT HTML visualization (you can automatically apply a XSLT and view the result in xmlTreeNav ; if you copy/paste XML, it will be transformed)
- support for large XML files
- run both on Windows and Linux
Enhancements:
- This release lets you view, directly in xmlTreeNav, the HTML result of an XSLT conversion (you can directly copy/paste some XML in it, and view the result).
- It adds a configuration file, an XPath bar, and a few bugfixes.
Download (0.13MB)
Added: 2006-07-26 License: GPL (GNU General Public License) Price:
1189 downloads
svn2cl 0.9
svn2cl is an XSLT script that generates a clasic GNU-style changelog file from Subversion log messages. more>>
svn2cl is an xsl stylesheet for generating a clasic GNU-style ChangeLog from a subversion repository log. svn2cl is made from several changelog-like scripts using common xslt constructs found in different places. This is just my implementation.
I made it because it was the only thing that I missed from cvs after I converted a repository to subversion. I used cvs2cl before.
Installation:
Just unpack the tarball in some directory (e.g. /opt/svn2cl-0.3) and symlink the svn2cl.sh script in your path somewhere (e.g. ln -s /opt/svn2cl-0.3/svn2cl.sh /usr/local/bin/svn2cl).
Note: Be sure to keep the svn2cl.xsl file in the same directory as the svn2cl.sh script as the script looks for it there (symlinking is ok).
Enhancements:
- The implementation of a new option to ignore log messages that start with a specific text and change to ignore paths from outside of the directory where svn2cl is run.
<<lessI made it because it was the only thing that I missed from cvs after I converted a repository to subversion. I used cvs2cl before.
Installation:
Just unpack the tarball in some directory (e.g. /opt/svn2cl-0.3) and symlink the svn2cl.sh script in your path somewhere (e.g. ln -s /opt/svn2cl-0.3/svn2cl.sh /usr/local/bin/svn2cl).
Note: Be sure to keep the svn2cl.xsl file in the same directory as the svn2cl.sh script as the script looks for it there (symlinking is ok).
Enhancements:
- The implementation of a new option to ignore log messages that start with a specific text and change to ignore paths from outside of the directory where svn2cl is run.
Download (0.005MB)
Added: 2007-04-09 License: BSD License Price:
928 downloads
xsddoc 1.0
The xsddoc subproject is a XML Schema documentation generator for W3C XML Schemas. more>>
The xsddoc subproject is a XML Schema documentation generator for W3C XML Schemas.
The latest version of xsddoc is release 1.0 which is mainly written in XSLT. Based on the experience in developing xsddoc and the problems we had handling the highly recursive nature of XML Schema with XSLT, we decided to start a new Java-based code stream with the intention to develop an XML Schema documentation generator that fully complies with the W3C XML Schema recommendation.
This new software is now available as xnsdoc thru our partner company buldocs Ltd.
The xframe team will continue to support xsddoc, but we do not intend to develop new features. Any bug reports, patches or other contributions are welcome and will be integrated into xsddoc.
The code streams of xsddoc and xnsdoc are very different, but if there are changes to xnsdoc that are also applicapable to xsddoc, Buldocs Ltd. grants to also provide them to xsddoc.
Enhancements:
- This release contains fixes for several bugs, and is the first so called stable release. xsddoc is integrated, and is used successfully by many users.
<<lessThe latest version of xsddoc is release 1.0 which is mainly written in XSLT. Based on the experience in developing xsddoc and the problems we had handling the highly recursive nature of XML Schema with XSLT, we decided to start a new Java-based code stream with the intention to develop an XML Schema documentation generator that fully complies with the W3C XML Schema recommendation.
This new software is now available as xnsdoc thru our partner company buldocs Ltd.
The xframe team will continue to support xsddoc, but we do not intend to develop new features. Any bug reports, patches or other contributions are welcome and will be integrated into xsddoc.
The code streams of xsddoc and xnsdoc are very different, but if there are changes to xnsdoc that are also applicapable to xsddoc, Buldocs Ltd. grants to also provide them to xsddoc.
Enhancements:
- This release contains fixes for several bugs, and is the first so called stable release. xsddoc is integrated, and is used successfully by many users.
Download (4.9MB)
Added: 2005-10-19 License: LGPL (GNU Lesser General Public License) Price:
1466 downloads
XmlAutoIndex 0.03
XmlAutoIndex (xai) is a module forApache written in perl that browses your directories and outputs it into Xml. more>>
XmlAutoIndex (xai) is a module for Apache written in perl that browses your directories and outputs it into Xml.
The aim of this project is to replace mod_autoindex in Apache:
I would like to separate data from design, that is why I have made a xml output.
After that, using Xslt you can translate it into Html, Svg or Xul for example (you can make your own theme by updating xsl style sheet and with never touching the core engine).
Each plugins are indepentant and are here to generate thumbnails, previews, etc... Each previews, meta-data are cached in a cache directory to accelerate http queries. bonus: I have included in engine a handler that allows you to add comments per file, this behaviour does not require SQL server because comments are saved in files caches meta-data.
<<lessThe aim of this project is to replace mod_autoindex in Apache:
I would like to separate data from design, that is why I have made a xml output.
After that, using Xslt you can translate it into Html, Svg or Xul for example (you can make your own theme by updating xsl style sheet and with never touching the core engine).
Each plugins are indepentant and are here to generate thumbnails, previews, etc... Each previews, meta-data are cached in a cache directory to accelerate http queries. bonus: I have included in engine a handler that allows you to add comments per file, this behaviour does not require SQL server because comments are saved in files caches meta-data.
Download (1.3MB)
Added: 2006-09-06 License: GPL (GNU General Public License) Price:
1143 downloads
XView4Struts 1.4.1
XView4Struts provides a Struts framework extension that replaces JSP pages with pure HTML. more>>
XView4Struts provides a Struts framework extension that replaces JSP pages with pure HTML.
The XView4Struts project is an extension to the Jakarta Struts Framework. Its main purpose is to eliminate the need to use tag libraries and JSP pages. The view is pure HTML, and interaction between the view and the model is transparent to the developer.
This approach offers faster development, better division of work, a more pure MVC design pattern, reusable view components, and easier maintenance.
With XView4Struts the view layer is pure HTML. This has several implications. You dont need a java developer to write HTML. Many organizations have graphics experts that are more suited for that job. Many organizations prefer to create HTML mock-ups of an application to solicit client approval before they start working on the underlying logic that makes it work. Using this scenerio with the standard Struts view layer, the developer then has to spend many hours implementing jsp tags to make it work with the underlying logic. With XView4Struts the developer only needs to apply id attributes to the standard HTML tags and the framework takes care of the rest.
XView4Struts extends the Struts requestProcessor and intercepts all forwarding actions to HTML pages. The processor parses the HTML page and if it can it will process any tags implementing an id attribute. If there is no match between the id attribute and a form bean property or an error occurs, the parser simply returns control back to the processor. Since only HTML pages are parsed, XView4Struts may exist in an application that implements the standard Struts view components.
Main features:
- Faster development time. A whole layer of programming has been removed since there are no JSPs to write. No tag libraries to learn and implement.
- Easier maintenance. There is no logic in the view layer to troubleshoot and maintain.
- A truer MVC design pattern since all logic in the view layer has been removed.
- The developer has an option to use xslt to produce dynamic content. Reusable view components are easy to build using this option. XView4Struts does not use xslt to produce the entire view layer as other implementations of this type do. It is only implemented to dynamically insert content pieces into the HTML document.
- Application templates are extremely easy to implement.
- The parsing functionality is dynamic enough that the developer often has more than one option or technology to choose from to achieve the same result. They simply use what they understand best.
Enhancements:
- Enhancement - Upgraded
<<lessThe XView4Struts project is an extension to the Jakarta Struts Framework. Its main purpose is to eliminate the need to use tag libraries and JSP pages. The view is pure HTML, and interaction between the view and the model is transparent to the developer.
This approach offers faster development, better division of work, a more pure MVC design pattern, reusable view components, and easier maintenance.
With XView4Struts the view layer is pure HTML. This has several implications. You dont need a java developer to write HTML. Many organizations have graphics experts that are more suited for that job. Many organizations prefer to create HTML mock-ups of an application to solicit client approval before they start working on the underlying logic that makes it work. Using this scenerio with the standard Struts view layer, the developer then has to spend many hours implementing jsp tags to make it work with the underlying logic. With XView4Struts the developer only needs to apply id attributes to the standard HTML tags and the framework takes care of the rest.
XView4Struts extends the Struts requestProcessor and intercepts all forwarding actions to HTML pages. The processor parses the HTML page and if it can it will process any tags implementing an id attribute. If there is no match between the id attribute and a form bean property or an error occurs, the parser simply returns control back to the processor. Since only HTML pages are parsed, XView4Struts may exist in an application that implements the standard Struts view components.
Main features:
- Faster development time. A whole layer of programming has been removed since there are no JSPs to write. No tag libraries to learn and implement.
- Easier maintenance. There is no logic in the view layer to troubleshoot and maintain.
- A truer MVC design pattern since all logic in the view layer has been removed.
- The developer has an option to use xslt to produce dynamic content. Reusable view components are easy to build using this option. XView4Struts does not use xslt to produce the entire view layer as other implementations of this type do. It is only implemented to dynamically insert content pieces into the HTML document.
- Application templates are extremely easy to implement.
- The parsing functionality is dynamic enough that the developer often has more than one option or technology to choose from to achieve the same result. They simply use what they understand best.
Enhancements:
- Enhancement - Upgraded
handler to accept id value as a context relative path to an html page.
Download (0.22MB)
Added: 2007-04-04 License: The Apache License Price:
935 downloads
XML::DOM::Lite 0.10
XML::DOM::Lite is a Lite Pure Perl XML DOM Parser Kit. more>>
XML::DOM::Lite is a Lite Pure Perl XML DOM Parser Kit.
SYNOPSIS
# Parser
use XML::DOM::Lite qw(Parser :constants);
$parser = Parser->new( %options );
$doc = Parser->parse($xmlstr);
$doc = Parser->parseFile(/path/to/file.xml);
# strip whitespace (can be about 30% faster)
$doc = Parser->parse($xml, whitespace => strip);
# All Nodes
$copy = $node->cloneNode($deep);
$nodeType = $node->nodeType;
$parent = $node->parentNode;
$name = $node->nodeName;
$xmlstr = $node->xml;
$owner = $node->ownerDocument;
# Element Nodes
$first = $node->firstChild;
$last = $node->lastChild;
$tag = $node->tagName;
$prev = $node->nextSibling;
$next = $node->previousSibling;
$node->setAttribute("foo", $bar);
$foo = $node->getAttribute("foo");
foreach my $attr (@{$node->attributes}) { # attributes as nodelist
# ... do stuff
}
$node->attributes->{foo} = "bar"; # or as hashref (overload)
$liveNodeList = $node->getElementsByTagName("child"); # deep
$node->insertBefore($newchild, $refchild);
$node->replaceChild($newchild, $refchild);
# Text Nodes
$nodeValue = $node->nodeValue;
$node->nodeValue("new text value");
# Processing Instruction Nodes
# CDATA Nodes
# Comments
$data = $node->nodeValue;
# NodeList
$item = $nodeList->item(42);
$index = $nodeList->nodeIndex($node);
$nlist->insertNode($newNode, $index);
$removed = $nlist->removeNode($node);
$length = $nlist->length; # OR scalar(@$nodeList)
# NodeIterator and NodeFilter
use XML::DOM::Lite qw(NodeIterator :constants);
$niter = NodeIterator->new($rootnode, SHOW_ELEMENT, {
acceptNode => sub {
my $n = shift;
if ($n->tagName eq wantme) {
return FILTER_ACCEPT;
} elsif ($n->tagName eq skipme) {
return FILTER_SKIP;
} else {
return FILTER_REJECT;
}
}
);
while (my $n = $niter->nextNode) {
# do stuff
}
# XSLT
use XML::DOM::Lite qw(Parser XSLT);
$parser = Parser->new( whitespace => strip );
$xsldoc = $parser->parse($xsl);
$xmldoc = $parser->parse($xml);
$output = XSLT->process($xmldoc, $xsldoc);
# XPath
use XML::DOM::Lite qw(XPath);
$result = XPath->evaluate(/path/to/*[@attr="value"], $contextNode);
# Document
$rootnode = $doc->documentElement;
$nodeWithId = $doc->getElementById("my_node_id");
$textnode = $doc->createTextNode("some text string");
$element = $doc->createElement("myTagName");
$docfrag = $doc->createDocumentFragment();
$xmlstr = $doc->xml;
$nlist = $doc->selectNodes(/xpath/expression);
$node = $doc->selectSingleNode(/xpath/expression);
# Serializer
use XML::DOM::Lite qw(Serializer);
$serializer = Serializer->new;
$xmlout = $serializer->serializeToString($node);
<<lessSYNOPSIS
# Parser
use XML::DOM::Lite qw(Parser :constants);
$parser = Parser->new( %options );
$doc = Parser->parse($xmlstr);
$doc = Parser->parseFile(/path/to/file.xml);
# strip whitespace (can be about 30% faster)
$doc = Parser->parse($xml, whitespace => strip);
# All Nodes
$copy = $node->cloneNode($deep);
$nodeType = $node->nodeType;
$parent = $node->parentNode;
$name = $node->nodeName;
$xmlstr = $node->xml;
$owner = $node->ownerDocument;
# Element Nodes
$first = $node->firstChild;
$last = $node->lastChild;
$tag = $node->tagName;
$prev = $node->nextSibling;
$next = $node->previousSibling;
$node->setAttribute("foo", $bar);
$foo = $node->getAttribute("foo");
foreach my $attr (@{$node->attributes}) { # attributes as nodelist
# ... do stuff
}
$node->attributes->{foo} = "bar"; # or as hashref (overload)
$liveNodeList = $node->getElementsByTagName("child"); # deep
$node->insertBefore($newchild, $refchild);
$node->replaceChild($newchild, $refchild);
# Text Nodes
$nodeValue = $node->nodeValue;
$node->nodeValue("new text value");
# Processing Instruction Nodes
# CDATA Nodes
# Comments
$data = $node->nodeValue;
# NodeList
$item = $nodeList->item(42);
$index = $nodeList->nodeIndex($node);
$nlist->insertNode($newNode, $index);
$removed = $nlist->removeNode($node);
$length = $nlist->length; # OR scalar(@$nodeList)
# NodeIterator and NodeFilter
use XML::DOM::Lite qw(NodeIterator :constants);
$niter = NodeIterator->new($rootnode, SHOW_ELEMENT, {
acceptNode => sub {
my $n = shift;
if ($n->tagName eq wantme) {
return FILTER_ACCEPT;
} elsif ($n->tagName eq skipme) {
return FILTER_SKIP;
} else {
return FILTER_REJECT;
}
}
);
while (my $n = $niter->nextNode) {
# do stuff
}
# XSLT
use XML::DOM::Lite qw(Parser XSLT);
$parser = Parser->new( whitespace => strip );
$xsldoc = $parser->parse($xsl);
$xmldoc = $parser->parse($xml);
$output = XSLT->process($xmldoc, $xsldoc);
# XPath
use XML::DOM::Lite qw(XPath);
$result = XPath->evaluate(/path/to/*[@attr="value"], $contextNode);
# Document
$rootnode = $doc->documentElement;
$nodeWithId = $doc->getElementById("my_node_id");
$textnode = $doc->createTextNode("some text string");
$element = $doc->createElement("myTagName");
$docfrag = $doc->createDocumentFragment();
$xmlstr = $doc->xml;
$nlist = $doc->selectNodes(/xpath/expression);
$node = $doc->selectSingleNode(/xpath/expression);
# Serializer
use XML::DOM::Lite qw(Serializer);
$serializer = Serializer->new;
$xmlout = $serializer->serializeToString($node);
Download (0.030MB)
Added: 2006-07-14 License: Perl Artistic License Price:
1199 downloads
XMLPublication 0.4.1
XMLPublication project is a collection of tools to generate Web pages from desktop documents. more>>
XMLPublication project is a collection of tools to generate Web pages from desktop documents or other structured documents, such as books with paragraphs, or tabular data.
It cuts documents into Web pages, and creates customizable multi-indices.
All this is done through a repeatable process in which data is separated from presentation and user settings. It uses XML techniques, particularly XSLT and Ant.
Enhancements:
- we used
<<lessIt cuts documents into Web pages, and creates customizable multi-indices.
All this is done through a repeatable process in which data is separated from presentation and user settings. It uses XML techniques, particularly XSLT and Ant.
Enhancements:
- we used
tags, but switched to
in this version, because
as a wrapper is not valid with respect to the HTML DTD. It should pass intact through most of the HTML editors (testers wellcome !).
- I wrote a SAX filter to replace the XSLT transform that wraps paragraphs inside HTML tags; to integrate it, I used styler , a Task for Ant; it makes useful combinations of XSLT transformations and SAX filters. This should allow to treat MUCH LARGER FILES more quickly.
- test with JDK 1.4.0 , Saxon 6.5.2, and last Tidy from CVS on Linux RedHat 7.0; it should still work on Windows.
Download (1.4MB)
Added: 2006-10-04 License: GPL (GNU General Public License) Price:
1115 downloads
mod_xml 0.11
mod_xml is an XML applications development environment for Apache 2.0. more>>
mod_xml is an XML applications development environment for Apache 2.0. mod_xmls primary purpose is to provide a powerful, full-featured opensource platform for Webservices and XML applications.
Written in C (and possibly C++, depending on the XML library used) and fully integrated into Apache, it should present a leaner, meaner system and a far lower overhead than the heavyweight alternatives that have traditionally dominated this market.
It comprises three main components:
- Main Handler: SAX and DOM APIs for applications development
- Input filter: convert request data to XML, with additional options to encapsulate HTTP headers (XMTP) and CGI vars.
- XSLT output filter for dynamic publishing.
XML Platform
mod_xml requires an XML implementation, to support the required XML and XSLT technologies. The XML implementations currently provided are:
- apache, using Xerces-C and Xalan-C
- gnome, using libxml2 and libxslt
So you will need to have either Xalan/Xerces or libxml2/libxslt installed before you can build mod_xml. Applications using the SAX or DOM should use the same XML libraries that were used to build the module. Applications using only XSLT can use any XML implementation.
Other XML implementations, such as expat+sablot, may be supported as and when resources permit.
<<lessWritten in C (and possibly C++, depending on the XML library used) and fully integrated into Apache, it should present a leaner, meaner system and a far lower overhead than the heavyweight alternatives that have traditionally dominated this market.
It comprises three main components:
- Main Handler: SAX and DOM APIs for applications development
- Input filter: convert request data to XML, with additional options to encapsulate HTTP headers (XMTP) and CGI vars.
- XSLT output filter for dynamic publishing.
XML Platform
mod_xml requires an XML implementation, to support the required XML and XSLT technologies. The XML implementations currently provided are:
- apache, using Xerces-C and Xalan-C
- gnome, using libxml2 and libxslt
So you will need to have either Xalan/Xerces or libxml2/libxslt installed before you can build mod_xml. Applications using the SAX or DOM should use the same XML libraries that were used to build the module. Applications using only XSLT can use any XML implementation.
Other XML implementations, such as expat+sablot, may be supported as and when resources permit.
Download (0.030MB)
Added: 2006-04-05 License: GPL (GNU General Public License) Price:
1301 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above xslt search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed