xsl-list
[Top] [All Lists]

RE: [xsl] Execute Stylesheet

2008-03-07 12:28:29
Hi,

   I have not checked your syntax, but here is what you can do to execute your 
stylesheet.

   If you use Oxygen, you can push the transform button (it looks like a red 
arrow with a white button around it)  from the menu bar. If you use XSLT 2.0, 
it would be convenient to adjust your settings to Saxon 8B by pushing the 
button next to it and adjust your settings.

  This is nice if you want to work offline.

Cheers.

Alice
======================================================
Alice Wei
MIS 2008
School of Library and Information Science
Indiana University Bloomington
ajwei(_at_)indiana(_dot_)edu
________________________________________
From: Sean Tiley [sean(_dot_)tiley(_at_)gmail(_dot_)com]
Sent: Friday, March 07, 2008 2:16 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Execute Stylesheet

Hello,
I have a question, I am embarrassed to ask as it seems like it should be so easy

I have basically copied an xsl stylesheet from
http://www.xml.com/pub/a/2003/05/07/tr.html, with a slight
modification to the string that is being tokenized.  My plan is to
further modify and wrap the values in the file with elements.

I am using Oxygen as my XML editor of choice.

My question is how do I actually run this stylesheet?  I am used to
running a stylesheet against an xml file but I am at a loss as to how
to execute this one against the text file?  Can I run it from within
Oxygen or do I need to run it with a command line?

I am using XSLT 2.0 (Saxon)

My (copied) stylesheet is as follows

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="2.0">
    <xsl:variable name="in" select="unparsed-text('c:\comma_delimited.txt')"/>
    <xsl:template match="/">
        <xsl:variable name="tokenizedSample" select="tokenize($in,',')"/>
         <xsl:for-each select="$tokenizedSample">
            <xsl:value-of select="."/>
            <xsl:text>! </xsl:text>
        </xsl:for-each>
     </xsl:template>
 </xsl:stylesheet>

Thanks
--
Sean

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>