Carmy 雅阁 Azera 千里马 是否有任何语法返回单元格或行内的值? 谢谢。 解决方案 qwerty007写道: 大家好, 我正在创建一个表,需要连续添加几行。但是我不能用b $ b找到我必须使用的语法。 例如,我有这个字符串, < ItemDef OID =" Automobile"名称=轿车 def:Label =" Car Size" DataType =" text"长度=20评论="凯美瑞雅阁Azera 千里马"> < / ItemDef> 这将输出一个表格(在单元格中)为 凯美瑞雅阁Azera千里马 但现在我希望评论在单元格中输出为 Carmy 雅阁 Azera 千里马 是有什么语法可以在单元格或行中返回值吗? 这是什么类型的细胞?一个HTML表格单元格?如何使用XSLT生成 HTML表格单元格?那是XSLT 1.0还是2.0?使用2.0,您可以轻松地完成 例如 < td> < xsl:for-each select =" tokenize(@Comment ,''\ + +'')"> < xsl:value-of select ="。" /> < xsl: if test =" position()!= last()"> < br /> < / xsl:if> < / xsl:for-each> < / td> - Martin Honnen http://JavaScript.FAQTs.com/ 感谢您的快速回复。 为了回答您的问题,我正在使用XSLT 1.0。我使用的是纯XML 带有.css和.xsl的代码。我根本不使用HTML。我的目的是从Excel文件中获取报告数据。但是当我从Excel导入数据时, 将它们放入CDISC的.xsl中定义的表中( http://cdisc.org/ standards / index.html) 在我的excel文件中,我有一个数据的COMMENT列。在每个日期的评论 单元格中,我放了一个或多个数据行。我认为 可能是换行符的语法,所以数据列表就像 Carmy Accord Azera 千里马 而不是 凯美瑞雅阁Azera千里马 谢谢。 我应该说,我应该如何在引号内划线? Hi all,I''m creating a table and need to add few lines in a row. But I can notfind which syntax I have to use.For instance, I have this string,<ItemDef OID = "Automobile" Name = "Sedan" def:Label = "Car Size"DataType = "text" Length = "20" Comment = "Camry Accord AzeraMaxima"></ItemDef>and this will output in a table (in a cell) asCamry Accord Azera MaximaBut now I want the comment to output in a cell asCarmyAccordAzeraMaximaIs there any syntax to return the value within a cell or a row?Thank you. 解决方案 qwerty007 wrote:Hi all,I''m creating a table and need to add few lines in a row. But I can notfind which syntax I have to use.For instance, I have this string,<ItemDef OID = "Automobile" Name = "Sedan" def:Label = "Car Size" DataType = "text" Length = "20" Comment = "Camry Accord AzeraMaxima"></ItemDef>and this will output in a table (in a cell) asCamry Accord Azera MaximaBut now I want the comment to output in a cell asCarmyAccordAzeraMaximaIs there any syntax to return the value within a cell or a row?What kind of cell is that? A HTML table cell? How do you generate theHTML table cell, with XSLT? Is that XSLT 1.0 or 2.0? With 2.0 you caneasily do e.g.<td><xsl:for-each select="tokenize(@Comment, ''\s+'')"><xsl:value-of select="."/><xsl:if test="position() != last()"><br/></xsl:if></xsl:for-each></td>--Martin Honnen http://JavaScript.FAQTs.com/Thank you for your fast reply.To answer your question, I''m using XSLT 1.0. What I use if pure XMLcode with .css and .xsl. I don''t use HTML at all. My purpose is toreport data from Excel files. But when I import data from Excel, andput them into a table defined in .xsl from CDISC (http://cdisc.org/standards/index.html)In my excel file, I have a COMMENT column for the data. At the commentcell for each date, I put a sentence or lines of data. I think theremay be a syntax to line break so that list of data comes out likeCarmyAccordAzeraMaximainstead ofCamry Accord Azera MaximaThank you.I should say, "how should I line break within the quotation mark?" 这篇关于我该如何添加下一行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-20 10:12
查看更多