xslt-grouping

    1热度

    1回答

    我的XML看起来像 <xml version="1.0" standalone="no"> <Alerts AlertsName=""> <Alert UserId="13" OwnerId="13" OwnerName="jasprice" OwnerEmail="[email protected]" Scope="I"> <Assets> <Asset> <AssetTaxonamy

    1热度

    1回答

    我有2个无关的问题。我需要使用XSLT进行数据分组。我需要这个功能,就像IF中嵌套的IF将起作用。之后,我需要对数据进行分组,以便根据组条件将其分成多个文件。 使用XSLT 1.0版: Q1)你怎么嵌套key()内的另一key()(即使用从第一key()返回的节点作为当前节点列表搜索第二key()条件组我的数据结果)? Q2)我可以结合2 key()函数的结果吗?说,我想要执行密钥值为“A”和“B

    10热度

    4回答

    如何计算XSLT中节点中的不同值? 例子:我希望计算节点国家现有的国家数目,在这种情况下,这将是3 <Artists_by_Countries> <Artist_by_Country> <Location_ID>62</Location_ID> <Artist_ID>212</Artist_ID> <Country>Argentina</Country

    2热度

    1回答

    我有这样的XML: <assessment> <variables> <variable> <attributes> <variable_name value="FRED"/> </attributes> </variable> </variables> <variables> <variable> <attributes

    1热度

    3回答

    如果我运行下面的XSLT代码: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="text"/> <xsl:key name="kValueByVal" match="variable_name/@value" use="."/>

    0热度

    5回答

    我有下面的XML: <assessment> <section> <item> <attributes> <variables> <variable> <variable_name value="MORTIMER"/> </variable> </variables>

    0热度

    2回答

    我想与N段将文件转换这种格式: <File> <Sections Section="Section1" fieldName="field1" fieldValue="value1"/> <Sections Section="Section1" fieldName="field2" fieldValue="value2"/> <Sections Section="