Referencing inside of an xi:included xml file from debugger
Are you missing a feature? Request its implementation here.
Referencing inside of an xi:included xml file from debugger
When I use <xi:include/> to pick up xml from another file, the debugger doesn't show the source of data. That is, when I click a line in the Output pane, it highlights the xsl line that created that data and it highlights the <xi:include/> statement that points to the xml file that contains the data element referenced for that output.
I use this syntax for instance in my input xml file
<?xml version="1.0" encoding="UTF-8"?>
<top xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="some_clocks_tb.xml" />
<xi:include href="tempRgmVerilogStage1.xml" />
<xi:include href="tempClkArcSynSYNTHESIS.xml" />
</top>
Can we get the debugger to show the line in included file that contains the element referenced? In the meantime, to debug, I copy/paste the included file over the <xi:include/> statement.
GeorgeG
I use this syntax for instance in my input xml file
<?xml version="1.0" encoding="UTF-8"?>
<top xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="some_clocks_tb.xml" />
<xi:include href="tempRgmVerilogStage1.xml" />
<xi:include href="tempClkArcSynSYNTHESIS.xml" />
</top>
Can we get the debugger to show the line in included file that contains the element referenced? In the meantime, to debug, I copy/paste the included file over the <xi:include/> statement.
GeorgeG
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello,
That is not possible. Both the Saxon and Xalan transformers report the location inside the main XML input source for all the XML input elements and they are right. They cannot report a location inside an included file because such a location is not always accurate. The process of resolving the XInclude reference enhances the content of the included file so the processed elements are not exactly the same as the included ones. For example resolving the XInclude reference adds the xml:base attribute. If you output the value of the xml:base attribute and click on it in the output view what should be the location in the source XML input which generated that part of the output ?
Create the complete document by applying the following stylesheet on your document
and debug your stylesheet on the complete document.
Regards,
Sorin
That is not possible. Both the Saxon and Xalan transformers report the location inside the main XML input source for all the XML input elements and they are right. They cannot report a location inside an included file because such a location is not always accurate. The process of resolving the XInclude reference enhances the content of the included file so the processed elements are not exactly the same as the included ones. For example resolving the XInclude reference adds the xml:base attribute. If you output the value of the xml:base attribute and click on it in the output view what should be the location in the source XML input which generated that part of the output ?
Create the complete document by applying the following stylesheet on your document
Code: Select all
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<xsl:copy-of select="/"/>
</xsl:template>
</xsl:stylesheet>
Regards,
Sorin
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