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 798613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:59:59+00:00 2026-05-14T22:59:59+00:00

Is there any application to generate an XSL Stylesheet from an XML file? I

  • 0

Is there any application to generate an XSL Stylesheet from an XML file? I have a very complex XML file, which is a well-formed SVG file.

Is there any software application to convert XML to XSL?

  • 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-14T22:59:59+00:00Added an answer on May 14, 2026 at 10:59 pm

    Based on your previous question, I assume you want to create an XSL-FO file from an SVG image.

    One option would be to just include the SVG image inline in a fo:instream-foreign-object. A complete example (using this SVG image):

    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    
      <fo:layout-master-set>
        <fo:simple-page-master master-name="master">
          <fo:region-body />
        </fo:simple-page-master>
      </fo:layout-master-set>
    
      <fo:page-sequence master-reference="master">
        <fo:flow flow-name="xsl-region-body">
          <fo:block>
            <fo:instream-foreign-object>
    
              <svg xmlns="http://www.w3.org/2000/svg"
                   width="200" height="200">
                <circle cx="100" cy="100" r="50" stroke="black"
                        stroke-width="5" fill="red" />
              </svg>
    
            </fo:instream-foreign-object>
          </fo:block> 
        </fo:flow>
      </fo:page-sequence>
    
    </fo:root>
    

    Another option would be to refer to the SVG image from a fo:external-graphic:

    <fo:external-graphic src="Svg_example4.svg"/>
    

    If you want automate this, you could just write a XSLT which transforms the SVG to a XSL-FO document with the SVG embedded:

    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                    version="1.0">
      <xsl:template match="/">
    
        <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    
          <fo:layout-master-set>
            <fo:simple-page-master master-name="master">
              <fo:region-body />
            </fo:simple-page-master>
          </fo:layout-master-set>
    
          <fo:page-sequence master-reference="master">
            <fo:flow flow-name="xsl-region-body">
              <fo:block>
                <fo:instream-foreign-object>
                  <xsl:copy-of select="." />
                </fo:instream-foreign-object>
              </fo:block> 
            </fo:flow>
          </fo:page-sequence>
    
        </fo:root>    
    
      </xsl:template>
    </xsl:stylesheet>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to generate a sub system diagram of an application from
I would like to know is there any way to generate xml schema from
Is there any application that will read a MySQL database table and generate a
I have an XML document generated from an external application, but that application does
Using SWIG to generate a Python interface to a C++ application, is there any
I have the following XML: <?xml version=1.0?> <?xml-stylesheet type=text/xsl href=http://www.test.com/AuditTrail.xsl?> and XSL: <?xml version=1.0
Is there any analog of jstl url tag, which can be used to generate
I have a C# application that generates an html document from transforming an xml
Is there any way to generate a context initializer from database entries etc? I
Is there any PHP application that can automatically generate add/edit forms and listing pages

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.