473,395 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

XSLT as editor?

Can I use XSLT to do some simple editing,
eg I want to delete a final "," from some fields.

As will be clear, I am a newbie in this area;
I am using XSLT to convert XML (more precisely MARCXML)
date to HTML.

--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
Mar 15 '07 #1
2 1322
Timothy Murphy wrote:
Can I use XSLT to do some simple editing,
eg I want to delete a final "," from some fields.
You can certainly write a stylesheet that will perform that operation,
assuming you can clearly describe to the system which fields you want to
apply that modification to. String manipulation isn't what XSLT does
best, but it does have functions which support this sort of operation.

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Mar 15 '07 #2
git
On Thu, 15 Mar 2007 11:52:59 +0000, Timothy Murphy wrote:
MARCXML
I worked with XLST converting docs a lot at one point. As a method is kind
of come off the rails fairly quickly. You can do a lot easily, but once
you start doing stuff like character editing, it starts go get messy.
Before you spend too long trying to do this with XLST you need to think
how many 'little alterations' are likely to be needed, or requested,
before the end of the project. If it seems like a lot, you might be
better off parsing the XML and writing out HTML.

I did a post on this approach here:
http://nerds-central.blogspot.com/20...ptjscript.html
and here:
http://nerds-central.blogspot.com/20...pt-exsead.html

Cheers

AJ

--
Nerds-Central: www.nerds-central.com
Rocket power solutions to tricky IT challenges!

Mar 15 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: ABrillant | last post by:
We are glad to announce the availability of EditiX 1.3 http://www.editix.com EditiX is a cross-platform XML editor designed to help web authors and application programmers take advantage of...
0
by: ABrillant | last post by:
EditiX is a cross-platform and multi-purpose XML/XSLT Editor : http://www.editix.com News : - Surround CDATA action from the "edit" menu - Surround Comment action takes the place of the...
2
by: dado0583 | last post by:
Hi, I'm currently writing an XSLT Editor tool as part of a university project. I would like to know what those of you that use XSLT look for in an XSLT editor. Currently, the main features will...
3
by: Teksure | last post by:
Hi group, searching in the Internet I found two products for XML which incorporate a very robust debugger for XSL/XSLT, I would like you to see these products and then, give me your opinion about...
11
by: cmay | last post by:
I am having this problem... Lets say that your source XML is formatted like this: <somenode> Here is some text Here is some more text </somenode> When to a <xsl:value-of select="somenode" /I...
4
by: J | last post by:
I've spent most of the day on this, and I just can't seem to find a solution, please help me! :) I'm recieving XML that I can't modify that looks like: <?xml version="1.0"?> <Doc> <Page>...
8
by: Hercules Dev. | last post by:
Hi all, I'm new in xslt and xpath, so my question might be simple but i'm learning. I have an XML document and need to transform it into another XML, I use xslt and it works, but there is a...
3
by: howa | last post by:
a statement as simple as that, but not working,... <xsl:variable name="now" select="current-dateTime()" /> I can't find a working example in the Internet...
4
by: mark4asp | last post by:
I want to write a xslt template to create a xhtml 1.0 (transitional) file which will be sent in as email. Here is a typical xml data file: <BatchEmail> <Domain>www.myDomain.com</Domain>...
2
by: Boris | last post by:
I'm making my first steps with XSLT and run into a problem where I didn't find an explanation yet for. Have a look at this very simple XML document (DocBook) ... <?xml version="1.0"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.