No problem if you produce HTML, but that approach is not pretty at all if your code relies on the exact content of the element.
如果您要生成的是HTML,那么不会产生任何问题,但如果您的代码依赖于元素的准确内容,则这种方法就不适用。
Code a template to match the elements to output the element.
编写一个模板,匹配元素,将其输出到元素中。
If you find that you can't do what you need with the standard tools, ask yourself if you can do what you need with a custom code element.
如果您发现用标准工具您不能做您需要做的,那么问问您自己您是否可以使用定制代码元素做您需要做的。
In Listing 4, the first line of code takes each element of an array, calls the closure on it, and then builds a collection with the results.
在清单4中,第一行代码提取数组中的每个元素,并在此基础上调用闭包,然后用结果构建一个集合。
Outline view: in this format, the WBS is depicted using different levels of indentation, with an accompanying WBS code number for each element.
大纲视图:在这种格式中,用不同等级的缩进来体现WBS结构。WBS编码与每个元素一同出现。
These features improve the consistency between the model element, the code references, and the process to manage changes.
这些特性提高了模型元素、代码引用,以及管理变更过程之间的稳定性。
Generality: Without having to list all possible element names, the code is general enough to encompass the variation of different feature elements that might appear in instance documents.
通用性:由于不需要列出所有可能的元素名,使代码更加通用,可以包含可能出现在实例文档中的不同特性元素的变体。
And you may notice that there is a little snippet of PHP code in this element.
并且您可能已经注意到了,在这个元素内有一小段php代码。
The array element access (unsynchronized) code has already been presented in Listing 2.
数组元素访问(不同步)代码已经在清单2中给出。
This HTML code contains an element that displays a URL to a static html page containing the message that dynamically appears within the marquee.
这段HTML代码包含一个元素,它显示一个静态 HTML页面的URL,页面包含在滚动字幕中动态显示的消息。
If your code passes the wrong element to the method, the code compiles fine, but might raise a runtime error or silently return no results.
如果代码给方法传递错误的元素,那么尽管代码将编绎良好,但可能会导致运行时错误或者不返回任何结果。
The pane on the right in the editor changes to show the response code verification test element details.
编辑器右边的格子发生改变,以显示响应代码验证测试元素细节。
After issuing the query, the code checks for a request parameter for a format element.
在发出查询之后,代码检查格式元素的请求参数。
Suppose a .NET client sends out an array with a null element as shown in the code in Listing 9.
假设.NET客户端发出含有空元素的数组,代码如 清单 9所示。
The details form will be filled with the data of this element using the code in Listing 6.
将用该元素的数据填充明细表单,代码如清单6。
Most of the style sheet is easy, but what about the element, the HTML code for a new table row?
大多数样式表很容易,但元素-新表行的HTML代码如何呢?
If it is found, then the code adds a UI element that adds a new feature to the application that makes use of this feature.
如果有此支持,就会添加一个UI元素以便向这个应用程序添加一个新特性供其使用。
It's easy enough to write XSLT code that takes a particular element value and renders it this way.
这很容易,编写XSLT代码将特定元素值以这种方式表示。
In this code, the HTML element contains an attribute, title, which, when you hover the mouse over the word in the sentence, provides more specific information.
在这个代码中,HTML元素包含一个属性title,当您将鼠标悬停于句子中的这个单词上方时,该属性将提供更具体的信息。
It defines a simple code list with the element type color, which contains four possible elements, the first three of which are given known color names.
清单1使用元素类型color定义一个简单的代码列表,color包含4个可能元素,前三个元素被赋予已知颜色名称。
To specify an int variable for an iterator and a String variable for element name, use the code in Listing 17.
要为迭代器指定一个int变量并为元素名称指定一个String变量,请使用清单17中的代码。
The Web service design element saves the WSDL document and the code.
Web服务设计元素将保存WSDL文档和代码。
The structural encoding scheme of XMill assigns each distinct element and attribute name an integer code, which serves as the key into the element and attribute name dictionaries.
XMill的结构编码方案为每个不同的元素和属性名称分配一个整数代码,作为进入元素和属性名称词典的密钥。
Each path element contains a single dirname element, so the code searches for elements named dirname and grabs the first entry.
每个path元素包含了一个dirname元素,所以代码搜索名称为dirname的元素,并获取其中的第一个条目。
Listing 11 USES the value of col2 as a parameter to restrict DELETE operations based on the value of an XML element (the zip or zip code element of a client's address).
清单11使用col2值作为参数根据一个XML元素(zip或客户端地址的邮政编码元素)限制DELETE操作。
The following code depicts element in web.xml pointing to external XML context file that will be loaded by ContextLoaderListener listener class.
以下代码描述了 web.xml中指向将由ContextLoaderListener 监听器类载入的外部 XML上下文文件的元素。
The definition contains an xbl:template element, which itself contains the SVG code that will replace each ATOM element in the input document. For example
定义中包含xbl:template元素,它本身包含代替输入文档中每个ATOM 元素的SVG 元素。
For instance, if you are representing something like source code or poetry, where exact spacing matters, stick to element contents.
例如,如果表示象源代码或诗歌这样空格确实很重要的内容,则坚持使用元素内容。
To navigate from a diagram element to its associated source code, you can either double-click the diagram element or use its pop-up menu.
要将一个图中的元素导航到与它相关的源代码,您要么双击这个图的元素要么使用它的弹出式菜单。
First, you change in source code, which corresponds to a UML element in a model fragment.
首先,您在源代码中所做的变更,对应于模型片段中的uml元素。
应用推荐