在openxml文档中有以下片段:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<!-- ... -->
<a:extLst>
<a:ext uri="{28A0092B-C50C-407E-A947-70E740481C1C}">
<a14:useLocalDpi xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main" val="0" />
</a:ext>
</a:extLst>
<!-- ... -->
</xsl:template>
</xsl:stylesheet>当:-作为xslt加载或在visula studio中编辑时,这会产生以下错误token '}' expected, 'A0092B-C50C-407E-A947-70E740481C1C' found. {28-->A0092B-C50C-407E-A947-70E740481C1C<--}:
我只是不知道该在哪里挖。当我插入xsl:template时会出现问题。这个错误意味着什么?
======的一个解决方案似乎是========== ==========
<a:extLst>
<xsl:element name="a:ext">
<xsl:attribute name ="uri">{28A0092B-C50C-407E-A947-70E740481C1C}</xsl:attribute>
<a14:useLocalDpi xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main" val="0" />
</xsl:element>
</a:extLst>但还有什么更轻的吗?
发布于 2014-12-16 23:03:53
使用以下内容,因为当您使用“{-某某--}”时,它试图将其内容计算为xpath:
<a:ext uri="{{28A0092B-C50C-407E-A947-70E740481C1C}}">发布于 2014-12-16 23:05:44
在XSL中,表达式中的花括号意味着“计算此值”,因此您的解决方案可能是最好的解决方案。
https://stackoverflow.com/questions/27514844
复制相似问题