Transform XML using an XSLT template.
Convert-Xml.ps1 [-TransformXslt] <XmlDocument> [[-Xml] <XmlDocument>] [-OutFile <String>] [-TrustedXslt]
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
Convert-Xml.ps1 -TransformFile <String> [-Path <String>] [-OutFile <String>] [-TrustedXslt]
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
' '<z/>' |Format-Xml.ps1
<a />
Convert-Xml.ps1 xsd2html.xslt schema.xsd schema.html
(Writes schema.html)
An XML document containing an XSLT transform.
Type: XmlDocument
Parameter Sets: Xml
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
An XML document to transform.
Type: XmlDocument
Parameter Sets: Xml
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
The XSLT file to use to transform the XML.
Type: String
Parameter Sets: File
Aliases: TemplateFile, XsltTemplateFile
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The XML file to transform.
Type: String
Parameter Sets: File
Aliases: XmlFile, FullName
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The file to write the transformed XML to.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
When specified, indicates the XSLT is trusted, enabling the document() function and embedded script blocks.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.