Streaming Transformations for XML (STX)

37 Views Asked by At

I am using a stylesheet to transform the following XML document using STX. But, everything after Kite in the comments element is getting ignored while parsing.

How can I access the lines within the BR tags using STX Stylesheet? I need all the lines except the BR tags in the transformed file in the comments column.

XML file

I tried using my stylesheet and it's skipping everything after Kite is being ignored.

1

There are 1 best solutions below

0
Martin Honnen On

It seems easy to e.g. skip any BR elements:

<?xml version="1.0"?>
<stx:transform xmlns:stx="http://stx.sourceforge.net/2002/ns" version="1.0"
               pass-through="all">

  <stx:template match="BR"/>

</stx:transform>