BaseX

BaseX attributes cannot be serialized

こ雲淡風輕ζ 提交于 2019-12-02 06:14:38
问题 I have this simple XML file: <catalog> <product dept="WMN"> <number>557</number> <name language="en">Fleece Pullover</name> <colorChoices>navy black</colorChoices> </product> <product dept="ACC"> <number>563</number> <name language="en">Floppy Sun Hat</name> </product> <product dept="ACC"> <number>443</number> <name language="en">Deluxe Travel Bag</name> </product> <product dept="MEN"> <number>784</number> <name language="en">Cotton Dress Shirt</name> <colorChoices>white gray</colorChoices>

XQuery returning an error..?

拥有回忆 提交于 2019-12-02 02:23:45
Below is the XML file - <Continents> <Continent n="Asia"> <Country n="Thailand"> <City> <Name>Bangkok</Name> <Desc>Capital on Thailand</Desc> </City> </Country> <Country n="India"> <City> <Name>New Delhi</Name> <Desc>Capital on India</Desc> </City> <City> <Name>Mumbai</Name> <Desc>Financial capital on India</Desc> </City> <City> <Name>Chennai</Name> <Desc>A very good city</Desc> </City> </Country> </Continent> </Continents> Using baseX, I am writing a query to display the Name of cities containing the word Capital but is returning error. The query is - /Continents/Continent[contains(Country

How to return results together with update operations in BaseX?

醉酒当歌 提交于 2019-12-02 00:56:10
I recognized that ( insert / delete )-XQueries executed with the BaseX client always returning an empty string. I find this very confusing or unintuitive. Is there a way to find out if the query was "successful" without querying the database again (and using potentially buggy "transitive" logic like "if I deleted a node, there must be 'oldNodeCount-1' nodes in the XML")? Jens Erat XQuery Update statements do not return anything -- that's how they are defined. But you're not the only one who does not like those restrictions, and BaseX added two ways around this limitation : Returning Results By

米联客 ZYNQ/SOC 精品教程 S05-CH01利用IBERT进行GTX信号眼图测试

允我心安 提交于 2019-11-30 07:54:46
软件版本:VIVADO2017.4 操作系统:WIN10 64bit 硬件平台:适用米联客 ZYNQ系列开发板 米联客(MSXBO)论坛: www.osrc.cn 答疑解惑专栏开通,欢迎大家给我提问!! 1.1概述 Vivado中提供了1种IBERT工具用于对Xilinx FPGA芯片的高速串行收发器进行板级硬件测试。通过IBERT我们可以获取误码率,观察眼图,调节串行收发器的参数,从而有助于判断可能存在的问题,便于验证硬件的稳定性和信号完整性。 本教程基于米联MZ7035开发板,使用IBERT工具对与SFP连接的GTX进行1.25Gbps和10.3125Gbps速率下的测试。从误码率和眼图两个角度来验证开发板GTX部分工作的稳定性和可靠性。 10G光通信需要用到可编程晶振,选购板子的时候需要需要做10G光通信必须选配。 本教程共包含ibert_1_25g和ibert_10g两个例子,分别对应1.25Gbps和10.3125Gbps速率,均基于vivado 2017.4版本开发。 1.2测试原理 IBERT中的BERT是Bit Error Ratio Test的缩写,指比特出错概率测试,简而言之就是误码率测试。Vivado中IBERT工具的测试原理是通过收发器由外部回环进行自收自发而实现。就是将同一组收发器的TX和RX进行短接,TX发送端通过发送某种特定序列的数据流

自协商SGMII_IP核例化篇

陌路散爱 提交于 2019-11-29 04:18:30
自协商SGMII_IP核例化篇 前言 工程简介 前端IP核例化 速率和模式 核配置 Shared Logic Q0模块接口 后端IP核例化 核配置 Q1模块接口 顶层模块 异步FIFO 自协商 总结 前言 本篇主要介绍该IP核的“使用”,和实际项目工程,为下一篇的设计和板上调试做做准备工作,这个“使用”可不像BRAM、DSP核那么简单了,使用的过程中还是有很多坑要踩的;主要参考是该核的手册pg047,代码来源于生成的Example,不同的器件和软件版本可能会有差异,但影响不大。时间充裕的话,建议将整个文档都过一下,把官方的仿真跑一遍,不然,有可能会像我刚开始一样,因为理解不够,出现一些天真的想法。 工程简介 要做的事情是FPGA内部完成“(Bridge)桥梁”的作用,一方面通过PHY或者光模块将电口和光口的串行数据转换成并行,另一方面再将FPGA解析出的数据以SGMII总线发送给交换芯片,重点在跨时钟域处理和自协商内部的逻辑需要自己设计,为了脱敏,本篇不提供完整代码,主要放在思路和避坑。 前端IP核例化 光口与电口端,命名为Q0吧 速率和模式 从IP核的名字可以看出,该核通过配置可以生成两种核,光口可以用以太网PCS/PMA mode,电口具有PHY采用SGMII mode,这里速率采用1G,因为其内部有8b/10b转换,所以参考时钟则是125MHz