Re: Ris: [xsl] suggestion for an xml editor, please?

Subject: Re: Ris: [xsl] suggestion for an xml editor, please?
From: "Eliot Kimber eliot.kimber@xxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 17 Aug 2022 15:06:38 -0000
Another powerful feature of Oxygen is XML refactors, where you can use XSLT or
XQuery to do in-place updates to one or more files.

Ive become a big fan of XQuery refactors because XQuery update lets you do
surgical updates to documents, so the code is very compact, as compared to the
equivalent XSLT transform (although XSLT 3s mode instruction makes identity
transforms more compact than they were in XSLT 2).

Using XQuery string handling features it should be relatively easy to write a
refactor that does the markup you want of the text document, adding sufficient
XML that you can then use Oxygens XML editing features to do more.

I might also suggest that BaseX as an ad-hoc XML processing environment is
quite attractive. (basex.org).

Just download and install the BaseX GUI, fire it up, create a database from a
directory of files, and use the GUI to slap together some XQuery to whatever
you need to your data.

As an adjunct to or alternative to Oxygen as an XML manipulation environment
BaseX is attractive, not least of which you can quickly load large amounts of
data for quick access while Oxygen is limited to working off the file system.

Cheers,

E.

_____________________________________________
Eliot Kimber
Sr Staff Content Engineer
O: 512 554 9368
M: 512 554 9368
servicenow.com<https://www.servicenow.com>
LinkedIn<https://www.linkedin.com/company/servicenow> |
Twitter<https://twitter.com/servicenow> |
YouTube<https://www.youtube.com/user/servicenowinc> |
Facebook<https://www.facebook.com/servicenow>

From: Chris Papademetrious christopher.papademetrious@xxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wednesday, August 17, 2022 at 9:05 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>, Bauman,
Syd s.bauman@xxxxxxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Ris: [xsl] suggestion for an xml editor, please?
[External Email]

Building on what Michele says, Oxygen also provides various element/attribute
rename/unwrap/deletion refactoring actions that let you perform more advanced
actions that use XPath-like expressions (renaming attributes in certain
elements, unwrapping elements in certain parent elements, etc.).

Two of my favorite XSLT-related Oxygen features are:


  *   When running XSLT transformations, it preserves the input documents
serialization structure as much as possible.

     *   In a revision control context, this is useful for minimizing the
diff/blame footprint.

  *   You can preview an XSLT transformation on a set of files before applying
it, complete with a side-by-side diff of what would be applied.


  *   Chris


From: Michele R Combs mrrothen@xxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, August 17, 2022 9:49 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx; Bauman, Syd s.bauman@xxxxxxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Ris: [xsl] suggestion for an xml editor, please?

Thats pretty basic functionality for an XML editor.  I cant speak to the
other suggestions, but Oxygen for sure will do exactly that.  You select a
chunk of text and then just double-click on the element you want to wrap it
in.  You can also switch back and forth between XML-encoding mode and plain
text mode, which is handy if you need to search/replace element attribute.
For example you could search on <emph render=italic and replace with <emph
render=bold

Michele
XSL-List info and
archive<https://urldefense.com/v3/__http:/www.mulberrytech.com/xsl/xsl-list__
;!!N4vogdjhuJM!AZ1C86OiHl0zYV-m1U_ykdCEZf6vKf7wxrbGy9eXYwpGUlv96l4Iv1rvsoEVBa
--Tg7efD3fdHt-WsCSu2-OD26sAxgyXHTlKCYKILEvHsA$>
EasyUnsubscribe<https://urldefense.com/v3/__http:/lists.mulberrytech.com/unsu
b/xsl-list/3453418__;!!N4vogdjhuJM!AZ1C86OiHl0zYV-m1U_ykdCEZf6vKf7wxrbGy9eXYw
pGUlv96l4Iv1rvsoEVBa--Tg7efD3fdHt-WsCSu2-OD26sAxgyXHTlKCYKEtd4D50$> (by
email<>)

Current Thread