Search found 13 matches

by msambasiva
Thu Jun 06, 2019 1:11 pm
Forum: XSLT and FOP
Topic: Remove multiline comments
Replies: 8
Views: 634

Re: Remove multiline comments

Hi Radu,

The requirement is, Remove commented code (single line/Multi line ) and display the rest of content into table column each sql-statement content into one cell.

Can't we achieve this using XSLT 2.0 alone?

Thanks,
Samba.
by msambasiva
Thu Jun 06, 2019 10:14 am
Forum: XSLT and FOP
Topic: Remove multiline comments
Replies: 8
Views: 634

Re: Remove multiline comments

Thanks Radu! Can you suggest a way to apply Regex on set of nodes at a time as the comments are spread across multiple lines? Ex: Comment starting at line <sql-statement>/* Commented for bug#22652320</sql-statement> and ending at another line <sql-statement> AP_LOOKUP_CODES ALC */ </sql-statement> A...
by msambasiva
Thu Jun 06, 2019 9:47 am
Forum: XSLT and FOP
Topic: Remove multiline comments
Replies: 8
Views: 634

Re: Remove multiline comments

Thanks Radu! I am looking for a way to update the content in the (XSLT) transformation process. My input is xml and output is a html. So I need to exclude the commented code from xml and present the rest of code into html. How to apply the Regex on the set of node values (sql-statement) and then ite...
by msambasiva
Tue Jun 04, 2019 9:17 am
Forum: XSLT and FOP
Topic: Remove multiline comments
Replies: 8
Views: 634

Re: Remove multiline comments

Those are sql comments but not xml comments. Those comments are part of xml content. While parsing xml using xslt, we need to exclude those comments and display the rest of the content. Ex: Below is the part of xml content having sql-statement child element of query. We need to display only first el...
by msambasiva
Tue May 21, 2019 2:05 pm
Forum: XSLT and FOP
Topic: Remove multiline comments
Replies: 8
Views: 634

Remove multiline comments

Hi, We are using XSLT 2.0. We have a requirement to remove multiline comments before displaying the content from a xml. Need to exclude the '/* bug#22652320' and 'AND PH.TERMS_ID = AT.TERM_ID(+) */' from the below xml content in the output. Any clue would be great help. Thanks in advance, Samba. <qu...
by msambasiva
Fri Nov 09, 2018 10:26 am
Forum: XSLT and FOP
Topic: ANT + XSLT2.0 + Merge xmls
Replies: 4
Views: 1125

Re: ANT + XSLT2.0 + Merge xmls

I tried some thing below in my xsl file. Looks It's invoking xsl file three times. <xsl:template match="/"> <xsl:message> Current file is <xsl:value-of select="$filename"/> in directory <xsl:value-of select="$filedir"/></xsl:message> <xsl:variable name="inpath" select="string-join(tokenize(document-...
by msambasiva
Fri Nov 09, 2018 10:03 am
Forum: XSLT and FOP
Topic: ANT + XSLT2.0 + Merge xmls
Replies: 4
Views: 1125

Re: ANT + XSLT2.0 + Merge xmls

Thanks for your reply. You are right. collection function allows to iterate all the files from a specific folder. But in my case, the xmls are spread under different folders in temp folder. like temp/atf/test.xml temp/fnd/test.xml I am passing temp as base dir as shown below <xslt> tag. <xslt basedi...
by msambasiva
Tue Nov 06, 2018 2:13 pm
Forum: XSLT and FOP
Topic: ANT + XSLT2.0 + Merge xmls
Replies: 4
Views: 1125

ANT + XSLT2.0 + Merge xmls

Hi Apache Ant(TM) version 1.9.7 XSLT 2.0 We have two xmls in two different folders as below. We need to merge all the services into on xml as show in the expected xml. tmp/atf/test.xml, tmp/fnd/test.xml, tmp/fsm/test.xml tmp/atf/test.xml, ================= <serviceReference> <services> <chapterSumma...
by msambasiva
Wed Aug 29, 2018 1:36 pm
Forum: XSLT and FOP
Topic: XSLT 2.0 - Group by partial value of an attribute
Replies: 1
Views: 871

XSLT 2.0 - Group by partial value of an attribute

Hi, We are using XSLT 2.0. We have a requirement to group the services based on product which is part of an attribute value. Below is the part of xml taken to brief you the requirement. In the below xml, there are three services. Two services are from commonWorkExecution prodcut. The expected output...
by msambasiva
Thu Jul 19, 2018 1:17 pm
Forum: XSLT and FOP
Topic: Ant + XSLT Debug
Replies: 6
Views: 1606

Re: Ant + XSLT Debug

HI, I have build process with invoking different xslts as below. Below is one of the xslt from ANT script <xslt in="${dita.temp.dir}${file.separator}dummy.map" out="${dita.temp.dir}${file.separator}merged${file.separator}Merged.xml" style="${dita.plugin.uae.dita.oer.dir}${file.separator}xsl${file.se...
by msambasiva
Tue Jul 17, 2018 10:10 am
Forum: XSLT and FOP
Topic: Ant + XSLT Debug
Replies: 6
Views: 1606

Re: Ant + XSLT Debug

Thanks for quick response!
Could you be more specific on the setting ' XSLT debugger along with manually setting in the XSLT transformation scenario'
We can use echo statements to log the info in the ANT script. But how can we change the debugger on the fly?
by msambasiva
Tue Jul 17, 2018 10:06 am
Forum: XSLT and FOP
Topic: Ant + XSLT Debug
Replies: 6
Views: 1606

Re: Ant + XSLT Debug

Thanks for quick response! As you said, we can use echo statements to log the information from ANT script. But I am not clear on " use our XSLT debugger along with manually setting in the XSLT transformation scenario ". How can we manually set XSLT Debuuger in the XSLT transformation scenario? Could...
by msambasiva
Tue Jul 17, 2018 7:31 am
Forum: XSLT and FOP
Topic: Ant + XSLT Debug
Replies: 6
Views: 1606

Ant + XSLT Debug

Hi, I've been assigned with XML to dita conversion tool. For that, I've given a try to write ANT script which in turn calling XSLTs. Everything is working fine. Now I want to debug the Ant script and XSLT in Oxygen XML editor in the same flow of execution. Some how I am able to debug XSLT but not AN...