« | July 2025 | » | 日 | 一 | 二 | 三 | 四 | 五 | 六 | | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | | | |
| 公告 |
用一句流行话说,我是外行,我怕谁!
嘿嘿!其实嘛,我是说,我什么都不懂,说错了你别见怪!
|
Blog信息 |
blog名称:X'Me, Love 日志总数:20 评论数量:40 留言数量:0 访问次数:151302 建立时间:2008年8月8日 |

| |
[xmlStudy]UnderstandingXPath04 文章收藏
半路和尚 发表于 2008/10/10 12:58:03 |
Beyond the Basics
Until now, the discussion has targeted single nodes wherever possible. In fact, the focus has been on how to |
|
[xmlStudy]UnderstandingXPath02 文章收藏
半路和尚 发表于 2008/10/9 2:44:33 |
Getting the Value of a Single Element
The problem with the code shown so far is that it acts on an element or a set of elements. Within the set of elements (such as the dish elements), no one node is singled out. If you also address a dish node instead of matching it with a template, a reasonable assumption would be that you will get the value of a single dish node. Listing 3.6 tests this assumption. |
|
[xmlStudy]UnderstandingXPath01 文章收藏
半路和尚 发表于 2008/10/9 0:43:01 |
So far, this lesson has been all theory. You need this theory as a foundation for practical application, which is what the rest of this lesson is all about.
XSLT wouldn't work if it didn't have some kind of mechanism to match and select nodes and act on them. You need to be able to express which node or nodes should match. This is what XPath expressions are for. XPath is the language you use to specify which node or nodes you want to work with. Expre |
|
[xmlStudy]Understanding XPath 文章收藏
半路和尚 发表于 2008/10/8 2:47:30 |
So far, this lesson has been all theory. You need this theory as a foundation for practical application, which is what the rest of this lesson is all about.
XSLT wouldn't work if it didn't have some kind of mechanism to match and select nodes and act on them. You need to be able to express which node or nodes should match. This is what XPath expressions are for. XPath is the language you use to specify which node or nodes you want to work with. Expressions in XPath can be very simpl |
|
[xmlStudy]Selecting Data 文章收藏
半路和尚 发表于 2008/10/8 2:45:18 |
Yesterday you learned what a stylesheet is and how to use it. You also learned about using templates and getting values from an Extensible Markup Language (XML) document. So far the expressions you've used to match templates and select data have been rudimentary. What you can do at this point therefore is limited.
Today's lesson will focus on getting more control over the data you select. Today you will learn the following:
How the XML document tree works
What XPath |
|
[xmlStudy]越学越觉得差远了,不学就根本不知道自己在哪里 心得体会, 职业生涯
半路和尚 发表于 2008/9/28 12:40:45 |
学习xsl的体会
select="text", select="/*/*/text", select="//text"大不一样
不知道大家最初接触这些东西会不会像我一样一知半解.
我最初以为<xsl:value-of select="text"/>, <xsl:value-of select="/*/*/text"/>, <xsl:value-of select="//text"/>取的值都是text,没有差别.
实际上,这三个text值差别很大:<xsl:value-of select="text"/>只取当前节点下的text值; <xsl |
|
[xmlStudy]工作备忘录-WorkbookTemplateExperiment 软件技术
半路和尚 发表于 2008/8/12 1:19:24 |
<!--
本文件为workbook最终格式的试验版本。现有问题以及解决方案: 1. unit元素的属性id="" exerciseType="" exerciseDescription="" grading="" difficulty=""是否有必要?针对一篇资料,可以设置各种类型的练习,练习难度不是资料所决定的。--阅读资料可以简单,但是问题设置可以很复杂。 2. exerciseEntity元素中是否需要增加其他属性,如,原来unit元素中的属性是否可以移植到这里? 3. stem元素是真正的问题核心。这一部分的属性以及子元素的设置是否需要调节?应该调节,问题是如何调节。特别是设计到编号的元素或属性的调节。 4. solution的子元素item似乎多余?是否可以删除?该版本的父版本中的solution元素所含有的blanks和choices子元素已经被删除,即,这两类答案方式已经可以归为同类。具体的处理方式由xsl来解决-即,stem或solution元素 |
|
« 1 ›
|