Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XSLT and function document()

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 3/12/2008 1:46:00 PM

Giovanni Leonetti wrote:

> I will run the command line :
> 
> java org.apache.xalan.xslt.Process -IN input.xml -XSL style.xslt -OUT
> out.xml
> 
> about 1) and 2) I know how to access to external.xml using the
> function document('external.xml')
> About 3) I need your help guys . I want to access to the input.xml
> document but I do NOT want to call the function
> document('input.xml'). Do you know if exists a parameter for the
> function document() that let me know to access to the input document
> avoiding an explicit call document('input.xml') ?

You do not need the document function to access input.xml as it is the 
primary source document so you can access it with your XPath expressions 
e.g.
   <xsl:variable name="main-root" select="/"/>
Then you can always use that variable $main-root if your context node is 
part of a different document (e.g. external.xml).
-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent