XWatch problems -- one watch expression corrupts other watch
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 2
- Joined: Fri Aug 30, 2013 11:08 pm
XWatch problems -- one watch expression corrupts other watch
I have a problem with a stylesheet.
The stylesheet has:
* a stylesheet level param, let's call it targetIdList. This is typed as xs:string*
* a root template (e.g. match="/")
* a named template, let's call it "process"
I debug this stylesheet and set a breakpoint before the call to the name template.
The root stylesheet has a number of variables. One of the main ones is called $reference.
Here's how things break in XWatch.
1. add a watch for $reference. This works fine. I can add several of these and they still work fine. I can also add watches for $reference/*, and that also works fine. The "value type" column shows "document-node(1)" and the "value" column shows "<#document/fragment>". Just like it's supposed to!
2. add a watch for the expression I really want:
$normalized/myns:MainList/*[some $candidateId in $targetIdList satisfies @idref = $candidateId]
So this comes back and there's empty values in the "value type" and "value" columns in XWatch. That's the first problem.
3. Second problem is that if I add another watch for $normalized (same thing as in step 1 so it should return the "document/fragment" value!!), it now comes back with the "value type" column showing "xs:untypedAtomic" and the "value" column shows the string value of the idref attribute of the last child of $normalized/myns:MainList/*
The stylesheet has:
* a stylesheet level param, let's call it targetIdList. This is typed as xs:string*
* a root template (e.g. match="/")
* a named template, let's call it "process"
I debug this stylesheet and set a breakpoint before the call to the name template.
The root stylesheet has a number of variables. One of the main ones is called $reference.
Here's how things break in XWatch.
1. add a watch for $reference. This works fine. I can add several of these and they still work fine. I can also add watches for $reference/*, and that also works fine. The "value type" column shows "document-node(1)" and the "value" column shows "<#document/fragment>". Just like it's supposed to!
2. add a watch for the expression I really want:
$normalized/myns:MainList/*[some $candidateId in $targetIdList satisfies @idref = $candidateId]
So this comes back and there's empty values in the "value type" and "value" columns in XWatch. That's the first problem.
3. Second problem is that if I add another watch for $normalized (same thing as in step 1 so it should return the "document/fragment" value!!), it now comes back with the "value type" column showing "xs:untypedAtomic" and the "value" column shows the string value of the idref attribute of the last child of $normalized/myns:MainList/*
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: XWatch problems -- one watch expression corrupts other w
Hi,
I tried to contact you privately (mail) but did not receive an answer.
Could you please send us a set of sample XML and XSL files with which the problem can be reproduced?
Regards,
Adrian
I tried to contact you privately (mail) but did not receive an answer.
Could you please send us a set of sample XML and XSL files with which the problem can be reproduced?
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 9
- Joined: Thu Oct 24, 2013 8:02 pm
Re: XWatch problems -- one watch expression corrupts other w
I've found similar problem during debugging transformation XML -> DocBook 5.0 on Oxygen v15.2
I've a variable with a value assigned from a call-template which it's filled then with a node-set:
<xsl:variable name="conversionTemplates">
<xsl:call-template name="buildConversionTemplates"/>
</xsl:variable>
This variable is later passed to a template for latter processing
<xsl:call-template name="BuildHtmlTemplates">
<xsl:with-param name="conversionTemplates" select="$conversionTemplates"/>
</xsl:call-template>
When I debug my xsl template and set a watch to $conversionTemplates inside BuildHtmlTemplates template, Xwatch component first displays it as a document-node() and I can browse it's child nodes correctly. Then I set a more complex XWatch expression like:
$conversionTemplates//part[child::title/text() = $templateName]
It sets such value type as item() and when I click back to previously defined watch expression $conversionTemplates, it becomes item() as value type and I can't no longer watch it's hierarchy.
I've a variable with a value assigned from a call-template which it's filled then with a node-set:
<xsl:variable name="conversionTemplates">
<xsl:call-template name="buildConversionTemplates"/>
</xsl:variable>
This variable is later passed to a template for latter processing
<xsl:call-template name="BuildHtmlTemplates">
<xsl:with-param name="conversionTemplates" select="$conversionTemplates"/>
</xsl:call-template>
When I debug my xsl template and set a watch to $conversionTemplates inside BuildHtmlTemplates template, Xwatch component first displays it as a document-node() and I can browse it's child nodes correctly. Then I set a more complex XWatch expression like:
$conversionTemplates//part[child::title/text() = $templateName]
It sets such value type as item() and when I click back to previously defined watch expression $conversionTemplates, it becomes item() as value type and I can't no longer watch it's hierarchy.
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: XWatch problems -- one watch expression corrupts other w
Hi,
Thank you for the feedback.
We need to reproduce this problem in order to investigate it.
Would it be possible to send us the customization you made or a sample where this problem reproduces?
If that's possible, please send the involved files to support AT oxygenxml DOT com
Regards,
Adrian
Thank you for the feedback.
We need to reproduce this problem in order to investigate it.
Would it be possible to send us the customization you made or a sample where this problem reproduces?
If that's possible, please send the involved files to support AT oxygenxml DOT com
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: XWatch problems -- one watch expression corrupts other w
Hi Remi,
The OP provided samples and we were able to identify a situation where an XWatch expression could corrupt the current context. A bug for this problem is currently logged on our issue tracking tool, but it has not been resolved yet (v16.1).
Regards,
Adrian
The OP provided samples and we were able to identify a situation where an XWatch expression could corrupt the current context. A bug for this problem is currently logged on our issue tracking tool, but it has not been resolved yet (v16.1).
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service