Hello,
I'm looking to use XML and XSLT for templates in a system I'm writing,
however I'm not really sure which parser is the "best". Basically,
which library has the most features, and which is the most supported?
A guide I saw mentioned importing xml.xslt, however it appears the xml
module/package contains pretty much nothing - xml.xslt outputs an
exception, No module named xslt.
Help? 2 2129
veracon wrote: I'm looking to use XML and XSLT for templates in a system I'm writing, however I'm not really sure which parser is the "best". Basically, which library has the most features, and which is the most supported?
I use (my own) libxml2dom [1] and XSLTools [2] to respectively parse
XML documents and perform XSL transformations on those documents, both
solutions employing the widely deployed libxml2 [3] and libxslt [4]
libraries. Alternatively, lxml [5] provides parsing and transformation
APIs based on the same underlying technologies.
A guide I saw mentioned importing xml.xslt, however it appears the xml module/package contains pretty much nothing - xml.xslt outputs an exception, No module named xslt.
You could inquire on the XML-SIG mailing list [6] about the status of
XSLT in PyXML or in 4Suite, one or both of which being the origin of
the xml.xslt package.
Paul
[1] http://www.python.org/pypi/libxml2dom
[2] http://www.python.org/pypi/XSLTools
[3] http://www.xmlsoft.org/
[4] http://xmlsoft.org/XSLT/
[5] http://codespeak.net/lxml/
[6] http://mail.python.org/mailman/listinfo/xml-sig/
veracon wrote: I'm looking to use XML and XSLT for templates in a system I'm writing, however I'm not really sure which parser is the "best". Basically, which library has the most features, and which is the most supported?
lxml arguably has the most features by now, as it is based on libxml2 and
libxslt (libexslt support is in SVN) and wraps most of their features into
easy-to-use Python APIs.
At least lxml's API is also arguably the most supported as it mostly
compatible to ElementTree (which made it into Python 2.5). http://codespeak.net/lxml
Beware though, I'm somewhat biased as I'm one of the authors.
Stefan This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Miguel J. Jiménez |
last post by:
Hi, I'm using OpenCMS and XML/XSLT to produce pages... The structure
OpenCMS use for internal pages is something like this:
<]>
The desired effect I want to get is a page with "A title" in bold
letters, so I use the following XSL:
<xsl:copy-of select="/root/title"/>
|
by: dev |
last post by:
Hey all,
i am a newbie with xsl&xml parsing
i have a xml doc and i try to make axsl and parse it to webbrowser..
how must i do that?
in php just include xml file or must i parse it to a XSLENGINE() object?
|
by: Jens Mueller |
last post by:
Hi there,
this is a Java-XML Question, so I am not sure whether this is the
right place, haven't found anything better ....
I try to convert a Java object to XML via SAX and let the FOP
Transformer convert that via XSLT to valid XSL-FO. So I define a
SAXReader which fires the SAX Events for the Java Object. This works
fine and the...
|
by: Alex |
last post by:
Hello,
I don't have sufficient experience with XSLT, and would really
appreciate somebody's help in me giving ideas on solving a problem I
have. Let's consider the following XML file:
<RootNode>
<RootNode:SubNode1>
<RootNode:SubNode1:SubNode1>...</RootNode:SubNode1:SunNode1>
</RootNode:SubNode1>
|
by: David Walker |
last post by:
Hi,
I have an XML file created by a third party in which an element with a
simple content model has a text value consisting of 2 parts separated by a
colon, like this
<link>machine:port</link>
Is XSLT capable of parsing the value of a <link> element, to separately
extract the portions before and after the colon?
| |
by: .:mmac:. |
last post by:
I have a bunch of files (Playlist files for media player) and I am trying to
create an automatically generated web page that includes the last 20 or 30
of these files. The files are created every week and are named XX-XX-XX.ASX
where the X's represent the date i.e. 05-22-05.asx
The files are a specific format and will always contain tags like...
|
by: Benzari.Alex |
last post by:
Hello, the majority of my sites use PHP MYSQL and XSLT for dynamic
pages and all of it works ok for English characters. The problem begins
when I try to use Romanian or Russian characters while creating the XML
string.
What I used to do is:
1) Query the MYSQL database that is UTF-8 (the conection is also set by
a query to UTF-8)
2) Create...
|
by: qbp90x5lb |
last post by:
I'm using an XSLT transform to output the element value contents from a simple XML file into a new .TXT file. Everything works fine except for certain XML files, when calling msxsl with the .xslt, I get the following error:
Code: 0xc00ce504
File: ......
Line: ...
Column: ...
A name was started with an invalid character.
The...
|
by: doby48 |
last post by:
I have an html document and an XSLT currently. The XML that I need to parse is on a different remote server. Now, the XSLT works without issue as does the HTML document with XMLDOM if the XML file is hosted on the same server, however, when I try to call a remote file it doesnt work. Here is my HTML code with JS:
<head>
<script>
function...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |