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

Parsing complex line (mixed text and markup)

Subject: Parsing complex line (mixed text and markup)
From: "Ilya Lifshits" <chehlo@xxxxxxxxx>
Date: Fri, 15 Feb 2008 00:38:15 +0200
 Parsing complex line (mixed text and markup)
Hello experts,

I'm using  xslt 2.0 processor  both saxon and and altova.

I'm trying to parse complex line like:
<tbentry>Some text, Some more text <xref linkend="somelink">  even
more text , , ,</tbentrys>

and get following output :

        <entry>Some text</entry>
        <entry>Some more text <xref linkend="ut_man_related_docs"> and
even more text </entry>

Number of entries is not constant.

I have easily find the solution of this without mixing the text and
markup by using tokenize function.
But failed to separate text and markup using this approach.
Example can be found here : http://pastebin.com/m40fd204f

To formalize the goal: I want to simplify life of our tech writes  by
creating wrappers on  top of DocBook that will help transform from my
defined syntax to standard Docbook code.
So if there is another more appropriate way (which is not WYSIWYG
editor) to achieve this, i can completely change the source line:
 <tblrow>Some text, Some more text <xref linkend="somelink">  even
more text </tblrow>
as soon as  it's still easy to write :)
The only solution i found is pass linkend entry as an attribute to
tblrow and another attribute which will specify  the entry  number.
But this is very limited solution and will not allow me to use  xref
in  2 entries for example.
Additional note, I'm absolutely newby in XML.

Thanks in advance,

Current Thread


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.
First Name
Last Name
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.