XSLT位运算逻辑 [英] XSLT Bitwise Logic

查看:111
本文介绍了XSLT位运算逻辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有利用的整数存储多个值,现有的数据集;传统前端做了一个简单的按位检查(例如,在C#:iValues​​及16条== 16),看是否有特定的值设定。是否有可能做位运算的XSL,和更明确地,通过屏蔽来做到位水平的比较?内置的和总是会导致真或假,但或许它通过数学运算符可能提供?

I have an existing data set that utilizes an integer to store multiple values; the legacy front end did a simple bitwise check (e.g. in C#: iValues & 16 == 16) to see if a particular value was set. Is it possible to do bitwise operations in XSL, and more explicitly, to do bit level comparisons via masking? The built-in "and" will always result in "true" or "false", but perhaps it's possible via the math operators available?

我目前使用.NET 2.0,它使用XSLT 1.0。

I'm currently using .NET 2.0, which uses XSLT 1.0.

推荐答案

我还没有见过这样的XSLT / XPath的事情。但我发现有人实施这种操作的手动的。也许你可以用同样的方法,如果你真的需要。

I haven't seen anything like this in XSLT / XPath. But I've found someone implementing this kind of operations manually. Maybe you could use the same approach, if you really need to.

这篇关于XSLT位运算逻辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆