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

Re: Retrieving "markup" hidden in comments

Subject: Re: Retrieving "markup" hidden in comments
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Thu, 28 Jun 2007 17:46:02 +0200
Re:  Retrieving "markup" hidden in comments
Hi Bruce,

AAS Contractor wrote:
My problem is:
I have xml files which contain Arbortext Math markup which has been placed in comments, e.g.

<snip />

I can retrieve the comment text string, but of course that's all it is - a string. Is there any way to coerce that into being treated as an element or document-node?

<snip />

Is there a way to emulate the effect of document() but on the content of a variable rather than a file?

what you probably want is something like saxon:parse (http://www.saxonica.com/documentation/extensions/functions/parse.html), which takes a string and parses it as XML. Note that this is an XSLT extension from Saxon and as such will not work on other processors.

Maybe somewhere out there someone has created a pure XSLT solution for parsing text as XML (can be done, but I have no idea how easy / hard it would be).

-- Abel

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.