Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6621091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:11:40+00:00 2026-05-25T21:11:40+00:00

I have XML data which I want to be able to display in a

  • 0

I have XML data which I want to be able to display in a browser through an XSL Transform, and also compile with XeLaTeX. Inside the XML file, I have set the stylesheet to be the one for the browser, and currently, to get LaTeX output I have to go into the XML file, change that, open it in a browser, copy it into a file, save the file and run XeLaTeX against it.

Instead, I would like to leave the XML file associated with the XSLT stylesheet that transforms it to XHTML, and just have a build script that would:

  1. Apply the LaTeX XSL transform file to the XML file, writing the result to a .tex file.
  2. Run XeLaTeX against it.
  3. Run XeLaTex against it again (the document requires second-pass).
  4. Clean up log files, etc., unless instructed not to do so.

I know how to do #2-#4. What is the best way to accomplish #1? For example, is there a Python3 recipe for applying an XSL transform to an XML document?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T21:11:40+00:00Added an answer on May 25, 2026 at 9:11 pm

    If your stylesheet written in the XSLT 1.0 you can use libxslt through lxml (libxml2 & libxslt python bindings). Look for lxml examples (link to google web cache, because actual page aren’t available on the http://lxml.de)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a single xml document (data.xml), which I display as HTML using an
I have some XML data which includes URIs. I want to list the URIs
I have an xml file(from federal government's data.gov) which I'm trying to read with
I have an xml column which contain data like this: <AuthorList CompleteYN=Y> <Author ValidYN=Y>
I have some XML which contains records and sub records, like this: <data> <record
I have an application which extracts data from an XML file using XPath. If
We have about 1400 xml files which we use to store data around the
I have a file which is an XML representation of some data that is
I have a very large XML file which has like 40000 data, and when
I have a stored procedure which takes an XML parameter and inserts the data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.