[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XSL with scripting

Subject: RE: XSL with scripting
From: "Pawson, David" <DPawson@xxxxxxxxxxx>
Date: Wed, 23 Dec 1998 10:13:02 -0000
hello in braille
JC wrote:

 At this stage, the kind of input I would find most useful
would be a representative selection of transformation problems that
can't be solved using the current XSL WD and that one might reasonably
expect to be able to solve with an extensibility mechanism. (If anybody
steps up to this, please supply actual source and result XML documents
so that there's no doubt exactly what the problem is.)

DaveP:

Still unsure that this is 'right' for XSL, but here goes in reply to James
request.
The scenario is converting XML into embosser ready braille.


Below is a tranform required which I don't believe can be done with
XSL as is. Some access is needed to another environment to perform
the data changes required.
the input of plain text is converted to ASCII (or Unicode) contracted 
text, ready for XSL to formatting.

another point of note. I don't believe a scripting language will suffice
in terms of response times. A compiled version takes an 'appreciable
time' due to the number of table accesses required.




James suggests an alternative, which leaves me with a question,
is this processing better done using the DOM interface, to modify
the source document , then pass to XSL for formatting?


regards, DaveP

------------------- Input file follows --------------------
<simpdoc>
<title>This is a Simple Document</title>
<p>This is a test to <braille>hello</braille> see if this simple
<i>format</i> works. The <acronym>RNIB</acronym> might find it useful.</p>
<list>
<litem>This is a list of item which will show how the text is
<b>formatted</b> when the
line runs over.</litem>
<litem>This is a new list item.</litem>
</list>
<p>This is a new paragraph.</p>
<p2>This is a subparagraph level 1.</p2>
<p3>This is a subparagraph level 2.</p3>
<section>
<head>This is a section</head>
<p>The paragraph at the start of a new section. I want this to be formatted
correctly after
any heading which may precede it.</p>
<points>
<point>This is point which will be used for things such as page referenced
items when doing editorial
instructions.</point>
<point>This is another point</point>
</points>
<p>This is a new para.</p>
<subsect1>
<head>This is a subsection level 1</head>
<list>
<litem>This is a list</litem>
<litem>This is another point</litem>
</list>
<p>This is a paragraph after the subsection heading.</p>
<subsect2>
<head>This is a subsection level 2</head>
<p>This is a paragraph in subsection level 2.</p>
</subsect2>
</subsect1>
</section>
<section>
<head>This is a new main section</head>
<p>This is a paragraph.</p>
</section>
<end>
<name>Stephen Phippen</name>
<date>11th June 1998</date>
</end>
</simpdoc>

------------------- Tranformed output follows --------------------
<simpdoc>
<title>? is a simple docu;t</title>
<p>? is a te/ 6<braille>hello</braille> see if ? simple <i>=mat</i> "ws4 !
<acronym>rnib</acronym> mi&lt;t f9d x use;l4</p>
<list>
<litem>? is a li/ ( item : w %[ h[ ! text is <b>=matt$</b> :5 !
l9e runs ov]4</litem>
<litem>? is a new li/ item4</litem>
</list>
<p>? is a new p&gt;agraph4</p>
<p2>? is a subp&gt;agraph level #a4</p2>
<p3>? is a subp&gt;agraph level #b4</p3>
<section>
<head>? is a sec;n</head>
<p>! p&gt;agraph at ! /&gt;t (a new sec;n4 i want ? 6be =matt$ correctly af
any h1d+ : may prec$e x4</p>
<points>
<point>? is po9t : w 2 us$ = ?+s s* z page ref]5c$ items :5 do+ $itorial
9/ruc;ns4</point>
<point>? is ano!r po9t</point>
</points>
<p>? is a new p&gt;a4</p>
<subsect1>
<head>? is a subsec;n level #a</head>
<list>
<litem>? is a li/</litem>
<litem>? is ano!r po9t</litem>
</list>
<p>? is a p&gt;agraph af ! subsec;n h1d+4</p>
<subsect2>
<head>? is a subsec;n level #b</head>
<p>? is a p&gt;agraph 9 subsec;n level #b4</p>
</subsect2>
</subsect1>
</section>
<section>
<head>? is a new ma9 sec;n</head>
<p>? is a p&gt;agraph4</p>
</section>
<end>
<name>/eph5 phipp5</name>
<date>#aa? june #aiih</date>
</end>
</simpdoc>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.