xml - XSL: Spurious output using template match -


I have an XSL stylesheet that I use to make XHML pieces. XML has a lot of information and I want to change only one special section, I match it like this (note this is my top level / first match):

  & lt ; Xsl: template match = "root / systemInfo / Errors" & gt;  

This works very well, however, I am being written 1001 before the output I want. On the next inspection this is the data of various tags that carry forward the matched xpath "root / systemInfo / errors" . What can I do to prevent this from happening?

Example xml:

  & lt ;? XML version = "1.0"? & Gt; & Lt; Root & gt; & Lt; Settings & gt; & Lt; Enabled & gt; 1 & lt; / Enable & gt; & Lt; Mode 1 & gt; 0 & lt; / Mode1> & Lt; Mode 2 & gt; 0 to & lt; / Mode 2 & gt; & Lt; Border & gt; 1 & lt; / Border & gt; & Lt; / Settings & gt; & Lt; SystemInfo & gt; & Lt; Errors & gt; & Lt; NOCONNECTION & gt; 1 & lt; / NOCONNECTION & gt; & Lt; / Errors & gt; & Lt; / SystemInfo & gt; & Lt; / Root & gt;   

  & lt; Xsl: template match = "text ()" />  

To override the default template that outputs text templates, or make sure that you only process the content that contains

     
< / Div>

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -