本文整理汇总了C++中XSLTProcessor类的典型用法代码示例。如果您正苦于以下问题:C++ XSLTProcessor类的具体用法?C++ XSLTProcessor怎么用?C++ XSLTProcessor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了XSLTProcessor类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: transformToFragmentCallback
static v8::Handle<v8::Value> transformToFragmentCallback(const v8::Arguments& args)
{
XSLTProcessor* imp = V8XSLTProcessor::toNative(args.Holder());
V8TRYCATCH(Node*, source, V8Node::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined)) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined))) : 0);
V8TRYCATCH(Document*, docVal, V8Document::HasInstance(MAYBE_MISSING_PARAMETER(args, 1, DefaultIsUndefined)) ? V8Document::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 1, DefaultIsUndefined))) : 0);
return toV8(imp->transformToFragment(source, docVal), args.Holder(), args.GetIsolate());
}
开发者ID:sanyaade-embedded-systems,项目名称:armhf-node-webkit,代码行数:7,代码来源:V8XSLTProcessor.cpp
示例2: importStylesheetCallback
static v8::Handle<v8::Value> importStylesheetCallback(const v8::Arguments& args)
{
XSLTProcessor* imp = V8XSLTProcessor::toNative(args.Holder());
V8TRYCATCH(Node*, stylesheet, V8Node::HasInstance(MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined)) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(MAYBE_MISSING_PARAMETER(args, 0, DefaultIsUndefined))) : 0);
imp->importStylesheet(stylesheet);
return v8Undefined();
}
开发者ID:sanyaade-embedded-systems,项目名称:armhf-node-webkit,代码行数:7,代码来源:V8XSLTProcessor.cpp
示例3: TOSTRING_VOID
void V8XSLTProcessor::removeParameterMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
{
if (isUndefinedOrNull(info[1]))
return;
TOSTRING_VOID(V8StringResource<>, namespaceURI, info[0]);
TOSTRING_VOID(V8StringResource<>, localName, info[1]);
XSLTProcessor* impl = V8XSLTProcessor::toNative(info.Holder());
impl->removeParameter(namespaceURI, localName);
}
开发者ID:ewilligers,项目名称:blink,代码行数:11,代码来源:V8XSLTProcessorCustom.cpp
示例4: toWebCoreString
void V8XSLTProcessor::removeParameterMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& args)
{
if (isUndefinedOrNull(args[1]))
return;
XSLTProcessor* imp = V8XSLTProcessor::toNative(args.Holder());
String namespaceURI = toWebCoreString(args[0]);
String localName = toWebCoreString(args[1]);
imp->removeParameter(namespaceURI, localName);
}
开发者ID:IllusionRom-deprecated,项目名称:android_platform_external_chromium_org_third_party_WebKit,代码行数:11,代码来源:V8XSLTProcessorCustom.cpp
示例5: INC_STATS
v8::Handle<v8::Value> V8XSLTProcessor::importStylesheetCallback(const v8::Arguments& args)
{
INC_STATS("DOM.XSLTProcessor.importStylesheet");
if (!V8Node::HasInstance(args[0]))
return v8::Undefined();
XSLTProcessor* imp = V8XSLTProcessor::toNative(args.Holder());
Node* node = V8Node::toNative(v8::Handle<v8::Object>::Cast(args[0]));
imp->importStylesheet(node);
return v8::Undefined();
}
开发者ID:paul99,项目名称:third_party,代码行数:12,代码来源:V8XSLTProcessorCustom.cpp
示例6: toWebCoreString
v8::Handle<v8::Value> V8XSLTProcessor::removeParameterMethodCustom(const v8::Arguments& args)
{
if (isUndefinedOrNull(args[1]))
return v8::Undefined();
XSLTProcessor* imp = V8XSLTProcessor::toNative(args.Holder());
String namespaceURI = toWebCoreString(args[0]);
String localName = toWebCoreString(args[1]);
imp->removeParameter(namespaceURI, localName);
return v8::Undefined();
}
开发者ID:Channely,项目名称:know-your-chrome,代码行数:12,代码来源:V8XSLTProcessorCustom.cpp
示例7: resetCallback
static v8::Handle<v8::Value> resetCallback(const v8::Arguments& args)
{
XSLTProcessor* imp = V8XSLTProcessor::toNative(args.Holder());
imp->reset();
return v8Undefined();
}
开发者ID:sanyaade-embedded-systems,项目名称:armhf-node-webkit,代码行数:6,代码来源:V8XSLTProcessor.cpp
注:本文中的XSLTProcessor类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论