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

Re: Does XQuery allow you to modify the XML? (remove

Subject: Re: Does XQuery allow you to modify the XML? (remove elements, modify element values)
From: "Steven D. Majewski steve.majewski@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 18 Oct 2019 15:51:48 -0000
Re:  Does XQuery allow you to modify the XML? (remove
BaseX had an XSLT module, so you can use both methods where appropriate.
By default, it uses Java XSLT 1.0, but if you drop Saxon into /lib, it will
use that and give you XSLT 2 and 3.

Ibm using (WIP) RESTXQ and typeswitch to dispatch on document root node to
XSLT transform for that document type. You can also easily chain transforms
together, and Ibm trying to use this separate local customizations and
branding to separate transforms. This also allows preprocessing to deal with
namespaces schema based documents vs non-namespaces DTD based docs, or other
version differences ( TEI P4 vs P5  ) with a normalization/conversion step.
You can also easily mix XSLT transforms and XQuery functions in a chain.
Ibm also looking at trying to use Query to access sections of document (
like chapters ) and to use XSLT to transform to HTML instead of transforming
complete document.


b Steve M.



> On Oct 17, 2019, at 12:51 PM, Adam Retter adam.retter@xxxxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> Yes, you can either write a type-switch transformation in XQuery to
> create a new document by filtering the content of your original
> document, or you could use XQuery Update if your processor supports
> it.
>
> For typeswitches, this might be useful -
> https://en.wikibooks.org/wiki/XQuery/Typeswitch_Transformations
<https://en.wikibooks.org/wiki/XQuery/Typeswitch_Transformations>
>
> On Thu, 17 Oct 2019 at 16:55, Costello, Roger L. costello@xxxxxxxxx
<mailto:costello@xxxxxxxxx>
> <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx
<mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>> wrote:
>>
>> Hi Folks,
>>
>> It's been a long time since I've looked at XQuery.
>>
>> I need to identify certain elements in XHTML documents and then either
remove the elements or modify their values. Can XQuery do this? Are there fee
XQuery tools?
>>
>> XHTML --> XQuery --> XHTML' (a modified version of the input XHTML
document)
>>
>> /Roger
>>
>
>
>
> --
> Adam Retter
>
> skype: adam.retter
> tweet: adamretter
> http://www.adamretter.org.uk <http://www.adamretter.org.uk/>

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.