XSLT processor command line

September 7th, 2008 mysurface Posted in Misc | Hits: 179623 | 9 Comments »

XSLT stand for XSL transformation, and XSL is EXtensible Stylesheet Language, it is XML-based Stylesheet Language defined by W3C. XSLT is one of the famous XML technology, XML that uses XSL needs transformation before that make sense. Some application such as firefox browser do support XSLT, with xsl source specified, it will be transform automatically.

If you have XSL, and xml that uses XSL, you can also transform by using a command call xsltproc. xsltproc is a tool from libxslt. The usage is straight forward:

xsltproc mytemp.xsl mytarget.xml

The line above will dump the transformed xml to standard output, which you can redirect it to any files.

With -o, the transformed xml will be dumped into file.

xsltproc mytemp.xsl mytarget.xml -o myresult.xml

p.s. For xsltproc, the targeted xml do not need to specified the xsl inline such as:

<?xml-stylesheet href="mytemp.xsl" type="text/xsl" ?>

To know more about XSLT check out W3C XSLT tutorial, or check out ways of transform XML with XSLT. You can also get some samples from the W3C tutorial to try out xsltproc.

9 Responses to “XSLT processor command line”

  1. Magnificent beat ! I would like to apprentice while you amend your website, how can i subscribe for a blog web site? The account aided me a acceptable deal. I had been a little bit acquainted of this your broadcast provided bright clear idea

  2. Bawkbagawk, if that’s all you have to complain about, then I’m just SMH… oh, shaking my head. Can’t attack me since “m not a cop, so you try to attack my sentence structure too. Here, try this:

  3. I blog frequently and I really thank you for your information. The article has really peaked my interest.
    I’m going to take a note of your blog and keep checking for new information about once a week.
    I subscribed to your Feed too.

  4. I received e-mails on this, except the sender’s name was Andrew Kazuyuki. This is a good fraud in the details, though apparently some of you who got this looked deeper and more carefully than I did. I was suspicious at first, but it seemed legit. I did not think to examine the documents more closely, as I agreed to handle the case but was waiting on my retainer. I got a signed contract back from someone agreeing to represent me, but they kept making excuses on getting the retainer fee to me. I was seeing these e-mails, and “Andrew” kept sending me things to review, making it seem legit, but I held to my guns about waiting on the retainer. After several weeks of excuses, I told the guy I would not represent him and was closing my file.

  5. chapichapo Says:

    “W3C XSLT tutorial”: this site is absolutely not related to the W3C, It’s W3School.

  6. Hello, I would like to subscribe for this weblog to obtain most up-to-date updates, so
    where can i do it please assist.

    Here is my blog post: club penguin walkthrough
    avalanche rescue (Monica)

  7. Until you truly unlock the full game, most of the nightclub penguin walkthrough guides
    you talk, will find and describe items and quests you just cannot do.
    It is Disney’s subtle way of hooking your 6-14 year old upward
    into the world of a subscription version.

    my page club penguin walkthrough avalanche rescue; Milla,

  8. wtvr com 2015 01 09 flight attendants complained about menacing images on aircraft

  9. Hi blogger, i must say you have very interesting content
    here. Your page can go viral. You need initial traffic only.
    How to get it? Search for; Mertiso’s tips go viral

Leave a Reply